summaryrefslogtreecommitdiff
path: root/crates/arti
Commit message (Collapse)AuthorAgeFilesLines
* Increment arti version to 1.5.0Nick Mathewson2025-08-281-1/+1
| | | | | We've promised in our README not to bump MSRV in patchlevel releases. So now this is 1.5.0.
* Bump the minor version of every published crate except for `arti`.Nick Mathewson2025-08-281-24/+24
| | | | | | | | Per policy, we bump the minor version of every tor-*, arti-* crate on each release. We have updated our MSRV, so we're treating this as a breaking change for our non-(arti/tor)-prefixed crates too.
* Merge branch 'toml' into 'main'David Goulet2025-08-261-18/+7
|\ | | | | | | | | arti: Simplify the `create_state_dir_entry` test helper See merge request tpo/core/arti!3178
| * arti: simplify the `create_state_dir_entry` test helperSteven Engler2025-08-251-18/+7
| |
* | tor-hscrypto: change redacted `HsId` from "???" to "[…]"Steven Engler2025-08-251-1/+1
|/ | | | | | | | | | | | | | Before: ```text INFO tor_hsservice: Generated a new identity for service bar: ???mad.onion ``` After: ```text INFO tor_hsservice: Generated a new identity for service foo: […]2qd.onion ```
* arti: test: Add note in `KeysListCmd::create_state_dir_entry`hjrgrn2025-08-251-0/+2
|
* arti: test: Add integration test suite for `arti keys`hjrgrn2025-08-2512-1/+384
| | | | | | | | | - Add `cli_tests/keys/util.rs` and `cli_tests/keys.rs` - Update `cli_tests/main.rs` and `testcases/keys/conf/keys.toml` - Add `ctor-keystore` directory to `keys` `local` directory - Restructure `keys` `local` directory layout - .editorconfig: Add exception for `ctor-keystore`s
* Merge branch 'rustls-disclaimer' into 'main'opara2025-08-251-3/+1
|\ | | | | | | | | docs: Remove outdated comments about rustls/ring license See merge request tpo/core/arti!3176
| * docs: remove outdated comments about rustls/ring licenseSteven Engler2025-08-211-3/+1
| |
* | Merge branch 'toml-0.9.5' into 'main'Nick Mathewson2025-08-231-1/+1
|\ \ | |/ |/| | | | | | | | | Upgrade to toml-0.9.5. Closes #2093 See merge request tpo/core/arti!3163
| * Upgrade to toml-0.9.5.Nick Mathewson2025-08-181-1/+1
| | | | | | | | Closes #2093.
* | Document why we are using ring with rustlsNick Mathewson2025-08-191-0/+4
| | | | | | | | See #1977, #2122.
* | Merge branch 'circ-react-report' into 'main'opara2025-08-182-0/+112
|\ \ | | | | | | | | | | | | | | | | | | tor-error,arti: Support tracing fields in the `_report!` macros Closes #2096 and #2116 See merge request tpo/core/arti!3142
| * | arti: log errors using `tor_error::ErrorReport`Steven Engler2025-08-181-1/+14
| | |
| * | arti: log error fields lastSteven Engler2025-08-182-0/+99
| | |
* | | Merge branch 'document-max-mem-overhead' into 'main'Nick Mathewson2025-08-181-4/+8
|\ \ \ | |/ / |/| | | | | | | | Note that not all memory is tracked by memqouta See merge request tpo/core/arti!3165
| * | Add a disclaimer that not all memory usage is trackedNick Mathewson2025-08-181-0/+3
| | | | | | | | | | | | Partially addresses #2102.
| * | Light reformatting on system.memory documentation.Nick Mathewson2025-08-181-4/+5
| |/ | | | | | | | | This mainly separates the two options, and adds the word "tracked".
* | Merge branch 'fix-nightly-warn' into 'main'Nick Mathewson2025-08-181-1/+1
|\ \ | |/ |/| | | | | Fix clippy errors on nightly See merge request tpo/core/arti!3148
| * clippy: fix `clippy::implicit_clone` errorsSteven Engler2025-08-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ```text error: implicitly cloning a `String` by calling `to_string` on its dereferenced type --> crates/tor-config/src/lib.rs:109:32 | 109 | V::String(_, s) => s.to_string(), | ^^^^^^^^^^^^^ help: consider using: `s.clone()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_clone note: the lint level is defined here --> crates/tor-config/src/lib.rs:20:9 | 20 | #![deny(clippy::implicit_clone)] | ^^^^^^^^^^^^^^^^^^^^^^ ```
* | arti: Add more explanation of pow_rend_queue_depth to example config.Wesley Aptekar-Cassels2025-08-131-1/+3
| |
* | tor-hsservice: Add metrics support to PoW code.Wesley Aptekar-Cassels2025-08-131-0/+1
| |
* | tor-hsservice: Add pow_rend_queue_depth config option.Wesley Aptekar-Cassels2025-08-131-0/+7
| |
* | Merge branch 'fix-keys-list' into 'main'wesleyac2025-08-121-0/+1
|\ \ | | | | | | | | | | | | arti: keys: Fix `display_keystore_entries` output See merge request tpo/core/arti!3143
| * | arti: keys: Fix `display_keystore_entries` outputhjrgrn2025-08-091-0/+1
| |/
* | Merge branch 'arti-crate-readme-typos' into 'main'wesleyac2025-08-121-9/+9
|\ \ | |/ |/| | | | | arti-crate-readme-typos: Typos See merge request tpo/core/arti!3115
| * arti-crate-readme-typos: Typosnield2025-08-041-9/+9
| | | | | | | | | | | | - "command-line" should be written with hyphen when adjective. - Rephrased some sentences. - OS X is now called MacOS.
* | Merge branch 'enable-cgo' into 'main'Nick Mathewson2025-08-071-0/+6
|\ \ | | | | | | | | | | | | Enable counter-galois onion negotiation and make it work. See merge request tpo/core/arti!3133
| * | Propagate cgo feature up to arti crate.Nick Mathewson2025-08-071-0/+6
| | |
* | | Merge branch 'update_to_edition_2024_v2' into 'main'Nick Mathewson2025-08-0711-48/+57
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Update code for Edition 2024 (second attempt) Closes #2101 See merge request tpo/core/arti!3137
| * | | Fix warnings and errors from edition 2024.Nick Mathewson2025-08-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The two main causes of errors were: - Since some of the lifetime rules have changed, we no longer need to do as many "bind a variable and immediately return it" patterns, and so clippy now warns about them. - We needed to adjust the explicit captures (`use<...>`) in a couple of our RPIT instances.
| * | | Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-0711-44/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First, run ``` git grep -l "^edition =" | xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;' ``` Second, manually verify that all Cargo.toml files have changed, and nothing else has changed. Third, run cargo fmt again.
| * | | Update code for Edition 2024Nick Mathewson2025-08-071-3/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Run cargo fix --edition 2. Selectively revert the "if let"->"match" changes. These changes are meant to protect us from the lifetime changes for "if let" bindings in Rust 2024. But we're not actually relying on the old lifetime rules anywhere, and the match syntax here is quite ugly. 3. Automatically revert `$pat:expr_2021` to `$pat:expr`. (We don't actually want to restrict the expression syntax that our macros accept). Done with `git grep -l expr_2021 | xargs perl -i -pe 's/expr_2021/expr/g;'` 4. Run cargo fmt.
* / / arti: keys: Improve CLI output by distinguishing KeyPath variantshjrgrn2025-08-061-17/+64
|/ / | | | | | | | | * Update `display_entry` function to handle different `KeyPath` variants * Add functions `display_arti_entry` and `display_ctor_entry`
* | arti::socks: Resolve a TODO MSRV entry.Nick Mathewson2025-08-051-6/+3
| |
* | Set MSRV to 1.85.Nick Mathewson2025-08-051-1/+1
| |
* | Merge branch 'use-cc' into 'main'Nick Mathewson2025-08-051-1/+4
|\ \ | | | | | | | | | | | | Use congestion control when "flowctl-cc" is enabled See merge request tpo/core/arti!3118
| * | arti: add experimental "flowctl-cc" featureSteven Engler2025-08-041-1/+4
| |/
* | Bump version of tor-basic-utilsIan Jackson2025-08-051-1/+1
| | | | | | | | This was accidentally omitted from my version bump script.
* | Version bumps for 1.4.6Ian Jackson2025-08-051-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Made with the following shell script: export CARGO='nailing-cargo -Eu' # Non-functional changes only maint/bump_nodep hashx # Special $CARGO set-version -p arti 1.4.6 # Additional features, no breaking changes, depended on in tree $CARGO set-version -p safelog 0.4.8 # Unconditional bump to 0.33.0 xargs -I P <<END $CARGO set-version -p P 0.33.0 tor-error tor-general-addr tor-geoip tor-rtcompat tor-rtmock tor-async-utils tor-config tor-config-path tor-rpc-connect tor-log-ratelim tor-rpcbase tor-memquota tor-units tor-llcrypto tor-bytes tor-protover tor-checkable tor-cert tor-key-forge tor-hscrypto tor-socksproto tor-linkspec tor-cell tor-proto tor-netdoc tor-consdiff tor-netdir tor-relay-selection tor-persist tor-chanmgr tor-ptmgr tor-guardmgr tor-circmgr tor-dirclient tor-dirmgr tor-keymgr tor-hsclient tor-hsservice tor-hsrproxy tor-relay-crypto arti-client arti-relay arti-rpcserver arti-ureq arti-rpc-client-core END
* | Merge branch 'update' into 'main'Ian Jackson2025-08-041-1/+1
|\ \ | | | | | | | | | | | | Dependency updates (release prep) See merge request tpo/core/arti!3117
| * | Bump derive-deftly to 1.2.0Ian Jackson2025-08-041-1/+1
| |/ | | | | | | No upstream changes that break our code.
* | cargo features: Run fixup-featuresIan Jackson2025-08-041-1/+1
| | | | | | | | | | | | This just added some obvious full-transitivity. It left a formatting oddity.
* | cargo features: Restore "memquota" feature into "full"Ian Jackson2025-08-041-0/+1
|/ | | | | Our feature doctrine doesn't have a special case for features that are empty and retained for compatibility. "full" is probably best.
* arti: update example configSteven Engler2025-07-311-5/+16
|
* arti: make "memquota" feature a no-opSteven Engler2025-07-314-34/+35
|
* Use new DisplayRedacted/DebugRedacted code for HsId.Nick Mathewson2025-07-312-3/+11
| | | | Closes #2012.
* arti: hss: Add `arti hss ctor-migrate`hjrgrn2025-07-3112-46/+292
|
* arti: raw: Rename `arti keys-raw remove-by-path`hjrgrn2025-07-153-16/+16
| | | | | * arti: raw: `remove-by-path` is now `remove-by-id` * arti: raw: Adjust integration tests
* arti: keys: Add arti keys-rawhjrgrn2025-07-1411-46/+161
| | | | | | | | | | | | | | | | | | | * CLI: Add `keys-raw` and subcommand `remove-by-path` * arti: Add `arti::subcommand::raw` for the CLI `keys-raw` * tor-keymgr: Add `ArtiNativeKeystoreError::UnexpectedRawEntry`, `ArtiEphemeralKeystoreError::NotSupported` * tor-keymgr: Add `tor-keymgr::raw` module * tor-keymgr: Add `Keystore::remove_unchecked` * tor-keymgr: Change `Keystore::list` to return `KeystoreEntry` * tor-keymgr: Add field `KeystoreEntry::raw_id` * doc: Update keys.md * doc: Add raw.md * tor-keymgr: BREAKING: `UnrecognizedEntryError::new` associated function is now only accessible within the crate `tor-keymgr` * tor-keymgr: BREAKING: `UnrecognizedEntryId` is renamed to `UnrecognizedEntry` * tor-keymgr: BREAKING: `KeyMgr::list()` and `Keystore::list()` now return `Result<Vec<KeystoreEntryResult<KeystoreEntry>>>`