Trinity Pointard
46f30aad4d
address review comments
...
sha256: 7f190568fa05f71ad356dc56a7a9725a4be18e5e40d6880f469e22981a18edd7
2021-08-26 08:38:45 +02:00
Trinity Pointard
eb0522fe63
fix segfault on static bin
...
see https://github.com/rusqlite/rusqlite/issues/914
sha256: 684ebc4b8c270fc63beba185f6c54ceeb98734f13aa7aeca9b64acb33432a21c
2021-08-25 20:37:58 +02:00
Trinity Pointard
540302851e
make arti availlable as build artifact
...
and make builds reproducible
sha256sum: f141c54929a43a31b9ed6b529f6f863aace87f7406818b2f8ffe2b7a5e2803fb
2021-08-25 18:16:45 +02:00
Nick Mathewson
d4430554b0
Upgrade to new phf version.
2021-08-25 07:25:48 -04:00
Nick Mathewson
729fccba0c
Move MSRV note to README
2021-08-24 15:53:43 -04:00
Nick Mathewson
e4795c57d0
Add a quick MSRV note.
2021-08-24 15:50:51 -04:00
Nick Mathewson
dd2b31b31c
Merge remote-tracking branch 'origin/mr/66'
2021-08-24 14:57:55 -04:00
Nick Mathewson
38b7f76ea3
Basic implementation for prop#332 ntor v3 backend.
...
This isn't tied into the protocol code yet, since we don't actually
have anybody to negotiate with here. We'll need some API tweaks in
order to express the sending of extended information too. For now,
I'm putting it behind a feature, but if we build this into the tor
network, the feature-gate should go away.
2021-08-24 14:43:36 -04:00
Jani Monoses
1af7f4f485
Use trailing_ones() API.
...
Rust 1.46, where this API was introduced, is old enough.
2021-08-24 19:04:30 +03:00
Jani Monoses
7d6d04ead7
Link to the relevant spec section.
2021-08-24 19:02:11 +03:00
Nick Mathewson
ab37a8cadb
Upgrade tracing-subscriber
2021-08-24 08:04:51 -04:00
rls
67871536f5
Use unwrap_or_default instead of unwrap_or_else(Default::default)
2021-08-23 18:41:58 +02:00
Jani Monoses
44d1271c86
Switch all uses of the log crate to the tracing.
...
Issue #74
2021-08-20 21:10:50 +03:00
Nick Mathewson
4d9ffd627c
Latest arti-corpora
2021-08-20 12:25:33 -04:00
Nick Mathewson
92501895fd
Fix a few things that the "typos" tool didn't like.
2021-08-20 12:11:28 -04:00
Nick Mathewson
d3b9c52cc0
Typo fixes.
2021-08-20 11:26:52 -04:00
Nick Mathewson
2b299430f6
Fix a comment typo
2021-08-18 13:43:41 -04:00
Nick Mathewson
6829021ccc
Light doc edits
2021-08-18 13:19:43 -04:00
Trinity Pointard
38fbdcd9ca
allow new without default for IsolationToken
2021-08-18 18:30:27 +02:00
Trinity Pointard
aad54a6969
replace IsolationToken::default with no_isolation
2021-08-18 18:07:56 +02:00
Nick Mathewson
c5be8212de
Add a split_from() API for infallible creation of Data messages.
2021-08-18 10:56:07 -04:00
Nick Mathewson
38621ea797
Remove panicking cases from tor-cell msg construction
2021-08-18 10:38:04 -04:00
Nick Mathewson
cd202f48a7
Document panics in tor-netdir::testnet.
2021-08-18 10:11:50 -04:00
Nick Mathewson
341e3937b4
Revisions based on new documented-panics lint.
...
I've tried to remove some of possible panics, and improve the
documentation for when the others might occur.
2021-08-18 09:55:39 -04:00
Nick Mathewson
ffc27999ef
add_warning.py: explain what to do when no args are given
2021-08-18 08:56:44 -04:00
Nick Mathewson
0b6f638517
Add clippy::missing_panics_doc to add_warnings.py.
2021-08-18 08:53:58 -04:00
Nick Mathewson
fe5d826942
Merge remote-tracking branch 'origin/mr/60'
2021-08-18 08:53:11 -04:00
Nick Mathewson
6895bc58f3
Merge remote-tracking branch 'origin/mr/61'
2021-08-18 08:49:19 -04:00
Nick Mathewson
9a9c8151e2
More tests for tor_netdir, plus a bugfix and a little refactoring.
...
(While messing around with test coverage on `in_same_subnet`, I
found that there was a copy-paste error where we were using v4_bits
when v6_bits would have been appropriate.)
2021-08-17 16:42:21 -04:00
S0AndS0
484cc24856
Add the "implicit_clone" lint.
...
> Check `implicit_clone` section of Clippy documentation for details;
>
> https://rust-lang.github.io/rust-clippy/master/index.html#implicit_clone
This adds, and addresses, the following Clippy configuration to crates;
#![deny(clippy::implicit_clone)]
And moves related line within `maint/add_warning.py` file. My intent is to
mitigate extra edits after merging, so please let me know if I need to do this
last bit differently.
2021-08-17 11:49:39 -07:00
Nick Mathewson
a484d911a8
Make construct_netdir() return a PartialNetDir.
...
This way we can still use it even if we've removed too many
microdescriptors to make a real network.
2021-08-17 14:28:02 -04:00
Nick Mathewson
46519d87d7
Test Netdir behavior with BadExit flag.
2021-08-17 14:24:31 -04:00
Nick Mathewson
aa942f33b5
Make MicrodescBuilder implement Debug and Clone
2021-08-17 14:24:31 -04:00
Nick Mathewson
1a65448eb5
Re-work the test network generator to take a customization function.
2021-08-17 14:24:31 -04:00
Nick Mathewson
3d550b73c2
X_m tiebreaker rules are now specified
2021-08-17 09:33:42 -04:00
Nick Mathewson
910f0bf556
Update tor-netdir path fractions to avoid NaN.
2021-08-16 12:19:42 -04:00
Nick Mathewson
aa765c8869
Remove SPEC note in tor-consdiff: dir-spec has been updated.
2021-08-16 11:49:44 -04:00
Nick Mathewson
fe1ca7d4db
Note SPEC statuses in tor-netdoc
2021-08-16 11:40:33 -04:00
Nick Mathewson
048134d7de
Remove some notes about SPEC issues that are now resolved.
2021-08-16 11:32:26 -04:00
Nick Mathewson
a4773c9fc4
Make PaddingNegotiate parsing match C tor.
2021-08-16 11:13:05 -04:00
Nick Mathewson
eb1ae9ce25
More channel-cell coverage.
...
"Every little helps": This gets tor-cell coverage over 90%.
2021-08-16 11:04:05 -04:00
S0AndS0
b5a58f5871
Add the "missing_panics_doc" lint.
...
> Check `missing_panics_doc` section of Clippy documentation for details;
>
> https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
This adds the following Clippy configuration to crates;
#![deny(clippy::missing_panics_doc)]
And adds necessary doc-comments to methods that may panic.
2021-08-13 15:11:04 -07:00
Nick Mathewson
9c6dd27ca1
Use add_warnings.py for clippy::cast_lossless
2021-08-13 11:36:14 -04:00
Nick Mathewson
7af73d4e81
Merge remote-tracking branch 'origin/mr/59'
2021-08-13 11:32:59 -04:00
Nick Mathewson
6a3fdbcda1
More test cases for tor_cell::relaycell::msg
2021-08-13 10:41:59 -04:00
Nick Mathewson
f21fc355fc
Comment fixes in tor_cell::err
2021-08-13 10:40:53 -04:00
Nick Mathewson
18341920f7
Misc fake coverage improvements
...
These aren't true coverage improvements; they're just either
improving the coverage of test code, or telling the coverage tool
that it shouldn't worry about code in the fuzzers.
2021-08-13 09:54:01 -04:00
Nick Mathewson
8e00ed6f2e
Improve test coverage on tor-units
2021-08-13 09:27:00 -04:00
Nick Mathewson
9bd6670bcf
Restore success and failure counts with timeout state.
2021-08-13 08:55:16 -04:00
S0AndS0
657e7b2246
Add the "cast_lossless" lint.
...
> Check `cast_lossless` section of Clippy documentation for details;
>
> https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless
This adds the following Clippy configuration to crates;
#![deny(clippy::cast_lossless)]
And applies suggested Clippy and `cargo fmt` fixes.
2021-08-12 17:25:15 -07:00