Nick Mathewson
2df9b0e921
Bump version dependencies to 0.0.0
2021-06-24 09:27:17 -04:00
Nick Mathewson
b774360755
Remove "publish = false"
2021-06-24 07:04:26 -04:00
Nick Mathewson
e6faeaa1f8
Fix some warnings about needless & from nightly clippy
2021-06-18 07:19:24 -04:00
Nick Mathewson
be86df631d
Remove anyhow dependency from tor-retry, and rename it to retry-error
...
Now RetryError is parameterized on an underlying error type.
2021-06-17 16:09:43 -04:00
Nick Mathewson
9310273448
Remove some (but not all) needless dependencies.
2021-06-17 09:09:43 -04:00
Nick Mathewson
2102d2e2b5
Add noop_method_call warning.
...
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.
2021-05-27 14:32:29 -04:00
Nick Mathewson
7f681ac824
Use the "typos" tool to fix some spelling
2021-05-26 19:18:35 -04:00
Nick Mathewson
745c90e92c
Enable cargo_common_metadata warning.
2021-05-25 15:42:47 -04:00
Nick Mathewson
cf59e9be77
Add automatically generated README.md files to each crate.
2021-05-25 15:41:23 -04:00
Nick Mathewson
61c62548a5
Module docs for remaining crates
2021-05-25 15:40:02 -04:00
Nick Mathewson
2af2ec075f
Revert change to type of NetParams value.
...
This truly is an i32, not a strings: it is a specified requirement
in parsing consensus documents.
2021-05-25 09:47:49 -04:00
Nick Mathewson
e8214d1df1
Use macros and types to improve handling of Netdir parameters.
...
(Squashed from typed-netdir-params)
2021-05-25 09:16:59 -04:00
Nick Mathewson
2ea0ed7eb2
Fix some rustdoc warnings
2021-05-21 11:26:56 -04:00
Nick Mathewson
ce6702a147
Give every Cargo.toml a repository field
2021-05-19 14:56:09 -04:00
Nick Mathewson
712e6ec23c
Fill in "package.categories" on all Cargo.toml
2021-05-19 14:50:39 -04:00
Nick Mathewson
411e1b35e0
Add the "unreachable_pub" lint.
...
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.
2021-05-18 13:45:39 -04:00
Nick Mathewson
6d6290bcd5
Always capitalize as RouterDesc, Microdesc.
2021-05-18 11:06:59 -04:00
Nick Mathewson
90e96b32c8
Prefer "relay" to "server" when appropriate.
2021-05-18 10:34:15 -04:00
Nick Mathewson
769b321312
Improved tests for sqlite storage.
2021-05-14 12:19:18 -04:00
Nick Mathewson
ade0fd4c33
Consistency, renaming, and testing for dirmgrconfig
2021-05-14 11:23:56 -04:00
Nick Mathewson
c2290c65a6
Move override_net_params into DirMgrConfig.
2021-05-14 10:43:03 -04:00
Nick Mathewson
f69a68df66
Rename NetDirConfig to DirMgrConfig.
2021-05-14 10:27:01 -04:00
Nick Mathewson
948ec0d602
Add builders for remaining config types in tor-dirmgr.
2021-05-14 10:23:10 -04:00
Nick Mathewson
2129e55dfc
WIP: more builders.
2021-05-13 08:34:51 -04:00
Nick Mathewson
c10de0c3be
Add builders for authority and fallback objects.
2021-05-10 15:40:52 -04:00
Nick Mathewson
c72193bda4
Fix a comment typo and needless mut
2021-05-10 15:00:59 -04:00
Nick Mathewson
75eee72ebc
Remove more pieces of unused legacy storage code.
2021-05-10 14:51:58 -04:00
Nick Mathewson
fa4c8ac4c3
Remove untested legacy.rs code. Add a comment about where to find it.
2021-05-10 10:09:26 -04:00
Nick Mathewson
a5c0631728
Fix some warnings from nightly clippy
2021-05-07 16:32:41 -04:00
Nick Mathewson
e01f227191
Resolve clippy warnings from Rust 1.52.
...
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.
2021-05-07 15:53:17 -04:00
Nick Mathewson
760aab7a0a
Fix documentation warnings.
2021-05-05 17:34:49 -04:00
Nick Mathewson
53d5174eda
A few easy tests in tor-dirmgr.
2021-05-04 10:51:53 -04:00
Nick Mathewson
6484bc95bb
Repair multiprocess collaborative directory download.
2021-05-03 17:43:25 -04:00
Nick Mathewson
06a9d2c688
dirmgr: a couple of tiny tests
2021-05-03 17:07:33 -04:00
Nick Mathewson
8eb36cbfff
Add trait_duplication_in_bounds warning.
2021-05-03 16:30:27 -04:00
Nick Mathewson
d516298b47
Add unseparated_literal_suffix lint, and fix it.
2021-05-03 16:19:01 -04:00
Nick Mathewson
9737580402
Add a few more clippy warnings
2021-05-03 16:10:39 -04:00
Nick Mathewson
b81db158bb
tweak semantics of routerdesc docid
2021-05-03 15:54:33 -04:00
Nick Mathewson
94c93c9121
Add some more clippy warnings to our list.
2021-04-27 14:51:04 -04:00
Nick Mathewson
2e3780affb
Enforce (and obey) clippy lints about exhaustive enums, structs.
...
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).
2021-04-27 14:17:49 -04:00
Nick Mathewson
975374beb5
Fix some broken rustdoc links.
2021-04-18 17:55:43 -04:00
Nick Mathewson
92de7c58f0
Move timer functions into an extension trait.
2021-04-17 09:37:46 -04:00
Nick Mathewson
6878fe8336
Move around the public modules in tor_rtcompat.
2021-04-17 09:21:09 -04:00
Nick Mathewson
1d07132787
Remove all non-runtime methods in tor_rtcompat.
2021-04-16 17:15:55 -04:00
Nick Mathewson
8532cef9aa
Add a "Runtime" parameter to all the manager types.
...
This is a big change, but it is a step towards our goal of removing
tor_rtcompat:: calls directly.
2021-04-16 16:12:08 -04:00
Nick Mathewson
e0f4c222dd
Move the "sleep()" function from task to timer.
2021-04-16 15:44:36 -04:00
Nick Mathewson
d60cf6ace6
Fix a compilation problem with async_std.
...
Thank you, CI!
2021-04-13 17:11:43 -04:00
Nick Mathewson
9efe458ad6
Merge branch 'dirstate'
2021-04-13 10:49:15 -04:00
Nick Mathewson
bec5fa3e9c
Major revision on DirMgr logic -- almost a complete rewrite.
...
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.
2021-04-13 10:48:52 -04:00
David Goulet
37c5ae6440
fallbackdir: New list from April 2021
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2021-04-12 10:12:03 -04:00