Nick Mathewson
6d80e53232
Simplify SqliteStore::from_path
2021-08-06 09:33:09 -04:00
rls
51d91508f7
Fix typos and other spelling mistakes
2021-07-31 18:02:35 +02:00
Nick Mathewson
19e0558bcd
Fix some CI warnings.
2021-07-31 18:01:25 +02:00
Nick Mathewson
af90626ab8
Add a note about the other (current) daemon task.
2021-07-30 15:24:43 -04:00
Nick Mathewson
cc6302deda
Give DirMgr the ability to notify subscribers about events.
...
This is not 100% what we'll want long term:
- We might want more kinds of events
- We'll probably want to generate them in a more reliable way
- We might want some of this mechanism to be in a crate other than
DirMgr.
But for now, let's use this as a start and get experience with it.
2021-07-30 12:53:54 -04:00
Trinity Pointard
594b65fff6
switch to maintained crates for memmap and tmpdir
...
They don't have actual documented security issues but it makes
`cargo audit` complain
https://rustsec.org/advisories/RUSTSEC-2018-0017
https://rustsec.org/advisories/RUSTSEC-2020-0077
2021-07-20 23:35:17 +02:00
Nick Mathewson
b0167eec44
Allow tor-rtcompat to build with no runtimes.
...
Thanks to cargo's version-2 feature resolver, we can require a
runtime for tests only.
I'm also making it so that the functions that create or fetch
Runtimes only exist when one of the runtime features is enabled.
For now that seems like a better solution than having those
functions exist but panic.
Closes #129 .
2021-07-01 09:47:55 -04:00
Nick Mathewson
1c21295d19
Merge remote-tracking branch 'origin/mr/34'
2021-06-27 14:30:49 -04:00
Nick Mathewson
8947e54d7e
Remove "default-features=false" thing on tor-rtcompat for now.
2021-06-24 10:53:11 -04:00
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
YUAN LYU
92dbf20a76
Add clippy warn needless pass by value
2021-06-21 23:27:19 -04:00
YUAN LYU
b830e81b7f
Add clippy warn needless borrow
2021-06-21 21:34:40 -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