summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
|
* examples: Use onion_address() instead of depricated onion_name()vcrn2025-03-141-1/+1
|
* Merge branch 'dev/cve/is_fully_reachable' into 'main'gabi-2502025-03-142-1/+19
|\ | | | | | | | | | | | | tor-hsservice: Add is_fully_reachable() method Closes #1890 See merge request tpo/core/arti!2850
| * examples: Use is_fully_reachable() in examples/Clara Engler2025-03-132-1/+19
| |
* | Deprecate --onion-name; introduce --onion-addressdisha2025-03-121-1/+1
|/
* tor-proto: Remove deprecated DataStream API.Gabriela Moldovan2025-02-132-9/+14
| | | | | Reducing `ClientCirc` proliferation will make our lives easier when implementing !2790.
* Upgrade to axum 8Ian Jackson2025-02-052-2/+2
| | | | We use this in an example only.
* Rewrite download manager exampletidely2025-02-046-420/+347
|
* proto: deprecate DataStream::circuitNick Mathewson2025-01-301-0/+1
| | | | | | | | This method is experimental, so no semver note is needed. It is redundant with `client_stream_ctrl()?.circuit()?`. (The name and the unconditional return type of this method are probably an error.)
* Upgrade to fast-socks5 0.10.0Nick Mathewson2025-01-061-1/+1
|
* cargo: Update `thiserror` to `2`Clara Engler2024-11-123-3/+3
|
* tor-proto: Plumb the ChannelAccount through to queue creation siteIan Jackson2024-10-031-1/+2
| | | | | This gets it as far as the outbound circuit->channel mpsc queue creation. Also, we provide an accessor for it.
* tor-proto: Plumb the ChannelAccount through to queue creation site (pre-fmt)Ian Jackson2024-10-031-1/+3
|
* Run fixup-features in preparation for upcoming release.Nick Mathewson2024-09-251-1/+1
|
* obfs4-checker: update axum to 0.7.6Steven Engler2024-09-242-4/+6
|
* add example: axum router as onion servicetidely2024-09-243-0/+127
|
* connection-checker: Do not enable arti "experimental" featureIan Jackson2024-09-041-1/+2
| | | | | This breaks config tests in crates/arti which test configuration parsing of disabled experimental features.
* obfs4-checker: Do not enable arti "experimental" featureIan Jackson2024-09-041-2/+2
| | | | | This breaks config tests in crates/arti which test configuration parsing of disabled experimental features.
* Fix clippy::doc_lazy_continuationIan Jackson2024-07-081-6/+8
|
* Stop building examples/gsoc2023/download-managerIan Jackson2024-06-251-0/+3
|
* proto: Make Channel explicitly Arc<.>Nick Mathewson2024-05-161-10/+12
| | | | | | | | | | | | | | | | Previously, Channel was a type that you could Clone that implicitly its state. Now, Channel always appears as an Arc<Channel>. This change has several benefits: * It makes the relationship between Channel struct and the underlying channel more clear. * It enables Channel to participate in the RPC system, where everything has to be an Arc<.> * It enables us to have a Weak<Channel>, if we ever want to. * It will let us move various members out of ChannelDetails. We did this change a while ago with ClientCirc.
* remove unused dependenciestrinity-1686a2024-04-023-10/+3
| | | | Edited-by: Nick Mathewson <[email protected]>
* Run "fixup-features" in preparation for next release.Nick Mathewson2024-03-287-0/+21
|
* Rename ManagedTransportConfig to TransportConfig.Nick Mathewson2024-03-142-4/+4
| | | | We're going to start using this type for _every_ kind of transport.
* gsoc2023: download-manager: Truncate the output fileIan Jackson2024-01-311-0/+1
| | | | | | | | | | Without this we might end up with a mixture of new file and previous wreckage. If this were released code I would think about treating this as a security issue. Prompted by clippy.
* Examples using hyper v1ramidzkh2024-01-116-0/+255
|
* Fix typosDimitris Apostolou2024-01-083-3/+3
|
* Use "wrap_help" feature for clap.Nick Mathewson2023-11-153-3/+3
|
* clap4: Upgrade from a deprecated syntax in examples.Nick Mathewson2023-11-151-4/+4
|
* Update download-manager example to match download locationgil2023-10-201-2/+2
| | | | | | It seems download-manager example has fallen out of sinc with files under https://dist.torproject.org/torbrowser/. This updates the example to match online files so download can succeed.
* pt-proxy example: Upgrade to fast-socks5 v0.9.1.Nick Mathewson2023-09-282-3/+3
|