| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
```bash
readarray -t bump < <(maint/list-crates | grep -P '^tor-|^arti-')
for crate in "${bump[@]}"; do cargo set-version --bump minor -p "${crate}"; done
```
|
| |
|
|
| |
Use educe so that we don't derive T: Clone bound.
|
| |
|
|
|
|
|
|
|
| |
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'
|
| |\
| |
| |
| |
| | |
tor-basic-utils: Improve docs for iter_join
See merge request tpo/core/arti!4213
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
| | |
|
| | |
|
| |
|
|
| |
Removed unnecessary lint
|
| |
|
|
|
|
| |
Additionally, fix itertools usage in maybenot_padding.rs
The definition of `Position` changed in 0.15.0.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
```
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
This is no longer required due to Deref
|
| |
|
|
| |
We can do so now directly.
|
| |
|
|
| |
If we derive it, we get access to Arc<T>, which is okay.
|
| |
|
|
| |
If one really wants to circumvent the guarantees ...
|
| |
|
|
| |
As a shorthand for T::intern_cache().intern(value).
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Adds a derive-deftly based macro so that interfacing code can derive
GloballyInternable on structs in order to save redundant and repetitive
implementation calls.
|
| |
|
|
| |
We will make use of it in the next commit.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
This commit modifies the codebase to actually return Intern<T> in
InternCache<T> and adds calls to .into() accordingly.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |\
| |
| |
| |
| | |
Bump MSRV to 1.91
See merge request tpo/core/arti!4105
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
```
|
| |\ \
| |/
|/|
| |
| | |
Fix string_slice exceptions outside of netdoc
See merge request tpo/core/arti!4092
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| | |
I want to call this in one of tor-netdoc's parse2 derives, which *do*
support generics.
|
| | |
| |
| |
| |
| | |
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`.
|
| | |
| |
| |
| |
| |
| |
| | |
Previously we were relying on the macro_rules pattern being in the
rustdoc. But it's about to get more complex.
Document it manually.
|
| | |
| |
| |
| |
| | |
Usually Rust doesn't put a space after `:` in trait bounds. But it
does when calling a macro with { } syntax.
|
| | |
| |
| |
| |
| | |
This bit of the doc contains both succeeding and failing examples,
each marked with an appropriate comment.
|
| |/
|
|
|
|
|
| |
I want this in tor-netdoc (which doesn't use tor-config and probably
shouldn't).
Almost entirely code motion. Review with --color-moved.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
Signed-off-by: David Goulet <[email protected]>
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
Done using:
```
for crate in $(./maint/list-crates | rg '^(tor|arti-)'); do
cargo set-version -p $crate 0.43.0
done
```
|