summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | | Split "static" into sqlite and native-tls features.Nick Mathewson2022-02-254-7/+41
| | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise, it's impossible to get a static sqlite linkage without also getting native-tls, even if you wanted rustls. Closes #302.
| * | | | | | Merge branch 'always-coarsetime' into 'main'eta2022-02-284-13/+3
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make coarsetime dependency and traffic-timestamping non-optional. See merge request tpo/core/arti!358
| | * | | | | | Make coarsetime dependency and traffic-timestamping non-optional.Nick Mathewson2022-02-254-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously coarsetime and the traffic-timestamp feature were enabled, since they were only required for a small corner of the guardmgr algorithm. But in 1.0 and beyond we'll be adding a bunch of other features (eg, netflow padding, DoS prevention) that will need coarsetime all over the place. And since we're going to be doing coarsetime all over the place, the previous justification for making traffic-timestamping optional (the tiny performance hit) is no longer relevant.
| * | | | | | | Merge branch 'fix/210' into 'main'Nick Mathewson2022-02-281-1/+1
| |\ \ \ \ \ \ \ | | |_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | don't return already errored pending circuit when searching new circuit matching spec Closes #210 See merge request tpo/core/arti!366
| | * | | | | | don't return already errored pending circuit when searching new circuit ↵trinity-1686a2022-02-271-1/+1
| | | |/ / / / | | |/| | | | | | | | | | | | | | | | | | matching spec
| * | | | | | Fix two typosNick Mathewson2022-02-282-2/+2
| | | | | | |
| * | | | | | impl Debug for various internal typesIan Jackson2022-02-254-4/+36
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I wanted this while debugging something. The ad-hoc impl Debug with f.debug_struct is getting repetitive and I've already perpetrated one copy-paste mistake. We should consider using something like the `educe` crate's Clone.
* | | | | | arti-client: use PreferredRuntime by default, doc cleanupseta2022-02-289-139/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes using the `PreferredRuntime` the first-class option inside `arti-client`, freeing users who don't want to think about runtimes from having to do so. `TorClient::create_unbootstrapped` and `builder` now automatically use this runtime, leaving only `builder_custom` for users who wish to manually specify a runtime. This lets us clean up the docs a lot: mentions of using custom runtimes are now relegated to nearer the end of the crate-level documentation, and we mostly just link to `tor_rtcompat`'s docs to explain more there. Instead, we take some more time to explain how you use the builder API to create clients synchronously. Other doc cleanups included getting rid of the explanation of `TorAddr` in the main crate-level doc; this is already well-documented elsewhere, and is something users should discover organically later. fixes arti#326
* | | | | | tor-rtcompat: refactor PreferredRuntime, clean up docseta2022-02-253-55/+142
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `PreferredRuntime` is now an opaque wrapper struct that contains the "actual" preferred runtime as a type alias. The `current_user_runtime` and `create_runtime` functions become `PreferredRuntime::current` and `PreferredRuntime::create`, respectively. This removes the dependence on `impl Trait`, meaning we can now name the returned runtime (yay!). In addition, the documentation was cleaned up a bit to make it (hopefully) flow better. Items that don't make sense to publicize, like testing implementation details, have been marked #[doc(hidden)] and semver warnings added.
* | | | | Merge branch 'upgrade-dependencies' into 'main'Nick Mathewson2022-02-2515-46/+74
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | Upgrade a few dependencies to newer versions See merge request tpo/core/arti!357
| * | | | Update minimum backtrace version to 0.3.39Nick Mathewson2022-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This is needed to make the backtrace test pass on Rust 1.53 with minimum-version libraries.
| * | | | Bump minimum tokio to 1.7, since tokio-util now needs that.Nick Mathewson2022-02-257-7/+7
| | | | |
| * | | | Upgrade to newer version of config crate.Nick Mathewson2022-02-257-33/+61
| | | | |
| * | | | Upgrade dependency to new version of tokio-util.Nick Mathewson2022-02-253-3/+3
| | | | |
| * | | | Upgrade dependency to new version of rlimit.Nick Mathewson2022-02-252-2/+2
| | | | |
* | | | | Merge branch 'tcp-hook-new-tls' into 'main'eta2022-02-251-2/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | use runtime TlsProvider in tcp-hook example See merge request tpo/core/arti!356
| * | | | | use runtime TlsProvider in tcp-hook exampletrinity-1686a2022-02-251-2/+1
| | | | | |
* | | | | | Merge branch 'debug-datastream' into 'main'eta2022-02-251-1/+1
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | tor-proto datastream: Fix typo in Debug impl See merge request tpo/core/arti!354
| * | | | | tor-proto datastream: Fix typo in Debug implIan Jackson2022-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/353#note_2781632
* | | | | | Merge branch 'get-runtime' into 'main'Ian Jackson2022-02-251-0/+11
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | TorClient: Add get_runtime() convenience method See merge request tpo/core/arti!350
| * | | | | TorClient:runtime(): rename from get_runtimeIan Jackson2022-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/350#note_2781368
| * | | | | TorClient: Add get_runtime() convenience methodIan Jackson2022-02-241-0/+11
| | | | | |
* | | | | | Merge branch 'tls-trait' into 'main'Ian Jackson2022-02-257-29/+38
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | tor-rtcompat: Provide TLS wrapping for all streams See merge request tpo/core/arti!349
| * | | | | Fix rustdoc "skip this" markupIan Jackson2022-02-241-1/+1
| | | | | |
| * | | | | tor-rtcompat: Provide TLS wrapping for all streamsIan Jackson2022-02-247-29/+38
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now all of the runtime types we provide all impl<S> TlsProvider<S> where S: ... rather than merely TlsProvider<Self::TcpStream>. And we document and intent to perhaps require this in the future.
* | | | | Merge branch 'debug-datastream' into 'main'eta2022-02-241-4/+11
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tor-proto datastream: Do not dump packet data in DataWriterImpl See merge request tpo/core/arti!353
| * | | | | Fix rustfmtIan Jackson2022-02-241-1/+1
| | | | | |
| * | | | | tor-proto datastream: Do not dump packet data in DataWriterImplIan Jackson2022-02-241-2/+9
| | | | | |
| * | | | | tor-proto datastream: import std::fmt::Debug trait nameIan Jackson2022-02-241-2/+2
| | | | | |
* | | | | | Merge branch 'eta/335' into 'main'eta2022-02-246-6/+71
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | arti-client: Unlock the state manager on failure to bootstrap Closes #335 See merge request tpo/core/arti!334
| * | | | | | arti-client: Unlock the state manager on failure to bootstrapeta2022-02-246-6/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `StateMgr` got a new `unlock()` method that does what it says on the tin. We now call it from `bootstrap()` using the new `util::StateMgrUnlockGuard`, which works in a manner similar to the `BoolResetter` from `tor_dirmgr`. (A decent small little task in future might be to unify these types in some sort of general arti utility crate?) closes arti#335
* | | | | | | Merge branch 'socks-version-is-http' into 'main'eta2022-02-241-1/+36
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | make arti return a web page when receiving http request on socks port See merge request tpo/core/arti!348
| * | | | | | use less magic in http checktrinity-1686a2022-02-241-2/+4
| | | | | | |
| * | | | | | make arti return a web page when receiving http request on socks porttrinity-1686a2022-02-231-1/+34
| | |/ / / / | |/| | | |
* | | | | | Merge branch 'http-layer' into 'main'eta2022-02-248-65/+210
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initial cut of hyper bindings as a library crate See merge request tpo/core/arti!342
| * | | | | | arti-hyper: impl HasKind for ConnectionErrorIan Jackson2022-02-232-0/+15
| | | | | | |
| * | | | | | arti-hyper: Add note about missing https supportIan Jackson2022-02-232-0/+4
| | | | | | |
| * | | | | | arti-hyper: Add vacuous doc comments to placate clippyIan Jackson2022-02-231-0/+3
| | | | | | |
| * | | | | | arti-hyper: Move support code into libraryIan Jackson2022-02-232-112/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Pure code motion. (Including motion/copying of "use" lines.)
| * | | | | | arti-hyper: Introduce new ConnectionError typeIan Jackson2022-02-233-13/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need this not to use anyhow because we don't want our libraries to expose anyhow, and this is about to go into the library.
| * | | | | | impl From<TorAddrError> for tor_error::ErrorIan Jackson2022-02-231-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It auto-converts to ErrorDetail but add this for convenience of callers which don't want to look into that unstable API.
| * | | | | | arti-hyper: Move hyper example from arti-clientIan Jackson2022-02-233-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Code motion and consequential dependency adjustments.
| * | | | | | arti-hyper: empty crate skeletonIan Jackson2022-02-233-0/+77
| | | | | | |
| * | | | | | Add missing documentation for TLS features to two readmesIan Jackson2022-02-232-0/+4
| |/ / / / /
* | | | | | Merge branch 'proto_handshake_err' into 'main'Nick Mathewson2022-02-2411-98/+143
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | tor-proto: Split up a couple of handshake-based errors Closes #359 and #358 See merge request tpo/core/arti!344
| * | | | | proto: Refactor conversion from CodecError to ErrorNick Mathewson2022-02-243-32/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove default conversion; instead use a specific conversion in each of the two modules that need to do it.
| * | | | | tor-proto: refactor handshake protocol errors to a different typeNick Mathewson2022-02-232-52/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This helps the user distinguish between protocol violations that happen when connecting to the tor network from those that happen while connected. Closes #358.
| * | | | | tor-proto: Rename BadHandshake to BadCircHandshakeNick Mathewson2022-02-237-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | (We'll have a BadChanHandshake soon.)
| * | | | | tor-proto: Split IoErr based on when it occursNick Mathewson2022-02-235-21/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We want to distinguish handshake failures from errors later on in the channel's lifetime. Closes #359.
* | | | | | Merge branch 'remote_stream_err' into 'main'eta2022-02-243-4/+75
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Give specific error kinds to different END reasons Closes #360 See merge request tpo/core/arti!343