Commit Graph

1107 Commits

Author SHA1 Message Date
Nick Mathewson d05d9ad9e7 Use thiserror to simplify tor-units 2021-05-26 10:46:17 -04:00
Nick Mathewson 406643474b Add a Display test in tor-units 2021-05-26 10:46:17 -04:00
Nick Mathewson ac4786a6c2 Add a script with the command I've been using for coverage 2021-05-26 10:46:17 -04:00
Nick Mathewson 5a3e735e4b Try some tweaks to .gitlab-ci.yml
The "--all" flag is deprecated in favor of "--workspace", which
isn't actually needed here.

"--all-features" catches a few things that we want to make sure
we're catching.

Let's try out cargo doc and make sure that passes too.
2021-05-25 16:18:00 -04:00
Nick Mathewson 30ab1dc7bb Update hs_ntor code.
Work with the latest version of the crypto crate, and suppress the
unreachable_pub warning.
2021-05-25 16:10:11 -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 81a1f378a5 Replace the last user of caret_enum with caret_int.
This lets us remove caret_enum entirely.
2021-05-25 14:12:21 -04:00
Nick Mathewson 4f98e17d12 Remove extern crate declarations.
They're no longer needed for macro use in Rust 2018.
2021-05-25 11:27:31 -04:00
Nick Mathewson e670b0e939 Use "use" in tor_netdir, remove needless qualifications. 2021-05-25 11:25:41 -04:00
Nick Mathewson 63e4db3ceb tor-netdir no longer uses caret. 2021-05-25 11:25:19 -04:00
Nick Mathewson 88e711b282 Re-add a percentage type wrapper.
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.
2021-05-25 11:21:11 -04:00
Nick Mathewson 6a8cce95f0 fixup! Revert change to type of NetParams value. 2021-05-25 11:00:45 -04:00
Nick Mathewson 3e0a235fba Remove a needless lifetime. 2021-05-25 10:58:55 -04:00
Nick Mathewson 89bdf6f1d8 Remove unused derive_more. 2021-05-25 10:58:13 -04:00
Nick Mathewson df36cfafb0 tor-units: warn about uninhabited types and panics 2021-05-25 10:50:06 -04:00
Nick Mathewson fe4859787d Mention tor-units in the readme 2021-05-25 10:34:36 -04:00
Nick Mathewson 21a7012451 Tweaks docs and style in tor-units. 2021-05-25 10:33:33 -04:00
Nick Mathewson 09b67f2fca Remove the no-longer-used params::Error 2021-05-25 10:11:09 -04:00
Nick Mathewson fa991bb410 Documentation fix. 2021-05-25 10:10:05 -04:00
Nick Mathewson bd06558775 It is not an error to see an unrecognized parameter. 2021-05-25 10:04:37 -04:00
Nick Mathewson f83b167c30 Apply our suite of clippy warnings to tor-units. 2021-05-25 09:51:28 -04:00
Nick Mathewson 0890f70161 Fix clippy warnings by marking types non-exhaustive. 2021-05-25 09:49:31 -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 c21ad49e8a Crate documentation for tor-consdiff. 2021-05-24 14:42:16 -04:00
Nick Mathewson a7f7423c58 fix a doc link in tor-linkspec. 2021-05-24 14:35:08 -04:00
Nick Mathewson 9dbf78967c More docs on tor-netdir. 2021-05-24 14:30:08 -04:00
Nick Mathewson d2c407149e Light tweaks to tor-netdoc. 2021-05-24 14:18:02 -04:00
Nick Mathewson 80108110e2 Light tweaks to tor-cell doc 2021-05-24 14:13:25 -04:00
Nick Mathewson 4f049ef74d Use full suite of warnings in arti crate as well. 2021-05-24 14:10:53 -04:00
Nick Mathewson 46249e4d50 improve crate docs for tor-linkspec 2021-05-24 14:08:50 -04:00
Nick Mathewson 2a4189c46c Small updates to README 2021-05-24 12:42:57 -04:00
Nick Mathewson 9dcac7e4f3 Improve crate-level docs in arti CLI crate. 2021-05-24 12:42:28 -04:00
Nick Mathewson e4784932ce tor-llcrypto: finish a sentence in the docs. 2021-05-24 12:41:05 -04:00
Nick Mathewson 74884563e8 tor-bytes: fuzzer for Reader code. 2021-05-24 10:29:15 -04:00
Nick Mathewson 67306a39d8 tor-bytes: Fix possible panic in truncate. 2021-05-24 10:26:55 -04:00
Nick Mathewson 0f0894377b Improve tor-bytes crate-level documentation. 2021-05-24 09:28:27 -04:00
Nick Mathewson 90cf7425d2 Improve crate-documentation for tor-checkable. 2021-05-24 08:58:53 -04:00
Nick Mathewson 696202217b Add a link tto the tor website to arti blurb. 2021-05-24 08:44:04 -04:00
Nick Mathewson bcb26da1df Improve crate documentation for tor-retry and tor-socksproto 2021-05-24 08:38:18 -04:00
Nick Mathewson 4fc24b27a4 More module-level documentation for tor-cert and tor-protover. 2021-05-23 10:20:20 -04:00
Nick Mathewson 53edae72fb Remove notes about prop#318, which _has_ been accepted. 2021-05-21 16:53:13 -04:00
Nick Mathewson 25dc8c3dd5 Add a conversion from TimeoutError to IoError. 2021-05-21 16:51:16 -04:00
Nick Mathewson 4dc9367e8e Better documentation for tor-rtmock 2021-05-21 16:49:28 -04:00
Nick Mathewson 50aee17871 Add tor-proto docs and tweak docs+apis elsewhere. 2021-05-21 15:40:08 -04:00
Nick Mathewson 6d2d897158 Improve crate-level tor-rtcompat documentation 2021-05-21 14:58:30 -04:00
Nick Mathewson 4f847da7b3 improve crate doc for tor-client. 2021-05-21 14:07:53 -04:00
Nick Mathewson 57f65b261e tor-llcrypto: Improve documentation and move keyblinding. 2021-05-21 11:27:41 -04:00