summaryrefslogtreecommitdiff
path: root/tor-netdir
Commit message (Collapse)AuthorAgeFilesLines
* Bump version dependencies to 0.0.0Nick Mathewson2021-06-241-7/+7
|
* Remove "publish = false"Nick Mathewson2021-06-241-1/+0
|
* Fix some warnings about needless & from nightly clippyNick Mathewson2021-06-182-4/+4
|
* Remove some (but not all) needless dependencies.Nick Mathewson2021-06-171-6/+3
|
* Notes about badexit flag and opportunities for errorNick Mathewson2021-06-161-0/+4
|
* Missing feature dependency.Nick Mathewson2021-06-161-1/+1
|
* Tests for circmgr::usageNick Mathewson2021-06-162-5/+21
|
* Expose the "construct_network()" function in tor-netdir.Nick Mathewson2021-06-163-77/+138
| | | | | | | | This function has been used for testing tor-netdir, but it will also be useful for testing path selection in tor-cirmgr as well. I've put it behind a "testing" feature, since it shouldn't really be used by most applications.
* 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-261-1/+1
|
* Enable cargo_common_metadata warning.Nick Mathewson2021-05-251-0/+2
|
* Add automatically generated README.md files to each crate.Nick Mathewson2021-05-251-0/+30
|
* tor-netdir no longer uses caret.Nick Mathewson2021-05-251-1/+0
|
* Re-add a percentage type wrapper.Nick Mathewson2021-05-252-12/+11
| | | | | | It turns out that when we don't have a percentage type associated with a value, it is far too easy to forget to divide by 100 before using it as a fraction.
* fixup! Revert change to type of NetParams value.Nick Mathewson2021-05-251-4/+0
|
* Remove a needless lifetime.Nick Mathewson2021-05-251-1/+1
|
* Remove unused derive_more.Nick Mathewson2021-05-251-5/+0
|
* Remove the no-longer-used params::ErrorNick Mathewson2021-05-251-25/+0
|
* Documentation fix.Nick Mathewson2021-05-251-5/+6
|
* It is not an error to see an unrecognized parameter.Nick Mathewson2021-05-252-56/+45
|
* Fix clippy warnings by marking types non-exhaustive.Nick Mathewson2021-05-251-1/+3
|
* Revert change to type of NetParams value.Nick Mathewson2021-05-253-68/+48
| | | | | 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-254-262/+264
| | | | (Squashed from typed-netdir-params)
* More docs on tor-netdir.Nick Mathewson2021-05-241-8/+26
|
* Make netdir's Relay type derive "Clone".Alexander Færøy2021-05-201-0/+1
|
* Give every Cargo.toml a repository fieldNick Mathewson2021-05-191-0/+1
|
* Fill in "package.categories" on all Cargo.tomlNick Mathewson2021-05-191-0/+1
|
* fix a clippy warning about pick_weighted.Nick Mathewson2021-05-191-1/+1
|
* Prefer "relay" over "node" in most circumstances.Nick Mathewson2021-05-181-14/+14
|
* Prefer "relay" over "router" in docs and APIs.Nick Mathewson2021-05-182-59/+56
|
* Add builders for authority and fallback objects.Nick Mathewson2021-05-101-10/+65
|
* tor_netdir: tests on relay picking and moreNick Mathewson2021-05-102-13/+115
|
* netdir: Add real tests for frac_for_role().Nick Mathewson2021-05-102-7/+111
| | | | | Also fix a bug in calculating have_enough_paths(): we were assuming the wrong behavior for weight_for_role().
* netdir: remove unused From implementation.Nick Mathewson2021-05-101-6/+0
|
* Add some tests to tor-netdir.Nick Mathewson2021-05-071-0/+138
|
* More tests for tor-netdir::weightNick Mathewson2021-05-072-0/+87
|
* Fix documentation warnings.Nick Mathewson2021-05-051-1/+1
|
* 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-273-0/+6
| | | | | | | | 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).
* Upgrade rusqlite; remove needless usage.Nick Mathewson2021-04-052-7/+0
|
* Use Arc::make_mut() to simplify the code a bitNick Mathewson2021-03-301-19/+0
| | | | | Previously we used NetDir::extend here, which used try_unwrap. But it's much simpler to use the intended object for this purpose.
* Experimental accessor functions for Relay members.Nick Mathewson2021-03-302-0/+30
|
* Make reasonable set of default fallback directoriesNick Mathewson2021-03-301-3/+0
|
* Make RouterStatus a trait and Consensus into a generic type.Nick Mathewson2021-03-301-1/+1
| | | | This breaks surprisingly little.
* Fix Rust-1.51 clippy warnings about acronyms in camel case.Nick Mathewson2021-03-292-42/+42
| | | | This is painful, but we shouldn't have to do it again.
* Rename Rsa{Identity,Signature} to fix clippy warning.Nick Mathewson2021-03-292-8/+8
|
* Don't copy exit policies around; instead use Arc.George Kadianakis2021-03-291-2/+2
|