aboutsummaryrefslogtreecommitdiff
path: root/crates/arti-client/examples/one_hop_circuit.rs
Commit message (Collapse)AuthorAgeFilesLines
* client: Factor out the "running a client" code into an inner typestateNick Mathewson2026-05-261-4/+3
| | | | | | We'll use this to distinguish "not running" from "running", in order to make it easier to be sure that non-bootstrapping clients will definitely not try to connect to the network.
* arti-client example: Write rather than hide an elided lifetimeIan Jackson2025-08-111-1/+1
| | | | | | | | | | | | | | | | | | Fixes this warning. Not sure why it's not showing up in CI. --> crates/arti-client/examples/one_hop_circuit.rs:16:35 | 16 | fn find_one_hop_dir_cache(netdir: &NetDir) -> Option<Relay> { | ^^^^^^^ ----- the same lifetime is hidden here | | | the lifetime is elided here | = help: the same lifetime is referred to in inconsistent ways, making the signature confusing = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default help: use `'_` for type paths | 16 | fn find_one_hop_dir_cache(netdir: &NetDir) -> Option<Relay<'_>> { | ++++
* Clippy 1.88 fix: reformat some debug prints.Nick Mathewson2025-07-031-2/+2
|
* squash! Upgrade rand dependency to 0.9.Nick Mathewson2025-03-181-1/+1
| | | | - `rand::thread_rng()` has been deprecated and renamed to `rand::rng()`
* Disable a lot of dead code warningsIan Jackson2024-10-171-0/+3
| | | | | | | Now cargo check --workspace --no-default-features --all-targets cargo build -p arti --no-default-features --features=memquota,tokio,native-tls are both clean.
* Fix typosDimitris Apostolou2024-09-031-1/+1
|
* arti-client: Add one-hop circuit examplejuga2024-05-151-0/+65
Co-authored-by: gabi-250 <[email protected]>