aboutsummaryrefslogtreecommitdiff
path: root/tor-client/src
Commit message (Collapse)AuthorAgeFilesLines
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-272-526/+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-201-1/+1
| | | | 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-121-1/+1
|\
| * Fix warning sign emoji in tor-client docLennart Kloock2021-08-121-1/+1
| |
* | 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-061-1/+6
| | | | | 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
|
* 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-141-2/+1
| | | | | document the behavior of IsolationToken::default remove From and Into impls between IsolationToken and u64
* implement stream isolationTrinity Pointard2021-07-131-1/+17
|
* 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-241-1/+5
|/
* Fix some warnings about needless & from nightly clippyNick Mathewson2021-06-181-1/+1
|
* 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-261-1/+1
|
* Enable cargo_common_metadata warning.Nick Mathewson2021-05-251-0/+1
|
* 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
|
* improve crate doc for tor-client.Nick Mathewson2021-05-211-3/+59
|
* Add the "unreachable_pub" lint.Nick Mathewson2021-05-181-0/+1
| | | | | | This is a somewhat obnoxious change in its scope and requirements, but it makes it easier to understand what the real public and private parts of our APIs are.
* Check "connection" usage for when stream or channel would be better.Nick Mathewson2021-05-181-5/+6
|
* Remove tor-proto exposure in tor-client API.Nick Mathewson2021-05-181-5/+34
|
* Rename NetDirConfig to DirMgrConfig.Nick Mathewson2021-05-141-2/+2
|
* Add trait_duplication_in_bounds warning.Nick Mathewson2021-05-031-0/+1
|