summaryrefslogtreecommitdiffstats
path: root/tokio-tls
AgeCommit message (Collapse)Author
2019-12-22tokio-tls: fix examples build and run (#1963)baizhenxuan
2019-12-18stream: add `next` and `map` utility fn (#1962)Artem Vorotnikov
Introduces `StreamExt` trait. This trait will be used to add utility functions to make working with streams easier. This patch includes two functions: * `next`: a future returning the item in the stream. * `map`: transform each item in the stream.
2019-11-26chore: prepare v0.2.0 release (#1822)Carl Lerche
2019-11-22default all feature flags to off (#1811)Carl Lerche
Changes the set of `default` feature flags to `[]`. By default, only core traits are included without specifying feature flags. This makes it easier for users to pick the components they need. For convenience, a `full` feature flag is included that includes all components. Tests are configured to require the `full` feature. Testing individual feature flags will need to be moved to a separate crate. Closes #1791
2019-11-20chore: update `bytes` dependency to git master (#1796)Carl Lerche
Tokio will track changes to bytes until 0.5 is released.
2019-11-15Limit `futures` dependency to `Stream` via feature flag (#1774)Carl Lerche
In an effort to reach API stability, the `tokio` crate is shedding its _public_ dependencies on crates that are either a) do not provide a stable (1.0+) release with longevity guarantees or b) match the `tokio` release cadence. Of course, implementing `std` traits fits the requirements. The on exception, for now, is the `Stream` trait found in `futures_core`. It is expected that this trait will not change much and be moved into `std. Since Tokio is not yet going reaching 1.0, I feel that it is acceptable to maintain a dependency on this trait given how foundational it is. Since the `Stream` implementation is optional, types that are logically streams provide `async fn next_*` functions to obtain the next value. Avoiding the `next()` name prevents fn conflicts with `StreamExt::next()`. Additionally, some misc cleanup is also done: - `tokio::io::io` -> `tokio::io::util`. - `delay` -> `delay_until`. - `Timeout::new` -> `timeout(...)`. - `signal::ctrl_c()` returns a future instead of a stream. - `{tcp,unix}::Incoming` is removed (due to lack of `Stream` trait). - `time::Throttle` is removed (due to lack of `Stream` trait). - Fix: `mpsc::UnboundedSender::send(&self)` (no more conflict with `Sink` fns).
2019-11-12reorganize modules (#1766)Carl Lerche
This patch started as an effort to make `time::Timer` private. However, in an effort to get the build compiling again, more and more changes were made. This probably should have been broken up, but here we are. I will attempt to summarize the changes here. * Feature flags are reorganized to make clearer. `net-driver` becomes `io-driver`. `rt-current-thread` becomes `rt-core`. * The `Runtime` can be created without any executor. This replaces `enter`. It also allows creating I/O / time drivers that are standalone. * `tokio::timer` is renamed to `tokio::time`. This brings it in line with `std`. * `tokio::timer::Timer` is renamed to `Driver` and made private. * The `clock` module is removed. Instead, an `Instant` type is provided. This type defaults to calling `std::time::Instant`. A `test-util` feature flag can be used to enable hooking into time. * The `blocking` module is moved to the top level and is cleaned up. * The `task` module is moved to the top level. * The thread-pool's in-place blocking implementation is cleaned up. * `runtime::Spawner` is renamed to `runtime::Handle` and can be used to "enter" a runtime context.
2019-11-11tls: fix test certificate to work on macOS 10.15 (#1763)Anton Barkovsky
macOS 10.15 introduced new requirements for certificates to be trusted: https://support.apple.com/en-us/HT210176
2019-11-07chore: update futures to 0.3.0 (#1741)Taiki Endo
2019-10-26io: move into `tokio` crate (#1691)Carl Lerche
A step towards collapsing Tokio sub crates into a single `tokio` crate (#1318). The `io` implementation is now provided by the main `tokio` crate. Functionality can be opted out of by using the various net related feature flags.
2019-10-25net: move into tokio crate (#1683)Carl Lerche
A step towards collapsing Tokio sub crates into a single `tokio` crate (#1318). The `net` implementation is now provided by the main `tokio` crate. Functionality can be opted out of by using the various net related feature flags.
2019-09-30Prepare for release of 0.2.0-alpha.6 (#1617)Jon Gjengset
Note that `tokio-timer` and `tokio-tls` become 0.3.0-alpha.6 (not 0.2.0)
2019-09-30chore: update futures-preview to 0.3.0-alpha.19 (#1610)Taiki Endo
2019-09-19Release 0.2.0 alpha.5 (#1576)Carl Lerche
2019-09-19chore: deny warnings for doc tests (#1539)Taiki Endo
2019-09-13chore: fix docs links (#1523)Geoff Shannon
2019-09-11tls: fix new temporary lifetime rustc error [E0597] (#1547)Kirill Mironov
Fixes: #1546 Signed-off-by: Kirill Mironov <vetrokm@gmail.com>
2019-09-04tls: Add get_ref and get_mut (#1537)Jon Gjengset
2019-08-30tls: bump to v0.3.0-alpha.4 (#1515)Carl Lerche
2019-08-29prepare v0.2.0-alpha.4 (#1509)Sean McArthur
2019-08-28prepare v0.2.0-alpha.3 release (#1505)Carl Lerche
2019-08-28net: perform DNS lookup on connect / bind. (#1499)Carl Lerche
A sealed `net::ToSocketAddrs` trait is added. This trait is not intended to be used by users. Instead, it is an argument to `connect` and `bind` functions. The operating system's DNS lookup functionality is used. Blocking operations are performed on a thread pool in order to avoid blocking the runtime.
2019-08-20chore: bump to newer nightly (#1485)Taiki Endo
2019-08-18docs: add docs.rs metadata to build with all features (#1471)Ivan Petkov
2019-08-17chore: prepare 0.2.0-alpha.2 release (#1465)Carl Lerche
2019-08-15tcp: move tokio-tcp into tokio-net (#1456)Carl Lerche
2019-08-15runtime: refactor thread-local setters (#1449)Douman
2019-08-10chore: update futures-preview to 0.3.0-alpha.18 (#1427)Taiki Endo
2019-08-11chore: apply unreachable_pub and missing_debug_implementations to all crates ↵Taiki Endo
(#1424)
2019-08-11chore: bump to newer nightly (#1426)Taiki Endo
2019-08-10chore: change default lint level to warning and deny warnings in CI (#1416)Taiki Endo
2019-08-08update (dev dep) env_logger to latest 0.6 (#1390)David Kellum
2019-08-08chore: prepare for v0.2.0-alpha.1 release (#1410)Lucio Franco
2019-08-07chore: enable full CI run (#1399)Carl Lerche
* update all tests * fix doc examples * misc API tweaks
2019-07-26ci: enable clippy lints (#1335)Taiki Endo
2019-07-20chore: use ptr::{null, null_mut} instead of 0 as *{const, mut} (#1333)Taiki Endo
2019-07-20chore: remove unnecessary conversion (#1332)Taiki Endo
2019-07-19tokio-tls: enable `Send` and `Sync` (#1317)João Oliveira
- update 0 as *mut () calls to std::ptr::null_mut() - impl Send and Sync for AllowStd
2019-07-16tls: update to std-future (#1224)João Oliveira
2019-07-10chore: remove usage of deprecated ONCE_INIT (#1281)Taiki Endo
2019-06-10Make threadpool::Runtime methods take &self (#1140)Steven Fackler
The runtime is inherently multi-threaded, so it's going to have to deal with synchronization when submitting new tasks anyway. This allows a runtime to be shared by multiple threads more easily when e.g. building a blocking facade over a tokio-based API.
2019-05-14Update Tokio to Rust 2018 (#1082)Carl Lerche
2019-04-24chore: remember to remove path deps on release (#1057)Carl Lerche
2019-04-01Replace try! macro with ? operator (#1024)Taiki Endo
2019-03-19chore: repo maintenance + no path dependencies (#991)Carl Lerche
- Move `tokio` into its own directory. - Remove `path` dependencies. - Run tests with once with crates.io dep and once with patched dep.
2019-03-01Set up CI with Azure Pipelines (#926)Carl Lerche
Use Azure Pipelines for CI. This migrates away from Travis and Appveyor.
2019-02-21chore: apply rustfmt to all crates (#917)Carl Lerche
2019-01-06Bump version to 0.1.14. (#836)Carl Lerche
Also bumps: * tokio-async-await (0.1.5) * tokio-executor (0.1.6) * tokio-fs (0.1.5) * tokio-io (0.1.11) * tokio-reactor (0.1.8) * tokio-tcp (0.1.3) * tokio-threadpool (0.1.10) * tokio-tls (0.2.1) * tokio-uds (0.2.5) ...and updates LICENSE files to 2019.
2018-11-27tls: make TlsConnector and TlsAcceptor derive Clone (#777)Steven Fackler
2018-11-20tests: handle errors properly in examples (#748)Liran Ringel