Nick Mathewson
9737580402
Add a few more clippy warnings
2021-05-03 16:10:39 -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
a4e0dde4da
Add appropriate categories to some Cargo.toml files.
2021-03-17 14:51:18 -04:00
Nick Mathewson
6daf57957d
Add the tor project as an author.
2021-03-17 14:43:40 -04:00
Nick Mathewson
ba14d43be4
Add keywords to each Cargo.toml
2021-03-17 14:41:02 -04:00
Nick Mathewson
c8481a9354
Add a description field to all our Cargo.toml files
2021-03-17 14:31:59 -04:00
Nick Mathewson
58d8472ea0
Give it a homepage everyplace.
2021-03-17 14:13:26 -04:00
Nick Mathewson
302653977d
Bump dependencies with "cargo upgrade"
2021-03-06 08:55:13 -05:00
Nick Mathewson
9b97197762
Avoid unwrap() in tor-consdiff.
2021-03-04 12:59:15 -05:00
Nick Mathewson
b33bc268d5
My rustfmt is up-to-date with the gitlab ci one again
2021-03-01 07:42:45 -05:00
Nick Mathewson
ab9d4a2229
Update some dependencies.
2021-02-19 09:39:23 -05:00
Nick Mathewson
c5799e136f
Check declared post-digest on consensus diffs.
2021-01-25 16:51:56 -05:00
Nick Mathewson
f01d641ec8
cargo upgrade.
2020-12-30 15:59:33 -05:00
Nick Mathewson
df55817473
cargo fix --edition-idioms
2020-12-29 14:56:48 -05:00
Nick Mathewson
5057cbc12f
Cargo-upgrade a few dependencies
2020-12-21 10:18:41 -05:00
Nick Mathewson
edbd564b09
Add a function to see if a document looks like a diff.
2020-12-17 15:06:49 -05:00
Nick Mathewson
5c92517245
Whoops: add fuzzers code.
2020-12-17 15:05:58 -05:00
Nick Mathewson
3c2977c5dc
consdiff: disallow usize::MAX as a line number.
...
This prevents some overflow cases; found by fuzzing.
2020-12-17 10:50:05 -05:00
Nick Mathewson
a44a228d1a
Add a fuzzer to tor-consdiff
...
This fuzzer checks both implementations and makes sure they give
the same result.
2020-12-17 10:27:49 -05:00
Nick Mathewson
1dc3b40336
consdiff: move responsibility for checking sort order into iterator
2020-12-17 09:26:36 -05:00
Nick Mathewson
c4508f7ae0
More tests for tor-consdiff.
2020-12-17 09:08:42 -05:00
Nick Mathewson
65526fe7f5
tor-consdiff: document everything.
2020-12-17 08:31:58 -05:00
Nick Mathewson
059e9e96d7
consdiff: use real error messages
2020-12-17 07:29:49 -05:00
Nick Mathewson
fce00005db
consdiff: extract Error type to new module.
2020-12-17 07:12:43 -05:00
Nick Mathewson
a9a62b8b76
Make the O(n^2) slow diff-apply algorithm off-by-default.
2020-12-16 17:30:45 -05:00
Nick Mathewson
867c4aac88
Handle the headers on our diff format correctly.
2020-12-16 16:49:50 -05:00
Nick Mathewson
3a92522e7b
Implement the O(n) algorithm for applying diffs
2020-12-16 16:33:58 -05:00
Nick Mathewson
f3e130c62a
Initial work on client-side consensus diff code.
2020-12-16 15:47:00 -05:00