| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | | tor-basic-utils: retry: Use and justify gen_range_checked | Ian Jackson | 2023-07-10 | 1 | -3/+4 | |
| | | | | | | | | | | | delay_bounds's implementation ensures the postcondition, so the potential p[anic in next_delay_msec cannot happen. | |||||
| * | | rng ranges: Introduce RngExt and gen_range_checked | Ian Jackson | 2023-07-10 | 1 | -0/+27 | |
| |/ | | | | We will use this in many places instead of gen_range. | |||||
| * | Run add_warning to remove `missing_panics_doc` deny. | Nick Mathewson | 2023-07-06 | 1 | -1/+0 | |
| | | | | | Closes #950. | |||||
| * | lints: Run maint/add_warning to actually apply new lints | Ian Jackson | 2023-06-21 | 1 | -0/+2 | |
| | | ||||||
| * | tor-basic-utils: Add unbounded range (..) test. | Gabriela Moldovan | 2023-05-13 | 1 | -0/+31 | |
| | | | | | Signed-off-by: Gabriela Moldovan <[email protected]> | |||||
| * | tor-basic-utils: Update combinatorial test to randomly choose an open or ↵ | Gabriela Moldovan | 2023-05-13 | 1 | -2/+12 | |
| | | | | | | | closed bound. Signed-off-by: Gabriela Moldovan <[email protected]> | |||||
| * | tor-basic-utils: Add rangebounds test with time ranges. | Gabriela Moldovan | 2023-05-13 | 1 | -0/+35 | |
| | | | | | Signed-off-by: Gabriela Moldovan <[email protected]> | |||||
| * | tor-basic-utils: Assert witness is not part of the intersection. | Gabriela Moldovan | 2023-05-13 | 1 | -0/+4 | |
| | | | | | Signed-off-by: Gabriela Moldovan <[email protected]> | |||||
| * | tor-basic-utils: Log the ranges/intersection on assertion failure. | Gabriela Moldovan | 2023-05-13 | 1 | -1/+13 | |
| | | | | | Signed-off-by: Gabriela Moldovan <[email protected]> | |||||
| * | tor-checkable: Implement RangeBounds for TimerangeBound. | Gabriela Moldovan | 2023-05-13 | 1 | -2/+2 | |
| | | | | | | | | | By implementing `RangeBounds` for `TimerangeBound`, we get `RangeBoundsExt` for free. This will enable `parse_decrypt_validate` to easily compute the intersection of the `TimerangeBound`s its layers. Signed-off-by: Gabriela Moldovan <[email protected]> | |||||
| * | tor-basic-utils: Add a helper function to deduplicate test code. | Gabriela Moldovan | 2023-05-13 | 1 | -19/+29 | |
| | | | | | Signed-off-by: Gabriela Moldovan <[email protected]> | |||||
| * | tor-basic-utils: Add RangeBoundsExt trait. | Gabriela Moldovan | 2023-05-13 | 2 | -0/+201 | |
| | | | | | Signed-off-by: Gabriela Moldovan <[email protected]> | |||||
| * | tor-netdir: Shuffle the list of HS dirs used for downloading descriptors. | Gabriela Moldovan | 2023-05-04 | 1 | -1/+1 | |
| | | | | | | | | | We'll probably need the hsdir list to be shuffled deterministically for testing purposes (this might be desirable, for example, when we write a test for HS descriptor download retries). Signed-off-by: Gabriela Moldovan <[email protected]> | |||||
| * | impl_debug_hex: Fix syntax error in usage template | Ian Jackson | 2023-04-11 | 1 | -1/+1 | |
| | | | | | Corrects the doc and fixes a rustdoc warning. | |||||
| * | tor-basic-utils: Provide impl_debug_hex | Ian Jackson | 2023-03-31 | 1 | -0/+82 | |
| | | ||||||
| * | Move functionality from tor_basic_utils to tor_async_utils | Nick Mathewson | 2023-03-29 | 2 | -731/+0 | |
| | | | | | | This commit is mostly code movement; I'd recommend reviewing it with git's `--color-moved` option. | |||||
| * | Introduce and use ends_with_ignore_ascii_case | Ian Jackson | 2023-03-08 | 1 | -1/+6 | |
| | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1056#note_2884428 | |||||
| * | tor-basic-utils: Provide str.strip_suffix_ignore_ascii_case | Ian Jackson | 2023-03-08 | 1 | -0/+44 | |
| | | | | | We're going to want this for cheaply stripping ".onion" from things. | |||||
| * | Allow clippy::unchecked_duration_subtraction in tests | Nick Mathewson | 2023-01-27 | 5 | -0/+5 | |
| | | | | | | This panics on error, and we're fine with a panic on misbehavior in tests. | |||||
| * | Disable clippy::unlinlined-format-args | Nick Mathewson | 2023-01-27 | 1 | -0/+1 | |
| | | | | | | | | | This warning kind of snuck up on us! (See #748) For now, let's disable it. (I've cleaned it up in a couple of examples, since those are meant to be more idiomatic and user-facing.) Closes #748. | |||||
| * | test lint blocks: Add many many automatically | Ian Jackson | 2022-12-12 | 2 | -0/+17 | |
| | | | | | | This is precisely the result of running the rune in maint/adhoc-add-lint-blocks. | |||||
| * | test lint blocks: Do some semi-manually | Ian Jackson | 2022-12-12 | 1 | -1/+9 | |
| | | | | | | | | This is the hunks from running the rune in maint/adhoc-add-lint-blocks but which require some subsequent manual fixup: usually, deleting now-superfluous outer allows, but in some cases manually putting back lints that the adhoc script deleted. | |||||
| * | tor-basic-utils: DropNotifyWatchSender: use DropNotifyEofSignallable | Ian Jackson | 2022-11-23 | 1 | -7/+37 | |
| | | | | | | This will help avoid the programmer making the mistake I made here: https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/852#note_2854029 | |||||
| * | tor-basic-utils: DropNotifyWatchSender test: introduce I | Ian Jackson | 2022-11-23 | 1 | -6/+9 | |
| | | | | | | We do want to test this with a non-Option type, but we are going to have to wrap it up. | |||||
| * | tor-basic-utils: Provide helper for serde flexible parsing | Ian Jackson | 2022-11-21 | 1 | -0/+89 | |
| | | ||||||
| * | define_accessor_trait: Allow specification of other items | Ian Jackson | 2022-11-03 | 1 | -1/+10 | |
| | | ||||||
| * | define_accessor_trait: Allow specification of supertraits | Ian Jackson | 2022-11-03 | 1 | -4/+8 | |
| | | ||||||
| * | Run add_warnings. | Nick Mathewson | 2022-11-03 | 1 | -0/+1 | |
| | | ||||||
| * | tor-basic-utils: Provide an implementation of BinaryHeap::retain | Ian Jackson | 2022-10-27 | 1 | -0/+22 | |
| | | | | | | | This is currently nightly-only and is blocked on an unresolved API question: https://github.com/rust-lang/rust/issues/71503 | |||||
| * | n_key_set: clean up some wide lines | Nick Mathewson | 2022-10-24 | 1 | -21/+38 | |
| | | ||||||
| * | n_key_set: Re-insert by_foo_mut() accessors, but make them unsafe. | Nick Mathewson | 2022-10-24 | 1 | -0/+21 | |
| | | ||||||
| * | Fix some litter in a doc comment. | Nick Mathewson | 2022-10-24 | 1 | -1/+1 | |
| | | ||||||
| * | n_key_set: Add ability to modify entries in the map. | Nick Mathewson | 2022-10-24 | 1 | -1/+118 | |
| | | | | | | | The keys can change: if they do, then the entry is removed from its previous position and inserted at the new one, possibly displacing others. | |||||
| * | cargo fmt to remove blank lines | Ian Jackson | 2022-10-12 | 1 | -1/+0 | |
| | | | | | | | | Apparently cargo fmt doesn't like these, which my perl rune didn't delete. This commit is precisely the result of `cargo fmt`. | |||||
| * | Replace all README copies in src/lib.rs with includes | Ian Jackson | 2022-10-12 | 1 | -10/+1 | |
| | | | | | | | | | The feature we want is `#[doc = include_str!("README.md")]`, which is stable since 1.54 and our MSRV is now 1.56. This commit is precisely the result of the following Perl rune: perl -i~ -0777 -pe 's{(^//!(?!.*\@\@).*\n)+}{#![doc = include_str!("../README.md")]\n}m' crates/*/src/lib.rs | |||||
| * | Allow "clippy::single_char_pattern" in tests. | Ian Jackson | 2022-10-12 | 2 | -0/+2 | |
| | | | | | | | | This lint exists for perf reasons, and this is rarely relevant in tests. Using double quoted str is generally cognitively less burdensome. | |||||
| * | n_key_set: Fix bugs in API documentation. | Nick Mathewson | 2022-10-04 | 1 | -6/+6 | |
| | | | | | | For whatever reason, rustdoc didn't like these multiline strings in `doc` attributes. | |||||
| * | n_key_set: Wrap "where" clauses in square brackets too. | Nick Mathewson | 2022-10-04 | 1 | -7/+7 | |
| | | | | | Otherwise, there is a parsing ambiguity. :( | |||||
| * | n_key_set: Rename generic parameters on functions. | Nick Mathewson | 2022-10-04 | 1 | -11/+11 | |
| | | | | | | Previously we used `<T>` in a bunch of places. But that fails if you try to declare `T` as a parameter on the structure itself. | |||||
| * | n_key_set: Add a try_insert(). | Nick Mathewson | 2022-10-04 | 1 | -8/+30 | |
| | | | | | I am finding as I use this that I want a variant that can't panic. | |||||
| * | n_key_set: fix doctest compilation. | Nick Mathewson | 2022-10-03 | 1 | -2/+2 | |
| | | ||||||
| * | n_key_set: Update generic syntax | Nick Mathewson | 2022-10-03 | 1 | -12/+14 | |
| | | | | | Doing this lets us work with defaults and const generics. | |||||
| * | n_key_set: rename map elements. | Nick Mathewson | 2022-10-03 | 1 | -9/+9 | |
| | | | | | This prevents an explosion if somebody has a key called "values". | |||||
| * | n_key_set: Add support for generic lifetimes. | Nick Mathewson | 2022-10-03 | 1 | -6/+48 | |
| | | | | | | It doesn't work for const generics yet, since they can't be repeated in quite the same way. | |||||
| * | Tweaks and improvements in documentation. | Nick Mathewson | 2022-10-03 | 1 | -7/+16 | |
| | | | | | Most of these were suggested by Ian | |||||
| * | Repair rustdoc. | Nick Mathewson | 2022-10-03 | 1 | -20/+16 | |
| | | | | | | The previous indentation was making it think that we had rust code where none existed. | |||||
| * | n_key_set: Add a function to check invariant violations | Nick Mathewson | 2022-10-03 | 1 | -1/+53 | |
| | | | | | Also, document another invariant. | |||||
| * | n_key_set: Use remove_by_foo to implement insert. | Nick Mathewson | 2022-10-03 | 1 | -4/+4 | |
| | | ||||||
| * | n_key_set: Panic on more invariant and constraint violations. | Nick Mathewson | 2022-10-03 | 1 | -3/+10 | |
| | | ||||||
| * | n_key_set: Remove by_$key_mut. | Nick Mathewson | 2022-10-03 | 1 | -20/+0 | |
| | | | | | This can't be used in a consistency-preserving way. | |||||
