| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |\ \
| | |
| | |
| | |
| | | |
Implement precise port summaries
See merge request tpo/core/arti!4198
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | | |
As per
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/4198#note_3434449
|
| | | | |
|
| |/ /
| |
| |
| |
| |
| |
| |
| | |
For calculating `ipv6-policy` in routerdescs.
Also implement for v4 for the benefit of future tests of approximate
port policy summaries, for possible future protocol change, and for
completeness.
|
| |\ \
| | |
| | |
| | |
| | | |
tor-linkspec: Use deftly to reduce copypasta in RelayId and RelayIdRef
See merge request tpo/core/arti!4196
|
| | | |
| | |
| | |
| | |
| | | |
Prompted by
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/4196#note_3433090
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
rustfmt likes this IMO-awful layout for derives.
We can force it to let us manually break the line, if we use //,
and then it stays put.
No functional change.
|
| | | |
| | |
| | |
| | | |
Pure whitespace change. Review with, eg, git diff -w.
|
| | | |
| | |
| | |
| | | |
This gets rid of the matcher, and the need to invoke it.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
Change $var to $vname, and $type to $IDENTITY.
These are the names used in the deftly template. This will make the
next commit almost a no-op.
|
| | | |
| | |
| | |
| | |
| | | |
We can just refer to the PartialEq<FooIdentity> for RelayIdRef, which
is macro-generated just above, replacing this copy-pasted matches.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
This removes quite a lot of in-detail copy-paste.
The lone `}` is being moved, bringing the code we're changing within
the scope of the template.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Derive the two types. We end up moving the display strings from
direct attributes directed to derive_more, to deftly attributes.
Indentation is rather odd now: we ought to indent the macro body.
We'll sort that out at the end.
No functional change.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
Pure code motion. We want to move this to where a bigger macro is
going to be, so that it can be part of it.
Code motion only, review with --color-moved.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
tor-netdoc: Stabilise votes and encoding of authcerts (+ more tests)
See merge request tpo/core/arti!4189
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
torspec!499 is merged.
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
With facility to test roundtrip of whole consensus.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
I have confimed the consent of the operators of the relays listed in
the script.
The rationale for using .entire.FOO filenames for the curl outputs
will become clear shortly.
|
| | | | |
| | | |
| | | |
| | | | |
Nothing in CI tests incomplete without retain-unknown, apparently.
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
It doesn't make sense to say that a plain consensus is an "ns"
consensus, because "ns" stands for "network status" and all consensus
flavours, and indeed votes, are network statusus.
That's why tor-netdoc now uses "plain". Use that here too.
|
| | | | | |
|
| |/ / / |
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
Update spin to 0.9.8
See merge request tpo/core/arti!4208
|
| |/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fixes cargo-audit failure, due to spin 0.9.8 being yanked:
The changelog entry for 0.9.9 says:
> ### Fixed
>
> - Unsoundness in `Once::force_into_inner`, `Once::try_into_inner`, and
> `Once::into_inner_unchecked`. \[...]
In our stack, spin <- lazy_static 1.5.0 (only). lazy_static
1.5.0 (git tag) has no hits for `into_inner`. So I think we don't
have any calls to the previously-unsound methods.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
maint/cargo-audit: Bump crossbeam-epoch to address RUSTSEC-2026-0204
See merge request tpo/core/arti!4207
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
RUSTSEC-2026-0204 doesn't affect Arti, so this won't need a TROVE.
I checked using the procedure documented under "Checking whether we are
affected by a RUSTSEC" in `doc/dev/SecurityResponse.md`. I applied the
following patch to my local `crossbeam-epoch` to remove the affected
impls, and confirmed that Arti still builds successfully with it:
```diff
diff --git a/crossbeam-epoch/src/atomic.rs b/crossbeam-epoch/src/atomic.rs
index 41b4cd91..8b9b3a01 100644
--- a/crossbeam-epoch/src/atomic.rs
+++ b/crossbeam-epoch/src/atomic.rs
@@ -939,14 +939,6 @@ impl<T: ?Sized + Pointable> fmt::Debug for Atomic<T> {
}
}
-impl<T: ?Sized + Pointable> fmt::Pointer for Atomic<T> {
- fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
- let data = self.data.load(Ordering::SeqCst);
- let (raw, _) = decompose_tag::<T>(data);
- fmt::Pointer::fmt(&(unsafe { T::deref(raw) as *const _ }), f)
- }
-}
-
impl<T: ?Sized + Pointable> Clone for Atomic<T> {
/// Returns a copy of the atomic value.
///
@@ -1660,12 +1652,6 @@ impl<T: ?Sized + Pointable> fmt::Debug for Shared<'_, T> {
}
}
-impl<T: ?Sized + Pointable> fmt::Pointer for Shared<'_, T> {
- fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
- fmt::Pointer::fmt(&(unsafe { self.deref() as *const _ }), f)
- }
-}
-
impl<T: ?Sized + Pointable> Default for Shared<'_, T> {
fn default() -> Self {
Shared::null()
```
Note: the reason the `fmt::Pointer` impls I removed above look slightly
different from the ones in the [crossbeam-rs MR] from the RUSTSEC page
is because my patched `crossbeam-epoch` is based on the
`crossbeam-epoch-0.9.18` tag rather than `main`.
[crossbeam-rs MR]: https://github.com/crossbeam-rs/crossbeam/pull/1273/files
|
| |\ \ \ \
| |/ / /
|/| | |
| | | |
| | | | |
multiple crates: Fix clippy warnings
See merge request tpo/core/arti!4203
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | |/
| |/| |
|
| |\ \ \
| |/ /
|/| |
| | |
| | | |
Upgrade cipher, aes, and ctr.
See merge request tpo/core/arti!4195
|
| | | | |
|