Commit a948b0c
committed
Only enable the
Tokio offers the following features:
https://docs.rs/tokio/latest/tokio/#feature-flags
This removes the following unused Tokio features from `dependencies`:
- `fs`: Since it's only used by examples/tests/doctests:
https://github.com/fussybeaver/bollard/search?q=%22tokio%3A%3Afs%22
- `rt` / `rt-multi-thread`: Since it's not used by bollard itself, and should be
specified by end-users in their application. By activating `rt-multi-thread`
by default, it means anyone not using the multi-thread runtime has to pay
the dependency/compile time price for it regardless.
And the following from `dev-dependencies`:
- `time` / `net`: Since they are already specified in `dependencies`, and it's
not necessary to duplicate them in `dev-dependencies` as Cargo will perform
feature unification.
- `rt`: Since `rt-multi-thread` includes `rt` already.
- `io-std`: Since it's not used by any examples/tests and isn't even one
of the official top-level features anyway:
https://docs.rs/tokio/latest/tokio/#feature-flags
Note: The full benefits of this change won't be realised until this `hyperlocal`
change is picked up in the next `hyperlocal` release:
softprops/hyperlocal#54tokio features used by this crate1 parent 757b07f commit a948b0c
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments