Nick Mathewson
e00a1c59ae
Run "cargo fix --edition-idioms=2018".
2021-10-22 09:05:45 -04:00
Nick Mathewson
af7c9d5a0b
enable checked_conversions lint.
2021-10-09 16:53:13 -04:00
Jani Monoses
5f1f239d51
Enable js feature for getrandom for WASM.
...
By default rand does not build for WASM browser targets.
2021-09-17 06:43:02 +03:00
Nick Mathewson
ab0c80de2b
Fix/suppress a few more clippy lints in tests.
...
I'm alright with allowing cognitive-complexity violations in the
tests.
2021-09-08 14:20:47 -04:00
Daniel Eades
fb3b8b84b5
fix/silence clippy lints in test modules
2021-09-08 17:28:31 +02:00
Nick Mathewson
353a16ce7e
Exclude tor-bytes fuzzing helper code from tarpaulin coverage.
2021-09-07 13:30:53 -04:00
Nick Mathewson
358b3e1ea0
Update corpus and links.
2021-09-07 12:32:50 -04:00
Nick Mathewson
f0de653af1
Fix bugs in last fuzzer code.
2021-09-07 12:29:28 -04:00
Nick Mathewson
97692e3cc2
Improvements to array-of-u8 handling in tor-bytes.
...
Now that we have const generics, we can use them. We can also avoid
an extra clone in the implementation for [u8; N].
Nothing in our codebase requires that we use Reader or Writer on a
GenericArray holding anything other than u8, so I've switched back
to the more efficient implementation there.
I've added a fuzzer case for the new method, but apparently rustc nightly isn't working too
well with fuzzers for me; I'm going to try it tomorrow.
2021-09-07 09:46:54 -04:00
Nick Mathewson
bd2c9fd8c1
Document every macro.
...
(The nightly version of clippy now includes macros for its
missing_docs_in_private_items lint.)
2021-09-07 08:44:47 -04:00
Nick Mathewson
557a0ff40b
Move all crates into a `crates` subdirectory.
...
This will cause some pain for now, but now is really the best time
to do this kind of thing.
2021-08-27 09:53:09 -04:00