Provide optional features on tokio crate (#808)

Disabling all features means the only dependency is `futures`.

Relevant pieces of the API can then be enabled with the following features:

- `codec`
- `fs`
- `io`
- `reactor`
- `tcp`
- `timer`
- `udp`
- `uds`

This also introduces the beginnings of enabling only certain pieces of the `Runtime`. As a start, the entire default runtime API is enabled via the `rt-full` feature.
This commit is contained in:
Sean McArthur
2019-01-04 11:42:33 -08:00
committed by GitHub
parent 39dc5706b7
commit 76198f63d7
14 changed files with 557 additions and 435 deletions
+1
View File
@@ -51,6 +51,7 @@ pub use tokio_io::{
};
// standard input, output, and error
#[cfg(feature = "fs")]
pub use tokio_fs::{
stdin,
Stdin,