summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* maint: bump minor versions of all published cratesSteven Engler2025-10-298-29/+29
| | | | | | | ```bash readarray -t publish < <(cargo metadata --format-version 1 | jq -r '.packages[] | select((.id | startswith("path+file:///")) and (.rust_version != null) and (.publish == null or .publish == true or .publish != [])) | .name') for package in "${publish[@]}"; do echo "$package:"; cargo set-version --bump minor -p "$package"; done ```
* release: Bump versions in examples/ and maint/Wesley Aptekar-Cassels2025-10-028-29/+29
|
* release: Run fixup-features.Wesley Aptekar-Cassels2025-10-018-29/+29
|
* macos-native-tls-notice: Update README.md of hyper-examples with notice of ↵nield2025-10-011-0/+3
| | | | native-tls bug on MacOS
* macos-native-tls-notice: Update README.md of download-manager with notice of ↵nield2025-10-011-0/+4
| | | | native-tls bug on MacOS
* Require tracing-subscriber 0.3.20Nick Mathewson2025-09-027-7/+7
| | | | Fixes RUSTSEC-2025-0055.
* Fix complaints from "cargo sort"Nick Mathewson2025-08-271-3/+9
|
* Run "fixup-features"Nick Mathewson2025-08-272-0/+6
|
* Update webpki-roots dependency to 1.0.2Nick Mathewson2025-08-261-1/+1
|
* proto: Move the `stream` module under `client` (breaking).Gabriela Moldovan2025-08-183-3/+3
| | | | | | | | | | | | The `stream` module is client-specific, for the most part, so I am moving it under `client`. Later on, we will factor out the parts that can be shared with the relay implementation. Note: this is a breaking change as the deleted `stream` module was `pub`. We could've kept the module and reexported from it the public types from `tor_proto::client::stream`, but I think it's better to have this `client` namespacing, because it makes the separation between the client and relay parts clearer.
* hyper-examples: Run rustfmtIan Jackson2025-08-111-1/+3
|
* Merge branch 'main' into !2941Ian Jackson2025-08-1115-27/+32
|\ | | | | | | | | | | | | | | | | | | Conflicts: examples/hyper/hyper-http-client-example/Cargo.toml examples/hyper/hyper-http-hs-example/Cargo.toml In both cases, just the change of edition, which I have applied to examples/hyper-examples/Cargo.toml instead.
| * Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-0715-22/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * obfs4-checker: do not enable tor-proto/experimental.Nick Mathewson2025-08-061-1/+1
| | | | | | | | | | | | | | | | | | 1. In general, it is always wrong to unconditionally depend on "experimental". Instead, a crate should depend on the particular experimental features it needs (if any). 2. obfs4-checker does not appear to need tor-proto/experimental any longer.
| * proto: abolish path_ref() in favor of all_paths().Gabriela Moldovan2025-08-051-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Until now, we've been using `ClientCirc::path_ref()` to get the *only* path of a circuit. Now that `ClientCirc` is a handle to a tunnel reactor (which may or may not be multi-path), we need to decide for each call site of `path_ref()`, if we actually want *all* paths in the tunnel, or if we expect the tunnel to be single-path and thus want the *only* path in the tunnel. I've added two new APIs to address this: `all_paths()`, for getting all the paths in the tunnel, and `single_path()` for getting the only path in the tunnel, or an error if the tunnel is single-path.
| * arti-client: Use the new Tunnel interfaceDavid Goulet2025-08-051-3/+3
| | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | hyper-examples: Cargo fmtnield2025-08-041-1/+4
| |
* | hyper-examples: Use std::time::Durationnield2025-08-041-1/+2
| |
* | hyper-examples: Use random nickname for onion servicenield2025-08-041-1/+1
| |
* | Merge branch 'main' into hyper-examplesnield2025-08-042-4/+4
|\| | | | | | | | | # Conflicts: # examples/hyper-examples/src/bin/hyper-http-hs-example.rs
| * Use new DisplayRedacted/DebugRedacted code for HsId.Nick Mathewson2025-07-312-4/+4
| | | | | | | | Closes #2012.
* | hyper-examples: Use native-tls instead of rustlsnield2025-07-212-22/+4
| |
* | hyper-examples: Delete folder remaining after rebasenield2025-07-201-31/+0
| |
* | hyper-examples: Typonield2025-07-201-1/+1
| |
* | hyper-examples: rustfmtnield2025-07-201-4/+7
| |
* | hyper-examples: Clarify comment regarding `is_fully_reachable`nield2025-07-201-3/+2
| | | | | | | | Previous comment was not clear. `is_fully_reachable` only gives false negatives, not false positives.
* | hyper-examples: Simplify code for timeoutnield2025-07-201-51/+15
| | | | | | | | We removed the while loop.
* | hyper-examples: Print messages to stderrnield2025-07-201-6/+6
| |
* | hyper-examples: Add comment why we use rustls and manual set root_certnield2025-07-201-0/+4
| | | | | | | | | | | | | | | | The reason we prefer `rustls` in this case is because `rustls` provides better portability then `native-tls` due to not being dependent on the system. We have to explicitely set the root_cert because `rustls` does not use the system CA Certs to remain portable.
* | hyper-examples: Print messages to stderrnield2025-07-201-2/+2
| |
* | hyper-examples: Allow cli argument for test-urlnield2025-07-201-1/+4
| |
* | hyper-examples: Remove hyper-custom-connector-examplenield2025-07-203-263/+2
| | | | | | | | We will make a separate library for this.
* | hyper-examples: Typonield2025-07-201-1/+1
| |
* | hyper-examples: Fix example hyper-http-hs-examplenield2025-07-201-13/+67
| | | | | | | | | | | | | | | | This example previously remained stuck in the while loop without any output, seeming as if this example is not working. This because the method `is_fully_reachable` is no guarantee for the actual status of the onion service. It might return false while the service is actually reachable. We added a timeout to not remain stuck in the loop.
* | hyper-examples: Rename example directorynield2025-07-205-1/+1
| | | | | | | | This directory had to be renamed because otherwise it would cause conflicts with the actual hyper crate in the CI pipeline.
* | hyper-examples: Fix example hyper-http-client examplenield2025-07-201-14/+22
| | | | | | | | This example previously had errors trying to make a connection, this is solved now.
* | hyper-examples: Cargo fmtnield2025-07-201-1/+1
| |
* | hyper-examples: Add README.mdnield2025-07-201-0/+40
| |
* | hyper-examples: Remove subdirectories from examplenield2025-07-208-50/+31
| | | | | | | | | | This example directory had a separate directory for each example. We can simplify this by using binaries.
* | hyper-examples: Remove unsafe test url form hyper-http-client-examplenield2025-07-201-1/+3
| | | | | | | | This example made a request to a website which could deanonymize the user. We now use check.torproject.org instead.
* | hyper-examples: Example creating custom ArtiHttpConnector for hypernield2025-07-202-0/+271
|/ | | | | This example demonstrates how to create a custom connector which can be injected into a hyper client, to use hyper for Tor requests.
* Typo fixes (automatic and hand-verified)Nick Mathewson2025-07-091-1/+1
| | | | Made with https://crates.io/crates/typos-cli
* Fix various missing incorrect feature entries as prep for release.Alexander Hansen Færøy2025-06-031-0/+3
|
* examples, fixup-features: use inline vars in format stringNick Mathewson2025-05-2911-32/+32
| | | | Nightly clippy now suggests this.
* ./maint/cargo_sort: Run cargo-sort on the entire workspace.Gabriela Moldovan2025-05-273-3/+22
| | | | | | | | | | | | | | | | | | | The [latest version] of `cargo-sort` is more opinionated than the previous one, and is now causing the `rust-checks` job to fail on `main`. This commit applies the fixes needed to satisfy the new `cargo-sort` rules. These changes were generated by running `cargo sort --workspace` several times, until `cargo sort --check --workspace` finally succeeded (it couldn't fix all the errors in one go, for some reason). I have omitted the changes `cargo-sort` made to the top-level `Cargo.toml`, to preserve the topological ordering of the workspace members. Closes #2014 [latest version]: https://github.com/DevinR528/cargo-sort/blob/f066ae80e5e6f5c1d8f0e2b8099461dcb97d9656/changelog.md#200
* Merge branch 'arti-ureq-remove-early-return' into 'main'Ian Jackson2025-05-191-1/+1
|\ | | | | | | | | | | | | arti-ureq: Remove obsolete early return in await_input Closes #1952 See merge request tpo/core/arti!2997
| * arti-ureq: Remove obsolete early return in await_inputNiel Duysters2025-05-191-1/+1
| |
* | tor-proto: Update the TunnelMutableState when a circuit is removed.Gabriela Moldovan2025-05-151-1/+1
|/ | | | | | | | This is messy, because `ClientCirc::{path_ref, n_hops, ..}` become fallible (we can't unwrap the result, because when a circuit is closed, its state gets removed from the `TunnelSharedState`, but its `ClientCirc` handle continues to exist, so any attempt to retrieve the state will result in an `Err`).
* arti-ureq: New library which integrates with ureqnield2025-04-096-0/+226
| | | | Fixes #1519
* examples: Version bump Tor browser in download-managervcrn2025-03-251-8/+9
|