tor/src/rust/protover
Isis Lovecruft 2f3a7376c0
rust: Refactor Rust impl of protover_all_supported().
This includes differences in behaviour to before, which should now more closely
match the C version:

 - If parsing a protover `char*` from C, and the string is not parseable, this
   function will return 1 early, which matches the C behaviour when protocols
   are unparseable.  Previously, we would parse it and its version numbers
   simultaneously, i.e. there was no fail early option, causing us to spend more
   time unnecessarily parsing versions.

 * REFACTOR `protover::ffi::protover_all_supported()` to use new types and
   methods.
2018-04-02 19:20:31 +00:00
..
tests rust: Refactor protover tests with new methods; note altered behaviours. 2018-04-02 19:20:31 +00:00
Cargo.toml Merge branch 'maint-0.3.3' 2018-03-21 17:05:42 -04:00
errors.rs rust: Implement error types for Rust protover implementation. 2018-04-02 18:27:39 +00:00
ffi.rs rust: Refactor Rust impl of protover_all_supported(). 2018-04-02 19:20:31 +00:00
lib.rs rust: Add new protover::UnvalidatedProtoEntry type. 2018-04-02 19:20:27 +00:00
protoset.rs rust: Implement more memory-efficient protover datatype. 2018-04-02 19:04:19 +00:00
protover.rs rust: Refactor protover tests with new methods; note altered behaviours. 2018-04-02 19:20:31 +00:00