| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | Add a MockNetwork structure for testing. | Nick Mathewson | 2021-04-28 | 3 | -0/+477 | |
| | | | | | | This isn't a shadow replacement: it's just a testing fixture that we can use to try out code that wants to connect and/or listen. | |||||
| * | 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 | 3 | -0/+5 | |
| | | | | | | | | | 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). | |||||
| * | cargo fix --edition-idioms | Nick Mathewson | 2021-04-26 | 1 | -1/+1 | |
| | | ||||||
| * | Small doc fix. | Nick Mathewson | 2021-04-24 | 1 | -1/+1 | |
| | | ||||||
| * | Define a helper for replacing the sleep functionality of a runtime. | Nick Mathewson | 2021-04-22 | 3 | -0/+93 | |
| | | ||||||
| * | Add a yield_now() call to MockSleepProvider::advance() | Nick Mathewson | 2021-04-21 | 2 | -15/+26 | |
| | | | | | | | | | This is almost always what we want for testing: the task that is advancing time wants to give the other tasks a chance to run. Doing this turns MockSleepProvider::advance() into an async function. | |||||
| * | tor_rtcompat: add a yield_now() function. | Nick Mathewson | 2021-04-21 | 2 | -0/+83 | |
| | | ||||||
| * | Add a "socketpair"-style linked-reader/writer implementation for testing | Nick Mathewson | 2021-04-21 | 3 | -1/+261 | |
| | | ||||||
| * | Disable a test on OSX; see arti#111 | Nick Mathewson | 2021-04-20 | 1 | -0/+5 | |
| | | ||||||
| * | Tests for sleep_until_wallclock. | Nick Mathewson | 2021-04-20 | 1 | -6/+175 | |
| | | ||||||
| * | A little more testing for tor_rtcompat::mock::time. | Nick Mathewson | 2021-04-20 | 1 | -0/+25 | |
| | | ||||||
| * | Add support for simulating the passage of time. | Nick Mathewson | 2021-04-19 | 3 | -0/+245 | |
| | | ||||||
| * | Add "now" functions to SleepProvider. | Nick Mathewson | 2021-04-19 | 2 | -2/+16 | |
| | | ||||||
| * | rtcompat: remove an unused conversion function. | Nick Mathewson | 2021-04-19 | 1 | -5/+0 | |
| | | ||||||
| * | Simple unit tests for tor_rtcompat: at last! | Nick Mathewson | 2021-04-19 | 3 | -0/+260 | |
| | | ||||||
| * | rtcompat: mark some outputs as must-use. | Nick Mathewson | 2021-04-19 | 2 | -0/+3 | |
| | | ||||||
| * | Clarify what TlsConnector doesn't validate. | Nick Mathewson | 2021-04-19 | 3 | -7/+12 | |
| | | ||||||
| * | Flatten async_std impl module slightly. | Nick Mathewson | 2021-04-19 | 1 | -31/+30 | |
| | | ||||||
| * | Flatten tokio TcpProvider implementation a bit. | Nick Mathewson | 2021-04-19 | 1 | -64/+35 | |
| | | ||||||
| * | Add a local_addr() function for TcpListener. | Nick Mathewson | 2021-04-18 | 3 | -1/+12 | |
| | | ||||||
| * | Fix some broken rustdoc links. | Nick Mathewson | 2021-04-18 | 1 | -1/+1 | |
| | | ||||||
| * | tor_rtcompat: Documentation and cleanups | Nick Mathewson | 2021-04-17 | 5 | -71/+240 | |
| | | ||||||
| * | Remove the no-longer-needed "global runtime" code. | Nick Mathewson | 2021-04-17 | 3 | -51/+37 | |
| | | ||||||
| * | Remove some cruft in tor_rtcompat::impls | Nick Mathewson | 2021-04-17 | 2 | -27/+4 | |
| | | ||||||
| * | Remove need for async_trait in SleepProviderExt | Nick Mathewson | 2021-04-17 | 1 | -11/+42 | |
| | | ||||||
| * | Move timer functions into an extension trait. | Nick Mathewson | 2021-04-17 | 2 | -112/+110 | |
| | | ||||||
| * | Move around the public modules in tor_rtcompat. | Nick Mathewson | 2021-04-17 | 1 | -1/+8 | |
| | | ||||||
| * | Remove all non-runtime methods in tor_rtcompat. | Nick Mathewson | 2021-04-16 | 1 | -32/+5 | |
| | | ||||||
| * | Add a "Runtime" parameter to all the manager types. | Nick Mathewson | 2021-04-16 | 2 | -4/+20 | |
| | | | | | | This is a big change, but it is a step towards our goal of removing tor_rtcompat:: calls directly. | |||||
| * | rtcompat: Make TLS functionality use Runtime traits. | Nick Mathewson | 2021-04-16 | 4 | -45/+94 | |
| | | | | | | Now there is nothing in principle that you couldn't access from a Runtime implementation. | |||||
| * | Move the "sleep()" function from task to timer. | Nick Mathewson | 2021-04-16 | 1 | -9/+7 | |
| | | ||||||
| * | Make incoming Streams of TcpStream a real type for each backend. | Nick Mathewson | 2021-04-16 | 4 | -39/+90 | |
| | | | | | | This makes things a little more complicated for AsyncStd, and a little simpler for Tokio. | |||||
| * | Port tor_rtcompat::net to use Runtime objects. | Nick Mathewson | 2021-04-16 | 2 | -17/+41 | |
| | | ||||||
| * | Port tor_rtcompat::timer to use Runtime objects. | Nick Mathewson | 2021-04-16 | 3 | -29/+60 | |
| | | ||||||
| * | Begin a refactoring of tor-rtcompat to use runtime objects. | Nick Mathewson | 2021-04-16 | 5 | -27/+187 | |
| | | | | | | | | | So far, all traits are defined (I hope) and the task api is ported. With time I want to have none of the current "global runtime" APIs exposed, and just use Runtime objects instead. But that isn't just yet. | |||||
| * | rtcompat: rename traits module to impl_traits. | Nick Mathewson | 2021-04-16 | 1 | -1/+1 | |
| | | ||||||
| * | rtcompat: Add a cancellable-task-handle type. | Nick Mathewson | 2021-04-09 | 2 | -4/+24 | |
| | | | | | | | | The API is a bit yucky, since it has to be compatible with tokio and async_std. (Also, this patch fixes some async_std clippy warnings) | |||||
| * | Move responsibility for knowing about TLS into tor_rtcompat. | Nick Mathewson | 2021-03-23 | 5 | -3/+203 | |
| | | | | | Now we don't need runtime-specific stuff in tor-chanmgr. | |||||
| * | Refactor tokio implpementation in tor-rtcompat. | Nick Mathewson | 2021-03-23 | 2 | -9/+122 | |
| | | | | | | | | | | | | Now other crates don't need any 'ifdef tokio' code, since there are wrappers that implement 'futures' right. Technically, the 'futures' traits are in some ways less good than the tokio ones, but we need a consistent API if we want to support WASM someday and keep support for async_std. I'd rather hold out hope for a future version of futures::io working like tokio than to fix ourselves into the tokioverse forever. | |||||
| * | Add appropriate categories to some Cargo.toml files. | Nick Mathewson | 2021-03-17 | 1 | -0/+1 | |
| | | ||||||
| * | Add the tor project as an author. | Nick Mathewson | 2021-03-17 | 1 | -1/+1 | |
| | | ||||||
| * | Add keywords to each Cargo.toml | Nick Mathewson | 2021-03-17 | 1 | -0/+1 | |
| | | ||||||
| * | Add a description field to all our Cargo.toml files | Nick Mathewson | 2021-03-17 | 1 | -0/+1 | |
| | | ||||||
| * | Give it a homepage everyplace. | Nick Mathewson | 2021-03-17 | 1 | -0/+1 | |
| | | ||||||
| * | Cut down on tokio features. | Nick Mathewson | 2021-03-10 | 1 | -1/+1 | |
| | | ||||||
| * | Bump dependencies with "cargo upgrade" | Nick Mathewson | 2021-03-06 | 1 | -1/+1 | |
| | | ||||||
| * | Update docs wrt tokio a bit | Nick Mathewson | 2021-03-02 | 1 | -5/+16 | |
| | | ||||||
| * | Port to work with tokio or async-std. | Nick Mathewson | 2021-03-02 | 5 | -3/+99 | |
| | | | | | | | | | | | | | | | | | | | This is fairly ugly and I think I'll need to mess around with the feature configuration a while until we get something that's pleasant to develop with. This still seems like a good idea, though, since we _will_ need to be executor-agnostic in the end, or we'll have no way to handle wasm or embedded environments. Later down the road, we'll probably want to use futures::Executor or futures::Spawn more than having global entry points in tor_rtcompat. That would probably make our feature story simpler. Tokio is the default now, since tokio seems to be more heavily used for performance-critical stuff. This patch breaks tests; the next one will fix them, albeit questionably. | |||||
| * | Write a few misc unit tests | Nick Mathewson | 2020-12-15 | 1 | -6/+35 | |
| | | ||||||
