summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * | arti: cfg tests: On mismatch, report which config fileIan Jackson2025-04-081-2/+2
| | | | | | | | | | | | | | | Otherwise it can be very confusing pushing the bump in the carpet back and forth.
| * | tor-config: Listen: Provide single_address_legacyIan Jackson2025-04-082-1/+24
| | | | | | | | | | | | | | | We're going to need this because of deficiencies in metrics-exporter-prometheus.
* | | tor-proto: Add TODO about using Itertools instead of open-coded impl.Gabriela Moldovan2025-04-081-0/+2
| | | | | | | | | | | | | | | This won't involve an extra dep, because we already use `itertools` throughout the codebase.
* | | tor-proto: Remove outdated TODO.Gabriela Moldovan2025-04-081-4/+0
|/ / | | | | | | | | For service introduction circuits, we have `IptMsgHandler`, so we've already worked something out :)
* / rpcserver: Fix another ceil_div warningNick Mathewson2025-04-071-2/+1
|/
* Merge branch 'fix-clippy' into 'main'Nick Mathewson2025-04-0711-25/+24
|\ | | | | | | | | Fix clippy warnings with rust 1.86 See merge request tpo/core/arti!2920
| * tor-netdoc: use more idiomatic rustSteven Engler2025-04-031-2/+1
| |
| * fix `clippy::unneeded_struct_pattern`Steven Engler2025-04-034-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Example: ```text warning: struct pattern is not needed for a unit variant --> crates/hashx/src/program.rs:165:32 | 165 | Instruction::Target { .. } => Opcode::Target, | ^^^^^^^ help: remove the struct pattern | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_struct_pattern note: the lint level is defined here --> crates/hashx/src/lib.rs:9:9 | 9 | #![warn(clippy::all)] | ^^^^^^^^^^^ = note: `#[warn(clippy::unneeded_struct_pattern)]` implied by `#[warn(clippy::all)]` ```
| * tor-netdoc: fix `clippy::len_zero`Steven Engler2025-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ```text warning: length comparison to one --> crates/tor-netdoc/src/parse/tokenize.rs:470:12 | 470 | if args.len() >= 1 { | ^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!args.is_empty()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero note: the lint level is defined here --> crates/tor-netdoc/src/lib.rs:9:9 | 9 | #![warn(clippy::all)] | ^^^^^^^^^^^ = note: `#[warn(clippy::len_zero)]` implied by `#[warn(clippy::all)]` ```
| * fix `clippy::doc_overindented_list_items`Steven Engler2025-04-036-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Example: ```text warning: doc list item overindented --> crates/arti-rpc-client-core/src/conn/connimpl.rs:322:9 | 322 | /// indicates that no more messages will be received for this request. | ^^^ help: try using ` ` (2 spaces) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items note: the lint level is defined here --> crates/arti-rpc-client-core/src/lib.rs:8:9 | 8 | #![warn(clippy::all)] | ^^^^^^^^^^^ = note: `#[warn(clippy::doc_overindented_list_items)]` implied by `#[warn(clippy::all)]` ```
| * tor-config: fix `clippy::double_ended_iterator_last`Steven Engler2025-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ```text warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator --> crates/tor-config/src/load.rs:606:18 | 606 | .last() | ^^^^^^ help: try: `next_back()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last note: the lint level is defined here --> crates/tor-config/src/lib.rs:9:9 | 9 | #![warn(clippy::all)] | ^^^^^^^^^^^ = note: `#[warn(clippy::double_ended_iterator_last)]` implied by `#[warn(clippy::all)]` ```
* | Merge branch 'android-build' into 'main'wesleyac2025-04-033-3/+32
|\ \ | |/ |/| | | | | fix builds for Android See merge request tpo/core/arti!2824
| * fix builds for AndroidYaksh Bariya2025-03-033-3/+32
| | | | | | | | | | | | | | This does fix builds for both the arti binary and the tests. Most tests seem to be passing, some are failing. I will try to investigate them and send fixes/create issue to highlight them. Hopefully this helps arti in being production ready fast.
* | Merge branch 'main' into 'main'Ian Jackson2025-04-031-4/+0
|\ \ | | | | | | | | | | | | Remove outdated TODO See merge request tpo/core/arti!2900
| * | Remove outdated TODOCocytusDEDI2025-04-031-4/+0
| | |
* | | tor-keymgr: ephemeral type validationhashcatHitman2025-04-032-12/+77
| | |
* | | Merge branch 'todo3' into 'main'gabi-2502025-04-027-106/+37
|\ \ \ | | | | | | | | | | | | | | | | tor-keymgr: BREAKING: Fix TODO: Refactor API: Keystore::insert See merge request tpo/core/arti!2902
| * | | tor-keymgr: BREAKING: Refactor API: Keystore::insertplaybahn2025-04-027-65/+26
| | | | | | | | | | | | | | | | | | | | | | | | Drop redundant/unused param item_type: &KeystoreItemType from keystore::Keystore::insert. Method now uses param key: &dyn EncodableItem to obtain a KeystoreItemType
| * | | tor-keymgr: keystore::ephemeral::insert: Drop item type validationplaybahn2025-04-021-20/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Motivation: Param _item_type is redundant since prev commit. No point in checking if key_data's item type and _item_type are the same, we do things as per key_data's item type from now on. - Removes a test for item type validation.
| * | | tor-keymgr: Fix TODO: Refactor API: Keystore::insertplaybahn2025-04-024-28/+17
| | | | | | | | | | | | | | | | Makes param item_type redundant. Renames item_type -> _item_type.
* | | | Merge branch 'todo1' into 'main'opara2025-04-021-10/+68
|\ \ \ \ | |/ / / |/| | | | | | | | | | | arti: Fix TODO: Add test for onion_proxy::build_list See merge request tpo/core/arti!2896
| * | | arti: Fix TODO: Rework test: onion_proxy::build_listplaybahn2025-04-012-72/+32
| | | |
| * | | arti: onion_proxy::build_list: fix TODO: Add testplaybahn2025-04-012-7/+105
| | | |
* | | | tor-circmgr: clean up after "ntor_v3" feature flag removalSteven Engler2025-04-011-21/+13
| | | |
* | | | tor-proto: clean up after "ntor_v3" feature flag removalSteven Engler2025-04-011-2/+1
| | | |
* | | | tor-circmgr: removed "ntor_v3" feature flagSteven Engler2025-04-012-13/+1
| | | | | | | | | | | | | | | | ntor v3 is now always enabled.
* | | | tor-proto: removed "ntor_v3" feature flagSteven Engler2025-04-017-25/+1
|/ / / | | | | | | | | | ntor v3 is now always enabled.
* | | Merge branch 'semver-cleanup' into 'main'gabi-2502025-04-0112-60/+0
|\ \ \ | | | | | | | | | | | | | | | | Remove semver.md files post-release. See merge request tpo/core/arti!2911
| * | | Remove semver.md files post-release.Gabriela Moldovan2025-04-0112-60/+0
| |/ /
* | | Merge branch 'unused' into 'main'Ian Jackson2025-04-013-0/+9
|\ \ \ | |/ / |/| | | | | | | | Add some allow(unused) See merge request tpo/core/arti!2893
| * | Add some allow(unused)Ian Jackson2025-03-273-0/+9
| | | | | | | | | | | | | | | Fixes several warnings from cargo check --workspace --no-default-features
* | | tor-rtcompat: Avoid wildcard dependency requirements.Gabriela Moldovan2025-04-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is preventing us from publishing `tor-rtcompat`: > error: failed to publish to registry at https://crates.io > > Caused by: > the remote server responded with an error (status 400 Bad Request): wildcard (`*`) dependency constraints are not allowed on crates.io. Crate with this problem: `hex` See https://doc.rust-lang.org/cargo/faq.html#can-libraries-use--as-a-version-for-their-dependencies for more information
* | | Bump arti crate to 1.4.2Gabriela Moldovan2025-03-313-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Done using: ``` cargo set-version --bump patch -p arti ```
* | | Bump all the unstable tor- and arti- crates to 0.29.0.Gabriela Moldovan2025-03-3148-440/+440
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Done using: ``` for crate in $(./maint/list_crates | rg '^(tor|arti-)'); do cargo set-version -p $crate 0.29.0 done ```
* | | Bump the versions of the non-{arti-,tor-} crates.Gabriela Moldovan2025-03-3132-46/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The non-{arti-,tor-} crates are: ``` ./maint/list_crates | rg -v '^(tor|arti)' oneshot-fused-workaround slotmap-careful test-temp-dir fslock-guard hashx equix caret fs-mistrust safelog retry-error ``` We split them in the following categories: * crates with no changes (no version bumps): ``` maint/changed_crates -v "arti-v$LAST_VERSION" 2>&1 >/dev/null | grep -i "no change" | grep -v '\(tor\|arti\)-' oneshot-fused-workaround: No change. slotmap-careful: No change. fslock-guard: No change. caret: No change. retry-error: No change. ``` * crates that only have non-functional changes (bump the patch version): - test-temp-dir - equix - fs-mistrust - safelog * crates where APIs were broken (bump minor): - hashx (`RngCore` impl for `SipRand`) The bumps from this commit were created using this script: ``` PATCH=" test-temp-dir equix fs-mistrust safelog " for crate in $PATCH; do cargo set-version --bump patch -p $crate; done MINOR=" hashx " for crate in $MINOR; do cargo set-version --bump minor -p $crate; done ```
* | | Run cargo update for {hashx,equix}/bench.Gabriela Moldovan2025-03-312-30/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | Done using ``` (cd crates/hashx/bench && cargo update) (cd crates/equix/bench && cargo update) ```
* | | Merge branch 'fixup-feats' into 'main'gabi-2502025-03-311-0/+1
|\ \ \ | | | | | | | | | | | | | | | | arti-relay: Run fixup-features. See merge request tpo/core/arti!2895
| * | | arti-relay: Run fixup-features.Gabriela Moldovan2025-03-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes up `arti-relay`'s features in preparation for the next release. Done using ``` cargo run -p fixup-features -- --exclude examples/ --exclude maint/ Cargo.toml ``` (plus manually reformatting to insert a blank line).
* | | | Upgrade to cbindgen 0.28.0Nick Mathewson2025-03-301-1/+1
| | | |
* | | | Update expected warnings from cbindgen.Nick Mathewson2025-03-301-51/+0
|/ / /
* | | Upgrade getrandom dependency to 0.3.2Gabriela Moldovan2025-03-274-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | The `js` feature was replaced by a configuration flag in [0.3.0], so I've checked in a `.cargo/config.toml` for `tor-llcrypto` and `tor-bytes` with `RUSTFLAGS` for selecting the `getrandom` backend to use on wasm32. [0.3.0]: https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md#030---2025-01-25
* | | Upgrade rustls-wekpki dependency to 0.103.1.Gabriela Moldovan2025-03-271-1/+1
| | | | | | | | | | | | | | | | | | We aren't affected by any of the breaking changes from [0.103.0]. [0.103.0]: https://github.com/rustls/webpki/releases/tag/v%2F0.103.0
* | | Upgrade strum dependency to 0.27.1.Gabriela Moldovan2025-03-2711-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | In 0.27.0, strum's MSRV was bumped to 1.66.1, but that's okay because ours is 1.77. We aren't affected by any of its [breaking changes]. [breaking changes]: https://github.com/Peternator7/strum/blob/master/CHANGELOG.md#0270
* | | tor-keymgr: keystore::arti::ssh: Fix typo; simplify comments.playbahn2025-03-271-8/+7
| | | | | | | | | | | | Closes #1455
* | | tor-keymgr: keystore::arti: Rework tests: ssh-keygen interopplaybahn2025-03-261-7/+4
| | | | | | | | | | | | Closes #1455 [PATCH 4(v3)/4]
* | | tor-keymgr: keystore::arti::ssh: Rework tests: ssh-keygen interopplaybahn2025-03-261-37/+115
| | | | | | | | | | | | Part of #1455 [PATCH 3(v3)/4]
* | | tor-keymgr: test_utils: TestSpecifier::path_prefix: Drop methodplaybahn2025-03-262-8/+7
| | | | | | | | | | | | Part of #1455
* | | tor-keymgr: Fix clippy errorsplaybahn2025-03-262-2/+3
| | |
* | | tor-keymgr: dep ssh-key feat: -allocplaybahn2025-03-261-1/+1
| | |
* | | tor-keymgr: test_utils: Fix unresolved importplaybahn2025-03-261-4/+8
| | |