Nick Mathewson
79d9eac58c
Add unnecessary_wraps to the big warning list.
2021-08-06 16:20:37 -04:00
rls
c813eb1a10
Add symlinks to arti-corpora
2021-08-04 15:52:24 -04:00
rls
51d91508f7
Fix typos and other spelling mistakes
2021-07-31 18:02:35 +02:00
Nick Mathewson
1c21295d19
Merge remote-tracking branch 'origin/mr/34'
2021-06-27 14:30:49 -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
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
c21ad49e8a
Crate documentation for tor-consdiff.
2021-05-24 14:42:16 -04:00
Nick Mathewson
ce6702a147
Give every Cargo.toml a repository field
2021-05-19 14:56:09 -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
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
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