| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Remove "default-features=false" thing on tor-rtcompat for now. | Nick Mathewson | 2021-06-24 | 1 | -2/+2 |
| | | |||||
| * | Bump version dependencies to 0.0.0 | Nick Mathewson | 2021-06-24 | 1 | -9/+9 |
| | | |||||
| * | Remove "publish = false" | Nick Mathewson | 2021-06-24 | 1 | -1/+0 |
| | | |||||
| * | Remove unused import. | Nick Mathewson | 2021-06-21 | 1 | -1/+0 |
| | | |||||
| * | More tests and a little code-golf for coverage on tor-circmgr | Nick Mathewson | 2021-06-20 | 4 | -14/+47 |
| | | |||||
| * | tor_circmgr: simplify build_circuit a bit. | Nick Mathewson | 2021-06-20 | 2 | -15/+10 |
| | | |||||
| * | A few tests for circparameters generation. | Nick Mathewson | 2021-06-19 | 1 | -0/+31 |
| | | |||||
| * | More/better tests on tor_circmgr::mgr | Nick Mathewson | 2021-06-19 | 1 | -46/+132 |
| | | |||||
| * | A little testing and refactgoring in tor-circmgr. | Nick Mathewson | 2021-06-19 | 3 | -25/+23 |
| | | |||||
| * | Misc tests in tor-proto. | Nick Mathewson | 2021-06-19 | 1 | -1/+4 |
| | | |||||
| * | Fix some warnings about needless & from nightly clippy | Nick Mathewson | 2021-06-18 | 3 | -5/+5 |
| | | |||||
| * | Run "typos" to fix a few more typos. | Nick Mathewson | 2021-06-17 | 2 | -3/+3 |
| | | |||||
| * | Use retry-error in tor-circmgr. | Nick Mathewson | 2021-06-17 | 2 | -19/+39 |
| | | |||||
| * | Remove anyhow dependency from tor-retry, and rename it to retry-error | Nick Mathewson | 2021-06-17 | 1 | -1/+1 |
| | | | | | Now RetryError is parameterized on an underlying error type. | ||||
| * | Remove some (but not all) needless dependencies. | Nick Mathewson | 2021-06-17 | 1 | -3/+0 |
| | | |||||
| * | Suppress a clippy warning. | Nick Mathewson | 2021-06-17 | 1 | -0/+1 |
| | | |||||
| * | more improvements to circmgr tests. | Nick Mathewson | 2021-06-16 | 3 | -2/+6 |
| | | |||||
| * | Notes about badexit flag and opportunities for error | Nick Mathewson | 2021-06-16 | 1 | -0/+1 |
| | | |||||
| * | More tests on circmgr::path. | Nick Mathewson | 2021-06-16 | 3 | -1/+89 |
| | | |||||
| * | circmgr: tests for path/dirpath.rs | Nick Mathewson | 2021-06-16 | 1 | -0/+68 |
| | | |||||
| * | Tests for circmgr::usage | Nick Mathewson | 2021-06-16 | 3 | -0/+104 |
| | | |||||
| * | tor_circmgr: even more tests | Nick Mathewson | 2021-06-16 | 1 | -16/+95 |
| | | |||||
| * | More tests in tor-cirmgr::mgr | Nick Mathewson | 2021-06-16 | 2 | -4/+129 |
| | | |||||
| * | remove now-unused imports | Nick Mathewson | 2021-06-14 | 1 | -5/+0 |
| | | |||||
| * | Comment out build_path for now. | Nick Mathewson | 2021-06-14 | 1 | -0/+3 |
| | | | | | | It just duplicates TorPath::build_circuit, which is all you actually need. | ||||
| * | Enormous tor-circmgr rewrite. | Nick Mathewson | 2021-06-14 | 10 | -432/+1659 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As with the tor-chanmgr code, the circuit manager is now implemented using an AbstractCircMgr type that uses traits to abstract the particular behavior of other types that it uses. (Specifically: circuits, building circuits, and telling whether one circuit usage is compatible with another.) Abstracting out the dependencies in this ways makes it possible to test the circuit manager without having to actually build real circuits. This commit also introduces new behavior for handling pending circuit requests. Upon getting a new request, first we check to see if there's an existing circuit we can use. If there isn't, we look for pending circuits and wait for them. If there aren't any pending circuits we can use, we launch one or more, and wait for them. So far, that's the same as the old behavior. But here's a change: if, while we are waiting for some pending circuits, a different circuit is completed, and it's one we could use, then the task that was building _that_ circuit will tell us: "please look at this circuit". This gives us better changes of getting a usable circuit fast. Minor changes: * The Error type in CircMgr no longer uses anyhow; several errors have been simplified. * We've gotten more formal about the relationship between circuit usage and target usage. | ||||
| * | Add an XXXX to path.rs | Nick Mathewson | 2021-06-04 | 1 | -0/+1 |
| | | |||||
| * | Missing experimental-api imports. | Nick Mathewson | 2021-06-03 | 1 | -1/+3 |
| | | |||||
| * | cirmgr: Move usage-related code into a submodule, and refactor. | Nick Mathewson | 2021-06-02 | 3 | -137/+168 |
| | | |||||
| * | Add noop_method_call warning. | Nick Mathewson | 2021-05-27 | 1 | -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. | ||||
| * | Enable cargo_common_metadata warning. | Nick Mathewson | 2021-05-25 | 1 | -0/+1 |
| | | |||||
| * | Add automatically generated README.md files to each crate. | Nick Mathewson | 2021-05-25 | 1 | -0/+27 |
| | | |||||
| * | Module docs for remaining crates | Nick Mathewson | 2021-05-25 | 1 | -3/+16 |
| | | |||||
| * | Use macros and types to improve handling of Netdir parameters. | Nick Mathewson | 2021-05-25 | 2 | -4/+4 |
| | | | | | (Squashed from typed-netdir-params) | ||||
| * | Broaden type of from_target_ports | Nick Mathewson | 2021-05-20 | 1 | -2/+2 |
| | | |||||
| * | Refactor TorPath code to have explicit constructors. | Alexander Færøy | 2021-05-20 | 4 | -26/+81 |
| | | | | | | | | | | This patch refactors the internal representation of the TorPath type to use an enum for representing its state. We add explicit constructor methods to create the different types of path's, such that client users can write code that uses different paths based on their need. This work was done together with Nick as part of the Arti hackathon. | ||||
| * | Give every Cargo.toml a repository field | Nick Mathewson | 2021-05-19 | 1 | -0/+1 |
| | | |||||
| * | Fill in "package.categories" on all Cargo.toml | Nick Mathewson | 2021-05-19 | 1 | -0/+1 |
| | | |||||
| * | Add the "unreachable_pub" lint. | Nick Mathewson | 2021-05-18 | 1 | -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. | ||||
| * | Prefer "relay" over "node" in most circumstances. | Nick Mathewson | 2021-05-18 | 2 | -3/+3 |
| | | |||||
| * | Resolve clippy warnings from Rust 1.52. | Nick Mathewson | 2021-05-07 | 1 | -8/+4 |
| | | | | | | | | | | | Rust 1.52 just came out, and there are new clippy lints to deal with: * It spots more cases when we could use Option::map * It spots more cases when we could use Iterator::flatten * When we build a struct instance, it wants us to list the fields in the same order that the struct declares them. | ||||
| * | Add trait_duplication_in_bounds warning. | Nick Mathewson | 2021-05-03 | 1 | -0/+1 |
| | | |||||
| * | Add unseparated_literal_suffix lint, and fix it. | Nick Mathewson | 2021-05-03 | 1 | -0/+1 |
| | | |||||
| * | Add a few more clippy warnings | Nick Mathewson | 2021-05-03 | 1 | -0/+5 |
| | | |||||
| * | Fix experimental-api feature after refactoring | David Goulet | 2021-05-03 | 1 | -3/+5 |
| | | | | | | | | | | Important refactoring happened recently which broke the "experimental-api" feature. Fixes are quite simple. Signed-off-by: David Goulet <[email protected]> | ||||
| * | Add some more clippy warnings to our list. | Nick Mathewson | 2021-04-27 | 1 | -1/+6 |
| | | |||||
| * | Enforce (and obey) clippy lints about exhaustive enums, structs. | Nick Mathewson | 2021-04-27 | 4 | -0/+7 |
| | | | | | | | | | These lints force us to declare our exported enums and exhaustive-looking structs as non-exhaustive (so that we can add to them in the future without breaking our API) or to explicitly disable the warning for a given enum/struct (to say that we _intend_ for additions to be a breaking change). | ||||
| * | Move timer functions into an extension trait. | Nick Mathewson | 2021-04-17 | 1 | -7/+5 |
| | | |||||
| * | Move around the public modules in tor_rtcompat. | Nick Mathewson | 2021-04-17 | 2 | -2/+2 |
| | | |||||
| * | Remove all non-runtime methods in tor_rtcompat. | Nick Mathewson | 2021-04-16 | 2 | -6/+18 |
| | | |||||
