aboutsummaryrefslogtreecommitdiff
path: root/tor-client
Commit message (Collapse)AuthorAgeFilesLines
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-274-630/+0
| | | | | This will cause some pain for now, but now is really the best time to do this kind of thing.
* WIP: Add the "unwrap_used" lint.S0AndS02021-08-241-0/+1
| | | | | | | | | | | | | | | | | > Check `unwrap_used` section of Clippy documentation for details; > > https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used This adds the following Clippy configuration to crates; #![deny(clippy::unwrap_used)] **Warning** while tests and compiler do not show any errors, the submitted changes are very much a Work In Progress and mistakes may have been made. Check https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/67 Merge Request thread for more details.
* Switch all uses of the log crate to the tracing.Jani Monoses2021-08-202-2/+2
| | | | Issue #74
* Typo fixes.Nick Mathewson2021-08-201-1/+1
|
* replace IsolationToken::default with no_isolationTrinity Pointard2021-08-181-1/+10
|
* Revisions based on new documented-panics lint.Nick Mathewson2021-08-181-1/+2
| | | | | I've tried to remove some of possible panics, and improve the documentation for when the others might occur.
* Merge remote-tracking branch 'origin/mr/60'Nick Mathewson2021-08-181-0/+1
|\
| * Add the "missing_panics_doc" lint.S0AndS02021-08-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | > Check `missing_panics_doc` section of Clippy documentation for details; > > https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc This adds the following Clippy configuration to crates; #![deny(clippy::missing_panics_doc)] And adds necessary doc-comments to methods that may panic.
* | Add the "implicit_clone" lint.S0AndS02021-08-171-0/+1
|/ | | | | | | | | | | | | | > Check `implicit_clone` section of Clippy documentation for details; > > https://rust-lang.github.io/rust-clippy/master/index.html#implicit_clone This adds, and addresses, the following Clippy configuration to crates; #![deny(clippy::implicit_clone)] And moves related line within `maint/add_warning.py` file. My intent is to mitigate extra edits after merging, so please let me know if I need to do this last bit differently.
* Use add_warnings.py for clippy::cast_losslessNick Mathewson2021-08-131-1/+1
|
* Add the "cast_lossless" lint.S0AndS02021-08-121-0/+1
| | | | | | | | | | | | > Check `cast_lossless` section of Clippy documentation for details; > > https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless This adds the following Clippy configuration to crates; #![deny(clippy::cast_lossless)] And applies suggested Clippy and `cargo fmt` fixes.
* Merge remote-tracking branch 'origin/mr/58'Nick Mathewson2021-08-122-2/+2
|\
| * Fix warning sign emoji in tor-client docLennart Kloock2021-08-122-2/+2
| |
* | Use real network parameter values to tune test circuits.Nick Mathewson2021-08-121-1/+6
| | | | | | | | Finishes #145.
* | Periodically launch timeout-testing circuits.Nick Mathewson2021-08-121-1/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | Our path-spec says that, if we don't have enough build-time data to make a good estimate for our timeouts, we should periodically try launching testing circuits just to see how long they take to build. Here we implement that. The implementation is a bit wonky because of how our crates are factored; see arti#161 for more info. Closes #145. Closes #57.
* | tor-client: remove workaround now that #155 is in.Nick Mathewson2021-08-111-10/+0
|/
* Make a basic daemon task to close circuits.Nick Mathewson2021-08-101-2/+1
| | | | | | The timing is not ideal here; we'll want to refactor it later. Closes #51
* Use real network parameters to set unused-circ timeouts.Nick Mathewson2021-08-101-0/+2
|
* Note functionality that maybe could move.Nick Mathewson2021-08-101-0/+5
|
* Have CircMgr::new() return an Arc<>.Nick Mathewson2021-08-101-6/+2
|
* Flush persistent state periodically, and on (clean-ish) exit.Nick Mathewson2021-08-091-2/+48
|
* Implement initial persistence for circuit timeout dataNick Mathewson2021-08-062-1/+7
| | | | | There's more to do here: we never actually store the data we get here, and we won't work at all when somebody else has the lock.
* Add unnecessary_wraps to the big warning list.Nick Mathewson2021-08-061-0/+1
|
* Update READMEs.Nick Mathewson2021-08-061-2/+6
|
* Add a configuration structure for CircMgr.Nick Mathewson2021-08-051-4/+10
| | | | | | This patch makes path configuration and request timing options get exposed up to the tor-client level. I'm trying `derive_build` here so we can eventually get consistent across all our builders.
* Fix typos and other spelling mistakesrls2021-07-311-4/+4
|
* Fix some CI warnings.Nick Mathewson2021-07-311-11/+6
|
* Whenever the consensus changes, inform the circmgr about new paramsNick Mathewson2021-07-301-2/+41
| | | | Closes #144
* Add a kludge to make resolve requests work.Nick Mathewson2021-07-271-0/+10
| | | | | Apparently "a circuit supporting no target ports" is not truly an exit circuit. We should add a better fix here, however.
* Do not try to resolve .onion addresses.Nick Mathewson2021-07-271-0/+4
|
* tor-client: rename circ function to a more descriptive nameNick Mathewson2021-07-271-5/+6
|
* Add support for RESOLVE and RESOLVE_PTRYuan Lyu2021-07-221-8/+68
|
* reexport IsolationToken in tor-clientTrinity Pointard2021-07-141-0/+1
|
* move IsolationToken to circmgrTrinity Pointard2021-07-142-3/+1
| | | | | document the behavior of IsolationToken::default remove From and Into impls between IsolationToken and u64
* implement stream isolationTrinity Pointard2021-07-132-1/+18
|
* Allow tor-rtcompat to build with no runtimes.Nick Mathewson2021-07-011-1/+4
| | | | | | | | | | | | Thanks to cargo's version-2 feature resolver, we can require a runtime for tests only. I'm also making it so that the functions that create or fetch Runtimes only exist when one of the runtime features is enabled. For now that seems like a better solution than having those functions exist but panic. Closes #129.
* Merge remote-tracking branch 'origin/mr/34'Nick Mathewson2021-06-271-0/+2
|\
| * Add clippy warn needless pass by valueYUAN LYU2021-06-211-0/+1
| |
| * Add clippy warn needless borrowYUAN LYU2021-06-211-0/+1
| |
* | Rename tor-client to arti-tor-client for now.Nick Mathewson2021-06-242-2/+6
| |
* | Bump version dependencies to 0.0.0Nick Mathewson2021-06-241-5/+5
| |
* | Remove "publish = false"Nick Mathewson2021-06-241-1/+0
|/
* Fix some warnings about needless & from nightly clippyNick Mathewson2021-06-181-1/+1
|
* Remove some (but not all) needless dependencies.Nick Mathewson2021-06-171-4/+0
|
* Add noop_method_call warning.Nick Mathewson2021-05-271-0/+1
| | | | | | This would have saved ahf and me a lot of confusion in debugging a situation where we were cloning a reference of a type that didn't implement Clone.
* Use the "typos" tool to fix some spellingNick Mathewson2021-05-262-2/+2
|
* Enable cargo_common_metadata warning.Nick Mathewson2021-05-251-0/+1
|
* Add automatically generated README.md files to each crate.Nick Mathewson2021-05-251-0/+67
|
* Add a link tto the tor website to arti blurb.Nick Mathewson2021-05-241-1/+2
|
* Add tor-proto docs and tweak docs+apis elsewhere.Nick Mathewson2021-05-211-1/+15
|