summaryrefslogtreecommitdiff
path: root/examples/gsoc2023
Commit message (Collapse)AuthorAgeFilesLines
* cargo: Update `arti-*` and `tor-*` to `0.38.0`Clara Engler2026-01-124-16/+16
| | | | | | | | | Done using the following: ```bash for crate in $(./maint/list_crates | rg '^(tor|arti-)'); do cargo set-version -p $crate 0.38.0 done ```
* Bump all the unstable tor- and arti- crates to 0.37.0.Gabriela Moldovan2025-12-024-16/+16
| | | | | | | | | Done using: ``` for crate in $(./maint/list_crates | rg '^(tor|arti-)'); do cargo set-version -p $crate 0.37.0 done
* maint: bump minor versions of all published cratesSteven Engler2025-10-294-16/+16
| | | | | | | ```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-024-16/+16
|
* release: Run fixup-features.Wesley Aptekar-Cassels2025-10-014-16/+16
|
* Require tracing-subscriber 0.3.20Nick Mathewson2025-09-024-4/+4
| | | | Fixes RUSTSEC-2025-0055.
* proto: Move the `stream` module under `client` (breaking).Gabriela Moldovan2025-08-181-1/+1
| | | | | | | | | | | | 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.
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-077-7/+7
| | | | | | | | | | | | | | 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]>
* Typo fixes (automatic and hand-verified)Nick Mathewson2025-07-091-1/+1
| | | | Made with https://crates.io/crates/typos-cli
* examples, fixup-features: use inline vars in format stringNick Mathewson2025-05-295-18/+18
| | | | Nightly clippy now suggests this.
* ./maint/cargo_sort: Run cargo-sort on the entire workspace.Gabriela Moldovan2025-05-272-2/+15
| | | | | | | | | | | | | | | | | | | 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
* 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`).
* 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-051-1/+1
| | | | We use this in an example only.
* Rewrite download manager exampletidely2025-02-043-420/+0
|
* 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
|
* 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-022-8/+2
| | | | Edited-by: Nick Mathewson <[email protected]>
* Run "fixup-features" in preparation for next release.Nick Mathewson2024-03-285-0/+15
|
* 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.
* 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
|
* obs4-checker/README.md: annotate verbatim sectionsNick Mathewson2023-09-051-3/+3
|
* obfs4-checker: port from chrono to time.Nick Mathewson2023-09-053-15/+13
| | | | | Chrono is unmaintained, I think, and uses a version of `time` that cargo-audit doesn't like.
* Use a more recent tracing_subscriber in examples.Nick Mathewson2023-09-055-5/+5
| | | | Part of a solution for cargo-audit.
* Set license on gsoc2023 examples to "MIT OR Apache-2.0"Nick Mathewson2023-09-055-1/+5
| | | | | With permission from gotlou; see discussion at https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1556
* Add a README to gsoc2023 directory.Nick Mathewson2023-09-051-0/+3
|
* Remove cargo.lock from download-manager.Nick Mathewson2023-09-051-3895/+0
|
* Move examples to examples/gsoc2023Nick Mathewson2023-09-0522-0/+6135