summaryrefslogtreecommitdiff
path: root/tor-netdoc
Commit message (Collapse)AuthorAgeFilesLines
* Bump version dependencies to 0.0.0Nick Mathewson2021-06-241-5/+5
|
* Remove "publish = false"Nick Mathewson2021-06-241-1/+0
|
* Fix some warnings about needless & from nightly clippyNick Mathewson2021-06-181-1/+1
|
* Upgrade phf.Nick Mathewson2021-06-171-1/+1
|
* Fix new(?) rustdoc warningsNick Mathewson2021-06-162-3/+3
|
* Add noop_method_call warning.Nick Mathewson2021-05-271-0/+1
| | | | | | This would have saved ahf and me a lot of confusion in debugging a situation where we were cloning a reference of a type that didn't implement Clone.
* Use the "typos" tool to fix some spellingNick Mathewson2021-05-265-6/+6
|
* Enable cargo_common_metadata warning.Nick Mathewson2021-05-251-0/+1
|
* Add automatically generated README.md files to each crate.Nick Mathewson2021-05-251-0/+44
|
* Revert change to type of NetParams value.Nick Mathewson2021-05-251-2/+2
| | | | | This truly is an i32, not a strings: it is a specified requirement in parsing consensus documents.
* Use macros and types to improve handling of Netdir parameters.Nick Mathewson2021-05-251-2/+2
| | | | (Squashed from typed-netdir-params)
* Light tweaks to tor-netdoc.Nick Mathewson2021-05-241-2/+8
|
* Fix some rustdoc warningsNick Mathewson2021-05-211-1/+2
|
* Give every Cargo.toml a repository fieldNick Mathewson2021-05-191-0/+1
|
* Add the "unreachable_pub" lint.Nick Mathewson2021-05-1810-99/+117
| | | | | | This is a somewhat obnoxious change in its scope and requirements, but it makes it easier to understand what the real public and private parts of our APIs are.
* Prefer "relay" over "node" in most circumstances.Nick Mathewson2021-05-181-2/+2
|
* Prefer "relay" over "router" in docs and APIs.Nick Mathewson2021-05-187-109/+107
|
* WIP: more builders.Nick Mathewson2021-05-131-2/+1
|
* Resolve clippy warnings from Rust 1.52.Nick Mathewson2021-05-073-18/+10
| | | | | | | | | | Rust 1.52 just came out, and there are new clippy lints to deal with: * It spots more cases when we could use Option::map * It spots more cases when we could use Iterator::flatten * When we build a struct instance, it wants us to list the fields in the same order that the struct declares them.
* More tests for tor-netdir::weightNick Mathewson2021-05-073-9/+37
|
* Fix documentation warnings.Nick Mathewson2021-05-051-1/+1
|
* Add a consensus builder, for testing.Nick Mathewson2021-05-056-9/+679
|
* Add an authcert builder, for testing.Nick Mathewson2021-05-052-0/+218
|
* Add a microdesc builder, for testing.Nick Mathewson2021-05-054-0/+281
|
* Add trait_duplication_in_bounds warning.Nick Mathewson2021-05-031-0/+1
|
* Add unseparated_literal_suffix lint, and fix it.Nick Mathewson2021-05-031-0/+1
|
* Add a few more clippy warningsNick Mathewson2021-05-031-0/+5
|
* Add some more clippy warnings to our list.Nick Mathewson2021-04-271-1/+6
|
* Enforce (and obey) clippy lints about exhaustive enums, structs.Nick Mathewson2021-04-277-1/+12
| | | | | | | | These lints force us to declare our exported enums and exhaustive-looking structs as non-exhaustive (so that we can add to them in the future without breaking our API) or to explicitly disable the warning for a given enum/struct (to say that we _intend_ for additions to be a breaking change).
* cargo fix --edition-idiomsNick Mathewson2021-04-261-1/+1
|
* Major revision on DirMgr logic -- almost a complete rewrite.Nick Mathewson2021-04-131-0/+13
| | | | | | | | The big idea of this revision is to separate the code that knows about doing downloads from the code that decides what to download. Later, we can make a similar change for database access. With these changes together, we can make our code much more testable, and eventually enable more download types in parallel.
* DirMgr: add text() and texts() functions to ask for document textNick Mathewson2021-03-312-3/+3
| | | | | Also, start on a larger refactoring where we ask for documents by their ID.
* Make ConsensusFlavor a real type.Nick Mathewson2021-03-312-27/+58
| | | | Previously we were "stringly typing" this field. Now it's time to stop.
* Move RdDigest to routerdesc.rsNick Mathewson2021-03-303-7/+4
|
* dir: Add server descriptor directory requestDavid Goulet2021-03-301-0/+3
| | | | Signed-off-by: David Goulet <[email protected]>
* rs: Add getters to router status objectsDavid Goulet2021-03-301-0/+12
| | | | Signed-off-by: David Goulet <[email protected]>
* Make RouterFlags public.Nick Mathewson2021-03-301-4/+11
|
* Add an accessor for the members of a relay family.Nick Mathewson2021-03-301-0/+6
|
* Add a missing member documentationNick Mathewson2021-03-301-0/+8
|
* Add a fuzzer for NsConsensus documentsNick Mathewson2021-03-302-0/+15
|
* Add a test case for NS consensus parsing.Nick Mathewson2021-03-303-1/+269
|
* NS consensus documents have signatures on SHA1 hashes, not SHA256.Nick Mathewson2021-03-301-8/+29
|
* Implement parsing for ns-flavored consensus documents.Nick Mathewson2021-03-303-202/+317
|
* Make RouterStatus a trait and Consensus into a generic type.Nick Mathewson2021-03-303-55/+132
| | | | This breaks surprisingly little.
* Start moving MdConsensus-specific code to a submodule.Nick Mathewson2021-03-302-172/+189
| | | | This is part of refactoring to handle NsConsensuses.
* Resolve rustdoc warnings.Nick Mathewson2021-03-291-3/+3
|
* Fix a bunch more new clippy lints in Rust 1.51Nick Mathewson2021-03-294-17/+16
| | | | | | | | The major types are: * You implemented Into when you should have implemented From. * You sliced a slice when you didn't have to. * You said Ok(x?) when you could have said x. * You said Vec::new(); push(); push(); when you could have said vec![].
* Fix Rust-1.51 clippy warnings about acronyms in camel case.Nick Mathewson2021-03-298-171/+177
| | | | This is painful, but we shouldn't have to do it again.
* Rename Rsa{Identity,Signature} to fix clippy warning.Nick Mathewson2021-03-295-54/+54
|
* Add an intern.rs module that I forgot.Nick Mathewson2021-03-291-0/+54
|