@@ -27,18 +27,18 @@ default = []
2727
2828# enable everything
2929full = [
30- " fs" ,
31- " io-util" ,
32- " io-std" ,
33- " macros" ,
34- " net" ,
35- " parking_lot" ,
36- " process" ,
37- " rt" ,
38- " rt-multi-thread" ,
39- " signal" ,
40- " sync" ,
41- " time" ,
30+ " fs" ,
31+ " io-util" ,
32+ " io-std" ,
33+ " macros" ,
34+ " net" ,
35+ " parking_lot" ,
36+ " process" ,
37+ " rt" ,
38+ " rt-multi-thread" ,
39+ " signal" ,
40+ " sync" ,
41+ " time" ,
4242]
4343
4444fs = []
@@ -47,39 +47,39 @@ io-util = ["bytes"]
4747io-std = []
4848macros = [" tokio-macros" ]
4949net = [
50- " libc" ,
51- " mio/os-poll" ,
52- " mio/os-ext" ,
53- " mio/net" ,
54- " socket2" ,
55- " windows-sys/Win32_Foundation" ,
56- " windows-sys/Win32_Security" ,
57- " windows-sys/Win32_Storage_FileSystem" ,
58- " windows-sys/Win32_System_Pipes" ,
59- " windows-sys/Win32_System_SystemServices" ,
50+ " libc" ,
51+ " mio/os-poll" ,
52+ " mio/os-ext" ,
53+ " mio/net" ,
54+ " socket2" ,
55+ " windows-sys/Win32_Foundation" ,
56+ " windows-sys/Win32_Security" ,
57+ " windows-sys/Win32_Storage_FileSystem" ,
58+ " windows-sys/Win32_System_Pipes" ,
59+ " windows-sys/Win32_System_SystemServices" ,
6060]
6161process = [
62- " bytes" ,
63- " libc" ,
64- " mio/os-poll" ,
65- " mio/os-ext" ,
66- " mio/net" ,
67- " signal-hook-registry" ,
68- " windows-sys/Win32_Foundation" ,
69- " windows-sys/Win32_System_Threading" ,
70- " windows-sys/Win32_System_WindowsProgramming" ,
62+ " bytes" ,
63+ " libc" ,
64+ " mio/os-poll" ,
65+ " mio/os-ext" ,
66+ " mio/net" ,
67+ " signal-hook-registry" ,
68+ " windows-sys/Win32_Foundation" ,
69+ " windows-sys/Win32_System_Threading" ,
70+ " windows-sys/Win32_System_WindowsProgramming" ,
7171]
7272# Includes basic task execution capabilities
7373rt = []
7474rt-multi-thread = [" rt" ]
7575signal = [
76- " libc" ,
77- " mio/os-poll" ,
78- " mio/net" ,
79- " mio/os-ext" ,
80- " signal-hook-registry" ,
81- " windows-sys/Win32_Foundation" ,
82- " windows-sys/Win32_System_Console" ,
76+ " libc" ,
77+ " mio/os-poll" ,
78+ " mio/net" ,
79+ " mio/os-ext" ,
80+ " signal-hook-registry" ,
81+ " windows-sys/Win32_Foundation" ,
82+ " windows-sys/Win32_System_Console" ,
8383]
8484sync = []
8585test-util = [" rt" , " sync" , " time" ]
@@ -92,7 +92,8 @@ pin-project-lite = "0.2.11"
9292
9393# Everything else is optional...
9494bytes = { version = " 1.2.1" , optional = true }
95- mio = { version = " 1.0.1" , optional = true , default-features = false }
95+ # TODO dicej: switch to upstream once WASIp2 support is merged:
96+ mio = { git = " https://github.com/dicej/mio" , branch = " wasip2" , optional = true , default-features = false }
9697parking_lot = { version = " 0.12.0" , optional = true }
9798
9899[target .'cfg(not(target_family = "wasm"))' .dependencies ]
@@ -101,7 +102,9 @@ socket2 = { version = "0.5.5", optional = true, features = ["all"] }
101102# Currently unstable. The API exposed by these features may be broken at any time.
102103# Requires `--cfg tokio_unstable` to enable.
103104[target .'cfg(tokio_unstable)' .dependencies ]
104- tracing = { version = " 0.1.29" , default-features = false , features = [" std" ], optional = true } # Not in full
105+ tracing = { version = " 0.1.29" , default-features = false , features = [
106+ " std" ,
107+ ], optional = true } # Not in full
105108
106109# Currently unstable. The API exposed by these features may be broken at any time.
107110# Requires `--cfg tokio_unstable` to enable.
@@ -114,18 +117,19 @@ signal-hook-registry = { version = "1.1.1", optional = true }
114117
115118[target .'cfg(unix)' .dev-dependencies ]
116119libc = { version = " 0.2.168" }
117- nix = { version = " 0.29.0" , default-features = false , features = [" aio" , " fs" , " socket" ] }
120+ nix = { version = " 0.29.0" , default-features = false , features = [
121+ " aio" ,
122+ " fs" ,
123+ " socket" ,
124+ ] }
118125
119126[target .'cfg(windows)' .dependencies .windows-sys ]
120127version = " 0.52"
121128optional = true
122129
123130[target .'cfg(windows)' .dev-dependencies .windows-sys ]
124131version = " 0.52"
125- features = [
126- " Win32_Foundation" ,
127- " Win32_Security_Authorization" ,
128- ]
132+ features = [" Win32_Foundation" , " Win32_Security_Authorization" ]
129133
130134[dev-dependencies ]
131135tokio-test = { version = " 0.4.0" , path = " ../tokio-test" }
@@ -157,7 +161,14 @@ tracing-mock = "= 0.1.0-beta.1"
157161[package .metadata .docs .rs ]
158162all-features = true
159163# enable unstable features in the documentation
160- rustdoc-args = [" --cfg" , " docsrs" , " --cfg" , " tokio_unstable" , " --cfg" , " tokio_taskdump" ]
164+ rustdoc-args = [
165+ " --cfg" ,
166+ " docsrs" ,
167+ " --cfg" ,
168+ " tokio_unstable" ,
169+ " --cfg" ,
170+ " tokio_taskdump" ,
171+ ]
161172# it's necessary to _also_ pass `--cfg tokio_unstable` and `--cfg tokio_taskdump`
162173# to rustc, or else dependencies will not be enabled, and the docs build will fail.
163174rustc-args = [" --cfg" , " tokio_unstable" , " --cfg" , " tokio_taskdump" ]
@@ -169,9 +180,9 @@ features = ["full", "test-util"]
169180# The following are types that are allowed to be exposed in Tokio's public API.
170181# The standard library is allowed by default.
171182allowed_external_types = [
172- " bytes::buf::buf_impl::Buf" ,
173- " bytes::buf::buf_mut::BufMut" ,
174- " tokio_macros::*" ,
183+ " bytes::buf::buf_impl::Buf" ,
184+ " bytes::buf::buf_mut::BufMut" ,
185+ " tokio_macros::*" ,
175186]
176187
177188[lints ]
0 commit comments