Stream the following services https://gitlab.torproject.org/tpo/core/arti.git
Go to file
Nick Mathewson 63dbc7b22d Create an API for TransportId 2022-09-23 09:55:33 -04:00
.gitlab/issue_templates Adds issue creation templates for bugs, features, proposals and documentation. 2020-12-17 13:57:06 -03:00
arti-corpora@bd32029dad Update to new arti-corpora 2022-02-28 08:44:55 -05:00
crates Create an API for TransportId 2022-09-23 09:55:33 -04:00
doc Add a reminder to remove semver.md after release. 2022-09-07 09:20:30 -04:00
maint maint/docker_reproducible_build: Bump image here too 2022-09-06 13:53:11 +01:00
tests/chutney test/chutney/setup: Set allow_running_as_root as needed. 2022-08-24 10:57:03 -04:00
.appveyor.yml Use `static-sqlite` as feature flag for AppVeyor builds. 2022-08-30 21:47:30 +02:00
.ecrc Add editorconfig to force some rules (Final Newline) 2022-02-03 15:27:13 +00:00
.editorconfig Add editorconfig to force some rules (Final Newline) 2022-02-03 15:27:13 +00:00
.gitignore generate aggregated coverage reports 2022-05-05 18:35:34 +02:00
.gitlab-ci.yml CI: build-repro: Bump image to 1.63 2022-09-06 13:53:11 +01:00
.gitmodules use https submodule 2021-08-30 16:22:38 +02:00
.typos.toml Fix some typos in comments. 2021-10-19 10:40:32 -04:00
CHANGELOG.md Changelog: add acknowledgments 2022-09-01 10:09:50 -04:00
CODE_OF_CONDUCT Fix typos and cleanup 2021-10-25 19:58:42 +03:00
CONTRIBUTING.md docs: Move Tor Browser part to arti top-level (code motion) 2022-09-02 16:58:15 +01:00
Cargo.lock Create an API for TransportId 2022-09-23 09:55:33 -04:00
Cargo.toml tor-congestion: implement the RTT estimation algorithm from prop#324 2022-08-11 15:33:50 +01:00
LICENSE-APACHE add licenses 2021-11-30 00:04:58 +10:00
LICENSE-MIT add licenses 2021-11-30 00:04:58 +10:00
README.md READMEs: toplevel: Remove caveats, add xrefs, and tidying 2022-09-02 14:51:31 +01:00
WANT_FROM_OTHER_CRATES Note that tls-api is now async and can disable hostname verification 2022-02-24 14:26:38 +00:00
clippy-nightly.toml clippy: Consolidate many lints in maint/add_warning 2022-06-24 14:23:38 +01:00
clippy.toml Fix typo 2022-03-30 22:47:33 +03:00
tomlfmt.toml Lexically sort Cargo.toml dependencies 2022-05-28 20:05:51 +03:00

README.md

Crates.io

Arti: reimplementing Tor in Rust

Arti is a project to produce an embeddable, production-quality implementation of the Tor anonymity protocols in the Rust programming language.

Why rewrite Tor in Rust?

Rust is more secure than C. Despite our efforts, it's all too simple to mess up when using a language that does not enforce memory safety. We estimate that at least half of our tracked security vulnerabilities would have been impossible in Rust, and many of the others would have been very unlikely.

Rust enables faster development than C. Because of Rust's expressiveness and strong guarantees, we've found that we can be far more efficient and confident writing code in Rust. We hope that in the long run this will improve the pace of our software development.

Arti is more flexible than our C tor implementation. Unlike our C tor, which was designed as SOCKS proxy originally, and whose integration features were later "bolted on", Arti is designed from the ground up to work as a modular, embeddable library that other applications can use.

Arti is cleaner than our C tor implementation. Although we've tried to develop C tor well, we've learned a lot since we started it back in 2002. There are lots of places in the current C codebase where complicated "spaghetti" relationships between different pieces of code make our software needlessly hard to understand and improve.

Current status

Arti can connect to the Tor network, bootstrap a view of the Tor directory, and make anonymized connections over the network. Now that Arti has reached version 1.0.0, we believe it is suitable for actual use to anonymise connections.

There are a number of areas (especially at the lower layers) where APIs (especially internal APIs) are not stable, and are likely to change them. Right now that includes the command line interface to the arti program.

And of course it's still very new so there are likely to be bugs.

Building and using Arti

Arti can act as a SOCKS proxy that uses the Tor network.

We expect to be providing official binaries soon. But, for now, you need to obtain a Rust development environment, and build it yourself.

To try it out, compile and run the arti binary using the below. It will open a SOCKS proxy on port 9150.

$ cargo run -p arti --release -- proxy

You can build a binary (but not run it) with:

$ cargo build -p arti --release

The result can be found as target/release/arti.

If you run into any trouble building the program, please have a look at the troubleshooting guide.

Custom compile-time options

Arti has a number of configurable Cargo features that, among other things, can affect which asynchronous runtime to use.

See in the Arti crate-level docs for details.

Using Arti as a library

The arti command line utility is built on top of the arti_client library (and its dependencies).

That library's API will allow you to make connections over the Tor network, and obtain streams/sinks useable from async Rust.

Minimum supported Rust Version

Our current Minimum Supported Rust Version (MSRV) is 1.56.

When increasing this MSRV, we won't require any Rust version released in the last six months. (That is, we'll only require Rust versions released at least six months ago.)

We will not increase MSRV on PATCH releases, though our dependencies might.

We won't increase MSRV just because we can: we'll only do so when we have a reason. (We don't guarantee that you'll agree with our reasoning; only that it will exist.)

Helping out

Have a look at our contributor guidelines.

Roadmap

Thanks to a generous grant from Zcash Open Major Grants (ZOMG), we're able to devote some significant time to Arti in the years 2021-2022. Here is our rough set of plans for what we hope to deliver when.

The goal times below are complete imagination, based on broad assumptions about developer availability. Please don't take them too seriously until we can get our project manager to sign off on them.

  • Arti 0.0.1: Minimal Secure Client (Goal: end of October 2021??)

    • Target audience: developers
    • Guard support
    • Stream Isolation
    • High test coverage
    • Draft APIs for basic usage
    • Code cleanups
    • and more...
  • Arti 0.1.0: Okay for experimental embedding (Goal: Mid March, 2022??)

    • Target audience: beta testers
    • Performance: preemptive circuit construction
    • Performance: circuit build timeout inference
    • API support for embedding
    • API support for status reporting
    • Correct timeout behavior
    • and more...
  • Arti 1.0.0: Initial stable release (Goal: Mid September, 2022??)

    • Target audience: initial users
    • Stable API (mostly)
    • Stable CLI
    • Stable configuration format
    • Automatic detection and response of more kinds of network problems
    • At least as secure as C Tor
    • Client performance similar to C Tor
    • More performance work
    • and more...
  • Arti 1.1.0: Anti-censorship features (Goal: End of October, 2022?)

    • Target audience: censored users
    • Bridges
    • Pluggable transports
    • and more...?
  • Arti 1.2.0: Onion service support (not funded, timeframe TBD)

  • Arti 2.0.0: Feature parity with C tor as a client (not funded, timeframe TBD)

  • Arti ?.?.?: Relay support

How can I report bugs?

When you find bugs, please report them on our bugtracker. If you don't already have an account there, you can either request an account or report a bug anonymously.

How can I help out?

See CONTRIBUTING.md for a few ideas for how to get started.

License

This code is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

(The above notice, or something like it, seems to be pretty standard in Rust projects, so I'm using it here too. This instance of it is copied from the RustCrypto project's README.md file.)