| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | tor-basic-utils: Change a function to not be unsafe | Ian Jackson | 2024-10-08 | 1 | -2/+2 |
| | | | | | | This is not a memory safety requirement. We don't need `unsafe` here, so we shoudln't have it. | ||||
| * | tor-basic-utils: add `n_key_list` macro | Steven Engler | 2024-09-23 | 2 | -0/+775 |
| | | | | | | This is based off of the `n_key_set` macro, but lets you store multiple items per key. | ||||
| * | tor-basic-utils: small doc changes to `n_key_set` | Steven Engler | 2024-09-23 | 1 | -3/+2 |
| | | |||||
| * | Fix typos | Dimitris Apostolou | 2024-09-03 | 2 | -2/+2 |
| | | |||||
| * | byte_qty: Support deserialising from strings and floats | Ian Jackson | 2024-08-27 | 1 | -1/+76 |
| | | | | | This finally makes this type suitable for parsing in config files. | ||||
| * | byte_qty: Implement FromStr, and improve Display impl | Ian Jackson | 2024-08-27 | 1 | -7/+189 |
| | | | | | Display can now choose appropriate units. | ||||
| * | byte_qty: provide TryFrom<u64> and <f64> | Ian Jackson | 2024-08-27 | 1 | -0/+76 |
| | | |||||
| * | byte_qty: Make serde dependency optional in tor-basic-utils | Ian Jackson | 2024-08-27 | 1 | -2/+7 |
| | | |||||
| * | byte_qty: Split up the derives | Ian Jackson | 2024-08-27 | 1 | -1/+2 |
| | | | | | The serde ones are going to need to be conditional. | ||||
| * | byte_qty: Move to tor-basic-utils | Ian Jackson | 2024-08-27 | 2 | -0/+72 |
| | | | | | Code motion of byte_qty.rs, and minimal necessary supporting changes. | ||||
| * | Re-run maint/add_warning. | Nick Mathewson | 2024-05-06 | 1 | -2/+2 |
| | | | | | This commit is automatically generated. | ||||
| * | Use uXX::MAX in place of std::uXX::MAX | Nick Mathewson | 2024-04-22 | 1 | -2/+2 |
| | | | | | | | The old code produced a warning from clippy nightly; we may as well update to use the new associated consts. (They've been there since Rust 1.4x.) | ||||
| * | Run maint/add_warning. | Nick Mathewson | 2024-03-13 | 6 | -0/+6 |
| | | |||||
| * | Fix typos in doc comments | Tobias Stoeckmann | 2024-03-06 | 1 | -2/+2 |
| | | |||||
| * | tor-basic-utils: Provide PathExt with display_lossy() method | Ian Jackson | 2024-03-05 | 1 | -0/+25 |
| | | |||||
| * | deny clippy::unchecked_duration_subtraction | trinity-1686a | 2024-02-29 | 1 | -0/+1 |
| | | |||||
| * | tor-basic-utils: Seal IoErrorExt | Ian Jackson | 2023-10-10 | 1 | -1/+9 |
| | | |||||
| * | Run maint/add_warning to add lint block everywhere | Ian Jackson | 2023-08-23 | 6 | -0/+6 |
| | | |||||
| * | Resolve warnings about ambiguous/redundant doc links | Nick Mathewson | 2023-08-22 | 1 | -2/+2 |
| | | | | | | Nightly rustdoc now warns if you have a link that isn't necessary, and if you have a link that might refer to two different things. | ||||
| * | Run add_warnings on all files. | Nick Mathewson | 2023-08-04 | 1 | -2/+2 |
| | | |||||
| * | Merge branch 'clippy-allow' into 'main' | Ian Jackson | 2023-07-11 | 6 | -0/+7 |
| |\ | | | | | | | | | clippy: Allow some of our existing code patterns See merge request tpo/core/arti!1396 | ||||
| | * | Run maint/add_warning to actually apply new lint allows | Ian Jackson | 2023-07-10 | 6 | -0/+7 |
| | | | |||||
| * | | rng docs: Fix two links | Ian Jackson | 2023-07-10 | 1 | -2/+2 |
| | | | |||||
| * | | rng ranges: Provide examples (doctests) | Ian Jackson | 2023-07-10 | 1 | -0/+42 |
| | | | |||||
| * | | rng ranges: Forbid use of panicky Rng::gen_range | Ian Jackson | 2023-07-10 | 1 | -0/+1 |
| | | | | | | | | | Fixes #920 | ||||
| * | | rng ranges: Introduce gen_range_infallible | Ian Jackson | 2023-07-10 | 1 | -0/+47 |
| | | | | | | | | | | | | | | | | | | | | | | | | | There are a number of places where we generate random Durations in a range which starts at zero. These call sites currently (i) have to write out Duration::ZERO or equivalent, and (ii) would have to use gen_range_checked and expect the result, even though it can be statically proven to be OK. To make this slightly smoother, provide `GenRangeInfallible` and `gen_range_infallible`. | ||||
| * | | 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. | ||||
