aboutsummaryrefslogtreecommitdiff
path: root/tor-proto
Commit message (Collapse)AuthorAgeFilesLines
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-2735-9842/+0
| | | | | This will cause some pain for now, but now is really the best time to do this kind of thing.
* Tweaks on patch to add clippy::unwrap_used lint.Nick Mathewson2021-08-272-2/+4
| | | | | | | The most frequent changes are: - Rewording messages about poisoned locks - Correcting some error types
* Merge remote-tracking branch 'origin/mr/67' into unwrap_usedNick Mathewson2021-08-274-3/+10
|\
| * WIP: Add the "unwrap_used" lint.S0AndS02021-08-244-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > 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.
* | Basic implementation for prop#332 ntor v3 backend.Nick Mathewson2021-08-243-0/+675
|/ | | | | | | | This isn't tied into the protocol code yet, since we don't actually have anybody to negotiate with here. We'll need some API tweaks in order to express the sending of extended information too. For now, I'm putting it behind a feature, but if we build this into the tor network, the feature-gate should go away.
* Switch all uses of the log crate to the tracing.Jani Monoses2021-08-207-7/+7
| | | | Issue #74
* Typo fixes.Nick Mathewson2021-08-201-1/+1
|
* Add a split_from() API for infallible creation of Data messages.Nick Mathewson2021-08-181-3/+7
|
* Remove panicking cases from tor-cell msg constructionNick Mathewson2021-08-187-8/+13
|
* Revisions based on new documented-panics lint.Nick Mathewson2021-08-181-6/+7
| | | | | 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-182-0/+6
|\
| * Add the "missing_panics_doc" lint.S0AndS02021-08-132-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | > 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-172-2/+3
|/ | | | | | | | | | | | | | > 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.
* Add brackets and remove colon for better consistencyLennart Kloock2021-08-122-10/+10
|
* Add unnecessary_wraps to the big warning list.Nick Mathewson2021-08-062-0/+2
|
* Small fixes on top of typo fixesNick Mathewson2021-08-031-1/+1
|
* Fix typos and other spelling mistakesrls2021-07-3114-26/+26
|
* tor_proto: Use iterators and functions to simplify resolve functions.Nick Mathewson2021-07-271-40/+35
|
* ResolvedVal: Rename answers() to into_answers().Nick Mathewson2021-07-271-2/+2
|
* tor-proto: Tweak documentation for resolve/resolve_ptrNick Mathewson2021-07-271-6/+11
|
* Add support for RESOLVE and RESOLVE_PTRYuan Lyu2021-07-222-5/+77
|
* address a bunch of hopefully uncontroversial lintsDaniel Eades2021-07-208-32/+32
|
* Revert "Use coarsetime to build an incoming traffic timestamp."Nick Mathewson2021-07-136-150/+0
| | | | | | | | This reverts commit f30b22802aeafaa4dd1b8d424fa83ceb6f45d4aa. It turns out (see torspec#57) that there is no need for us to keep this timestamp -- at least, not for the use we had in mind in circuit timeouts.
* Use coarsetime to build an incoming traffic timestamp.Nick Mathewson2021-07-136-0/+150
| | | | | | | | | | | We need this for the circuit timeout estimator (#57). It needs to know "how recently have we got some incoming traffic", so that it can tell whether a circuit has truly timed out, or whether the entire network is down. I'm implementing this with coarsetime, since we need to update these in response to every single incoming cell, and we need the timestamp operation to be _fast_.
* Merge remote-tracking branch 'origin/mr/34'Nick Mathewson2021-06-277-13/+15
|\
| * Add clippy warn needless pass by valueYUAN LYU2021-06-217-13/+14
| |
| * Add clippy warn needless borrowYUAN LYU2021-06-211-0/+1
| |
* | Add version="0.0.0" to dependencies that were missing itNick Mathewson2021-06-241-7/+7
| |
* | Remove "publish = false"Nick Mathewson2021-06-241-1/+0
|/
* A few tests for circparameters generation.Nick Mathewson2021-06-191-7/+19
|
* Misc tests in tor-proto.Nick Mathewson2021-06-194-11/+63
|
* Fix some warnings about needless & from nightly clippyNick Mathewson2021-06-181-3/+3
|
* Try to fix a nightly rustdoc warningNick Mathewson2021-06-171-1/+1
|
* Use FuturesUnordered, not SelectAll<Once<...>>Nick Mathewson2021-06-142-12/+11
| | | | Closes #124
* Implement Debug for ClientCirc and Channel.Nick Mathewson2021-06-142-0/+20
|
* Make a few error types implement CloneNick Mathewson2021-06-141-3/+13
| | | | | | | To make this work we have to wrap std::io::Error in an Arc. The benefit of having these errors implement Clone is that we can provide the same Error in response to multiple requests when they are all waiting on the same operation.
* Add a warning comment about truncate-and-reextend.Nick Mathewson2021-05-281-0/+5
|
* tor-proto: change internal meta-handler API for error-proofingNick Mathewson2021-05-282-67/+108
| | | | | | | The previous API required the caller to check that the meta-cell it got was coming from the right hop; the new API requires the caller to say which hop it expects to get a cell from. With this change, it's not possible to omit the correct-hop check.
* 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-266-8/+8
|
* Update hs_ntor code.Nick Mathewson2021-05-251-4/+6
| | | | | Work with the latest version of the crypto crate, and suppress the unreachable_pub warning.
* 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/+90
|
* 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-212-9/+43
|
* Give every Cargo.toml a repository fieldNick Mathewson2021-05-191-0/+1
|
* Add the "unreachable_pub" lint.Nick Mathewson2021-05-1817-88/+93
| | | | | | 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-182-5/+5
|