| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Move intern from tor-netdir to tor-basic-utils and make it pub | Nick Mathewson | 2025-12-03 | 1 | -0/+1 |
| | | |||||
| * | Fix name of clippy lint to unchecked_time_subtraction (2) | Ian Jackson | 2025-11-06 | 1 | -2/+2 |
| | | | | | Run maint/add_warning | ||||
| * | tor-basic-utils: New function to generate random hostname. | Nick Mathewson | 2025-10-07 | 1 | -0/+1 |
| | | | | | | | We'll be using this for x509 certificates in #2197. We might also use it for SNI/ESNI as in !198. | ||||
| * | Remove "doc_auto_cfg" incantation from all crates. | Nick Mathewson | 2025-09-29 | 1 | -1/+1 |
| | | | | | This feature has been removed from nightly, in favor of doc_cfg. | ||||
| * | Fix a comment about Result::flatten | Nick Mathewson | 2025-08-07 | 1 | -2/+3 |
| | | | | | Previously this API was nightly-only; now it's in 1.89. | ||||
| * | tor-basic-utils: add `assert_val_impl_trait!` macro | Steven Engler | 2025-07-17 | 1 | -0/+19 |
| | | |||||
| * | Temporarily suppress mismatched_lifetime_syntaxes. | Gabriela Moldovan | 2025-07-07 | 1 | -0/+1 |
| | | | | | See #2060. | ||||
| * | tor-basic-utils: standardized MSRV TODOs | hashcatHitman | 2025-04-16 | 1 | -1/+1 |
| | | | | | | - Part of a series of commits aimed at replacing all MSRV-related TODOs with a standardized format, which should be easier to find when the MSRV is bumped. | ||||
| * | tor-basic-utils: move `flatten` from tor-proto | Steven Engler | 2025-03-25 | 1 | -0/+14 |
| | | | | | I also added an additional non-doc TODO comment. | ||||
| * | squash! Upgrade rand dependency to 0.9. | Nick Mathewson | 2025-03-18 | 1 | -1/+5 |
| | | | | | - `Rng::gen_range()` has been renamed to `Rng::random_range()` | ||||
| * | squash! Upgrade rand dependency to 0.9. | Nick Mathewson | 2025-03-18 | 1 | -6/+6 |
| | | | | | - The rand::distributions module has been renamed to rand::distr | ||||
| * | squash! Upgrade rand dependency to 0.9. | Nick Mathewson | 2025-03-18 | 1 | -2/+2 |
| | | | | | - `rand::thread_rng()` has been deprecated and renamed to `rand::rng()` | ||||
| * | Always use full path to rand::thread_rng(). | Nick Mathewson | 2025-03-18 | 1 | -4/+2 |
| | | | | | | This is partly for consistency, and partly to facilitate a global search-and-replace. | ||||
| * | clippy: deny `mod_module_files` | Steven Engler | 2025-01-06 | 1 | -0/+1 |
| | | | | | | | Denies 'mod.rs' files for consistency. https://rust-lang.github.io/rust-clippy/master/index.html#mod_module_files | ||||
| * | add_warnings, *: Allow clippy::needless_lifetimes | Nick Mathewson | 2024-12-03 | 1 | -0/+1 |
| | | | | | | | | | In 1.83, this warning triggers on many of our crates. We're thinking of fixing them all, but for now, we're going to disable the warning. This is part of #1765. | ||||
| * | tor-basic-utils: add `n_key_list` macro | Steven Engler | 2024-09-23 | 1 | -0/+1 |
| | | | | | | This is based off of the `n_key_set` macro, but lets you store multiple items per key. | ||||
| * | byte_qty: Move to tor-basic-utils | Ian Jackson | 2024-08-27 | 1 | -0/+3 |
| | | | | | 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. | ||||
| * | Run maint/add_warning. | Nick Mathewson | 2024-03-13 | 1 | -0/+1 |
| | | |||||
| * | 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 | 1 | -0/+1 |
| | | |||||
| * | 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 | 1 | -0/+2 |
| |\ | | | | | | | | | 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 | 1 | -0/+2 |
| | | | |||||
| * | | 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`. | ||||
| * | | 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 RangeBoundsExt trait. | Gabriela Moldovan | 2023-05-13 | 1 | -0/+1 |
| | | | | | 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 | 1 | -1/+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. | ||||
| * | 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. | ||||
| * | 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 | ||||
| * | 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 | ||||
| * | Include a HashSet variant that can be keyed on multiple keys. | Nick Mathewson | 2022-10-03 | 1 | -0/+1 |
| | | | | | | | | | | | | Every element in the set has up to N keys, each of which may have differnt types. No value for any key may correspond to more than one element in the set. These properties can be provided, via a macro, for values of N between 1 and $BIG_ENOUGH. We'll use this to implement a type that holds HasRelayIds. | ||||
| * | tor-basic-utils: Provide IoErrorExt is_not_a_directory() | Ian Jackson | 2022-08-25 | 1 | -0/+27 |
| | | | | | | We're going to want this functionality, which isn't in the stable stdlib. | ||||
| * | enable doc_auto_cfg feature on every crate when documenting for docs.rs | trinity-1686a | 2022-08-24 | 1 | -0/+1 |
| | | |||||
