Commit Graph

1585 Commits

Author SHA1 Message Date
Nick Mathewson 4678fc0a37 Changes to WANT_FROM_OTHER_CRATES based on discussion on #146 2021-07-12 09:21:58 -04:00
Trinity Pointard ed0b51b557 cleanliness 2021-07-10 03:10:19 +02:00
Trinity Pointard 676577c184 make ipv[46]_policy take into account BadExit
they now report an empty policy for BadExit relays
2021-07-10 02:38:41 +02:00
Nick Mathewson 7d39ab29db Move responsibility for circuit construction into CircuitBuilder.
Previously this was done in functions associated with Path and
OwnedPath, but this caused their method signatures to get more and
more complicated.

This change will also allow us to make timeout handling part of the
circuit-building process.
2021-07-08 08:23:00 -04:00
Nick Mathewson 99e0c1789b Add a shell script to verify that every package has an okay license.
We implement this by giving a list of permitted licenses, and then
using cargo-license to dump everything's actual license.  Since
packages list their licenses as "x OR y OR z", we permit any package
that is available under at least one license on the allow-list.
2021-07-06 15:03:44 -04:00
Nick Mathewson 3a38d4ff7b Rename "send_me_*" to "sendme_*" 2021-07-06 12:34:02 -04:00
Nick Mathewson 49fed45631 Fix an unused variable warning when fuzzing tor-netdoc 2021-07-02 08:41:51 -04:00
Nick Mathewson 57537cf565 Fix some code-rot in tor-netdoc fuzz targets 2021-07-02 08:41:30 -04:00
Nick Mathewson e0797aa1a1 Revert "clippy: remove unneeded dependencies."
This sort of reverts 37b978ae1b.

It appears that on nightly, these imports are necessary. Was there a
change in the import resolver?
2021-07-02 08:40:44 -04:00
Nick Mathewson b0167eec44 Allow tor-rtcompat to build with no runtimes.
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.
2021-07-01 09:47:55 -04:00
Nick Mathewson 37b978ae1b clippy: remove unneeded dependencies. 2021-06-27 14:32:46 -04:00
Nick Mathewson 1c21295d19 Merge remote-tracking branch 'origin/mr/34' 2021-06-27 14:30:49 -04:00
Nick Mathewson 1d16bcf16b Toposort the workspace members list. 2021-06-24 11:44:54 -04:00
Nick Mathewson e1d53cecf8 Rename tor-client to arti-tor-client for now. 2021-06-24 11:17:14 -04:00
Nick Mathewson 8947e54d7e Remove "default-features=false" thing on tor-rtcompat for now. 2021-06-24 10:53:11 -04:00
Nick Mathewson adc611dc72 Fix category in tor-config/Cargo.toml 2021-06-24 10:45:43 -04:00
Nick Mathewson 38db8cb551 Add version="0.0.0" to dependencies that were missing it 2021-06-24 09:47:48 -04:00
Nick Mathewson 2df9b0e921 Bump version dependencies to 0.0.0 2021-06-24 09:27:17 -04:00
Nick Mathewson e5b6dea6fd Remove version=* in tor-rtmock 2021-06-24 09:24:19 -04:00
Nick Mathewson b3cc087acc List version 0.0.0 for tor-llcrypto dependency in tor-bytes 2021-06-24 09:20:04 -04:00
Nick Mathewson 920539bb05 Missing fields in tor-units/Cargo.toml. 2021-06-24 07:20:40 -04:00
Nick Mathewson b774360755 Remove "publish = false" 2021-06-24 07:04:26 -04:00
Nick Mathewson 31b66956b4 Bump tokio-related dependencies 2021-06-24 06:39:37 -04:00
YUAN LYU 92dbf20a76 Add clippy warn needless pass by value 2021-06-21 23:27:19 -04:00
YUAN LYU b830e81b7f Add clippy warn needless borrow 2021-06-21 21:34:40 -04:00
Nick Mathewson 4ca629dff7 Remove unused import. 2021-06-21 11:21:42 -04:00
Nick Mathewson bf251402d4 More tests and a little code-golf for coverage on tor-circmgr 2021-06-20 11:35:09 -04:00
Nick Mathewson 133d000c34 tor_circmgr: simplify build_circuit a bit. 2021-06-20 11:02:26 -04:00
Nick Mathewson 36b0a666cb A few tests for circparameters generation. 2021-06-19 17:21:58 -04:00
Nick Mathewson e4499fbfd3 More/better tests on tor_circmgr::mgr 2021-06-19 16:05:11 -04:00
Nick Mathewson 89de6227b8 A little testing and refactgoring in tor-circmgr. 2021-06-19 13:08:46 -04:00
Nick Mathewson 8f8a2cf4ab Misc tests in tor-proto. 2021-06-19 13:01:35 -04:00
Nick Mathewson 86f2ea1cde Remove most (all?) panics from tor-chanmgr::mgr::map
Improve testing for cases where change_state() is given a bad
function.
2021-06-19 12:12:05 -04:00
Nick Mathewson a19361c2c9 Add another entry to WANT_FROM_OTHER_CRATES 2021-06-19 11:28:36 -04:00
Nick Mathewson a6ada2d6df Cut down WANT_FROM_OTHER_CRATES 2021-06-18 08:34:59 -04:00
Nick Mathewson e6faeaa1f8 Fix some warnings about needless & from nightly clippy 2021-06-18 07:19:24 -04:00
Nick Mathewson 07dc7bf16e Upgrade phf. 2021-06-17 19:09:28 -04:00
Nick Mathewson a36626d9de Run "typos" to fix a few more typos. 2021-06-17 18:45:05 -04:00
Nick Mathewson 5c87cd1eb2 Update retry-error README 2021-06-17 18:41:47 -04:00
Nick Mathewson b994867944 Merge remote-tracking branch 'origin/mr/33' 2021-06-17 18:38:52 -04:00
Nick Mathewson f3f16cf236 Merge branch 'retry_refactor' 2021-06-17 18:37:53 -04:00
Nick Mathewson 458bc44ca9 Use retry-error in tor-circmgr. 2021-06-17 18:34:39 -04:00
Nick Mathewson 3763dab2f1 Add deduplication for retry-error 2021-06-17 16:38:20 -04:00
Nick Mathewson be86df631d Remove anyhow dependency from tor-retry, and rename it to retry-error
Now RetryError is parameterized on an underlying error type.
2021-06-17 16:09:43 -04:00
HackerNCoder 0f9001c811
Fix typos 2021-06-17 17:19:33 +00:00
Nick Mathewson 581ccac9da Try to fix a nightly rustdoc warning 2021-06-17 12:31:55 -04:00
Nick Mathewson 99a19ea0ba Revise repository-level documentation 2021-06-17 12:18:28 -04:00
Nick Mathewson 9310273448 Remove some (but not all) needless dependencies. 2021-06-17 09:09:43 -04:00
Nick Mathewson 62ee7f4acd Note a couple of more desired warnings. 2021-06-17 08:28:55 -04:00
Nick Mathewson 8424ec700b Suppress a clippy warning. 2021-06-17 08:26:34 -04:00