summaryrefslogtreecommitdiff
path: root/crates/tor-basic-utils
Commit message (Collapse)AuthorAgeFilesLines
* Bump versions for tor-* and arti-* cratesSteven Engler2026-08-031-1/+1
| | | | | | | ```bash readarray -t bump < <(maint/list-crates | grep -P '^tor-|^arti-') for crate in "${bump[@]}"; do cargo set-version --bump minor -p "${crate}"; done ```
* tor-basic-utils: Intern is always CloneIan Jackson2026-07-273-1/+5
| | | | Use educe so that we don't derive T: Clone bound.
* Require derive-deftly 1.11.4Ian Jackson2026-07-231-1/+1
| | | | | | | | | We're about to *use* the fix that was in 1.11.4. We already updated the lockfile in !4228, so this is just Cargo.toml changes (which will prevent the minimal-versions tests failing when we change the code to rely on the fix). git-grep -l '^derive-deftly' |xargs perl -i~ -pe 's{\b\Q1.11.3\E\b}{1.11.4}g'
* Merge branch 'iter-join-doc' into 'main'gabi-2502026-07-161-0/+9
|\ | | | | | | | | tor-basic-utils: Improve docs for iter_join See merge request tpo/core/arti!4213
| * tor-basic-utils: iter_join: Add a TODO re possible future API evolutionIan Jackson2026-07-161-0/+2
| |
| * tor-basic-utils: iter_join: Document relationship to Itertools::formatIan Jackson2026-07-161-0/+7
| |
* | tor-basic-utils: RangeBoundsExt: shorten blanket implIan Jackson2026-07-161-6/+1
| |
* | tor-basic-utils: RangeBoundsExt: make method a provided methodIan Jackson2026-07-161-11/+7
| |
* | tor-basic-utils: RangeBoundsExt: prepare to make method providedIan Jackson2026-07-162-1/+2
| |
* | Use "extend" for tor-basic-utils PathExtIan Jackson2026-07-162-5/+5
| |
* | Use "extend" for tor-basic-utils StrExtIan Jackson2026-07-161-4/+3
|/
* Remove now-unneeded allow(clippy::cognitive_complexity)Jim Newsome2026-07-151-1/+0
|
* add_warning: add reference to arti#2556Jim Newsome2026-07-151-1/+1
|
* Removed unnecessary lintpryty262026-07-151-1/+1
| | | | Removed unnecessary lint
* Upgrade to itertools 0.15.0Nick Mathewson2026-07-011-1/+1
| | | | | | Additionally, fix itertools usage in maybenot_padding.rs The definition of `Position` changed in 0.15.0.
* Remove semver.md filesNick Mathewson2026-06-301-5/+0
|
* Version bumps for 2.5.0Nick Mathewson2026-06-301-2/+2
| | | | | | | | | | | | | Closes #2617. We've lucked out this time, and it turns out that every one of our published crates gets a minor bump. So this was generated with: ``` for cr in $(./maint/list-crates); do cargo set-version -p $cr --bump minor done ```
* tor-basic-utils: don't include '-' in random hostnamesSteven Engler2026-06-291-2/+5
|
* Make &Arc comment less controverisalClara Engler2026-06-241-1/+1
|
* Improve GloballyInternable::intern_cache() rustdocClara Engler2026-06-241-0/+3
|
* Fix GloballyInternable rustdoc commentClara Engler2026-06-241-1/+1
|
* Remove no longer required AsRef implClara Engler2026-06-241-9/+0
| | | | This is no longer required due to Deref
* Derive Clone for InternClara Engler2026-06-241-7/+1
| | | | We can do so now directly.
* Derive Deref for InternClara Engler2026-06-241-10/+2
| | | | If we derive it, we get access to Arc<T>, which is okay.
* Add Intern::new_uncached_uninterned()Clara Engler2026-06-241-1/+13
| | | | If one really wants to circumvent the guarantees ...
* tor-basic-utils: Add GloballyInternable::into_intern()Clara Engler2026-06-241-0/+10
| | | | As a shorthand for T::intern_cache().intern(value).
* Derive From Intern for Arc using derive-moreClara Engler2026-06-241-11/+2
|
* tor-netdoc: Intern rational improvementClara Engler2026-06-241-2/+5
|
* Add missing semver.md entriesClara Engler2026-06-241-0/+3
|
* Add derive-deftly for GloballyInternableClara Engler2026-06-241-0/+16
| | | | | | Adds a derive-deftly based macro so that interfacing code can derive GloballyInternable on structs in order to save redundant and repetitive implementation calls.
* Add derive-deftly to tor-basic-utilsClara Engler2026-06-242-0/+4
| | | | We will make use of it in the next commit.
* Define GloballyInternable traitClara Engler2026-06-241-0/+8
| | | | | | | | This defines a trait called GloballyInternable with a single method `.intern_cache()` returning a static reference to the globally available cache. The next commit will add a derive-deftly based macro for it.
* Use Intern<T>Clara Engler2026-06-241-12/+12
| | | | | This commit modifies the codebase to actually return Intern<T> in InternCache<T> and adds calls to .into() accordingly.
* Introduce Intern<T>Clara Engler2026-06-241-0/+58
| | | | | | | | | | | | | This commit introduces a new type for use with InternCache<T>: Intern<T>. Right now, we have the problem that this cache returns a general Arc<T>, which leads to the issue that we quickly loose overview from where values originate. With this type, it becomes clearer from where they come. In the next commit, we will adjust InternCache and the remaining codebase accordingly.
* Merge branch 'msrv-1.91' into 'main'gabi-2502026-06-181-1/+1
|\ | | | | | | | | Bump MSRV to 1.91 See merge request tpo/core/arti!4105
| * Bump MSRV to 1.91Clara Engler2026-06-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit bumps the MSRV to 1.91 which was released on 2025-10-30. The Cargo.toml files were updated as follows: ```sh git ls-files | \ grep ".*Cargo\.toml$" | \ xargs sed -i '' 's/^rust-version = "1\.89"$/rust-version = "1\.91"/g' ``` The following files were updated manually: ``` modified: .gitlab-ci.yml modified: README.md modified: flake.nix modified: maint/docker-android/Dockerfile ```
* | Merge branch 'misc_string_slices_1' into 'main'Clara Engler2026-06-181-4/+2
|\ \ | |/ |/| | | | | Fix string_slice exceptions outside of netdoc See merge request tpo/core/arti!4092
| * basic-utils: remove str slice usageNick Mathewson2026-06-101-4/+2
| |
* | tor-basic-utils: iter_join: Take IntoIterator, not just IteratorIan Jackson2026-06-112-4/+5
| |
* | assert_not_impl: Support genericsIan Jackson2026-06-101-5/+22
| | | | | | | | | | I want to call this in one of tor-netdoc's parse2 derives, which *do* support generics.
* | assert_not_impl: Support generics - prepIan Jackson2026-06-101-2/+5
| | | | | | | | | | If we move this let into the item impl, it will have access to the generics we're about to add to the `impl $rule`.
* | assert_not_impl: Formally document input syntaxIan Jackson2026-06-101-1/+15
| | | | | | | | | | | | | | Previously we were relying on the macro_rules pattern being in the rustdoc. But it's about to get more complex. Document it manually.
* | assert_not_impl: Regularise example syntaxIan Jackson2026-06-101-4/+4
| | | | | | | | | | Usually Rust doesn't put a space after `:` in trait bounds. But it does when calling a macro with { } syntax.
* | assert_not_impl: Fix a mendacious headingIan Jackson2026-06-101-1/+1
| | | | | | | | | | This bit of the doc contains both succeeding and failing examples, each marked with an appropriate comment.
* | assert_not_impl: Promote to tor-basic-utilsIan Jackson2026-06-102-0/+43
|/ | | | | | | I want this in tor-netdoc (which doesn't use tor-config and probably shouldn't). Almost entirely code motion. Review with --color-moved.
* everywhere: Add #[allow(clippy::string_slice)]Clara Engler2026-06-091-0/+1
| | | | | | | | This commit adds #[allow(clippy::string_slice)] to all functions in the code where string slices are used, alongside a TODO comment. We do this add the function header to have it consistent, as things like expression based allow's are still experimental.
* maint: Run maint/add_warning to deny string slicesClara Engler2026-06-0911-0/+12
| | | | | | | | | | | | This commit executes maint/add_warning with the just added change to deny string slices except in tests. I recommend auditing this by checking out the previous commit followed by running the script yourself and then verifying that the diff is identical to this commit. This commit makes cargo clippy fail. We will add exceptions in the next commit.
* proto: Move TokenBucket to tor-basic-utilsDavid Goulet2026-06-083-0/+841
| | | | Signed-off-by: David Goulet <[email protected]>
* Remove semver.md files post-releaseGabriela Moldovan2026-06-011-2/+0
|
* Bump all the unstable tor- and arti- crates to 0.43.0Gabriela Moldovan2026-06-011-1/+1
| | | | | | | | | | Done using: ``` for crate in $(./maint/list-crates | rg '^(tor|arti-)'); do cargo set-version -p $crate 0.43.0 done ```