| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | 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 | 4 | -25/+183 | |
| | | | | | | | | | 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 | 4 | -1/+197 | |
| | | | | | Now we don't need runtime-specific stuff in tor-chanmgr. | |||||
| * | Refactor tokio implpementation in tor-rtcompat. | Nick Mathewson | 2021-03-23 | 1 | -6/+116 | |
| | | | | | | | | | | | | 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. | |||||
| * | 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 | 4 | -2/+93 | |
| | | | | | | | | | | | | | | | | | | | 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 | |
| | | ||||||
| * | rtcompat: add a function to sleep until a given wallclock time | Nick Mathewson | 2020-12-04 | 1 | -1/+36 | |
| | | | | | | (We can't just subtract and sleep, since we should be at least somewhat concerned about clock jumps.) | |||||
| * | tor-dirclient: add timeouts | Nick Mathewson | 2020-12-01 | 1 | -1/+1 | |
| | | | | | | | | | This adds two timeouts in total: one for sending begin, and getting headers, and one for getting the rest of the data. These timeouts are way too long right now, but at least the code is there. | |||||
| * | Require documentation in tor-rtcompat. | Nick Mathewson | 2020-11-20 | 3 | -11/+29 | |
| | | ||||||
| * | tor-chanmgr: timeout support. | Nick Mathewson | 2020-11-11 | 1 | -0/+1 | |
| | | ||||||
| * | Document tor-rtcompat crate a little | Nick Mathewson | 2020-11-11 | 2 | -3/+12 | |
| | | ||||||
| * | Isolate async_std usage in a new tor_rtcompat crate. | Nick Mathewson | 2020-11-11 | 3 | -0/+19 | |
| Like tor_llcrypto, this crate is meant to expose only the part of other crates (in this case, a async runtime crate) that we use. | ||||||
