@@ -34,7 +34,10 @@ mod sha512;
3434
3535mod json;
3636
37- #[ cfg( all( feature = "host_env" , not( any( target_os = "ios" , target_arch = "wasm32" ) ) ) ) ]
37+ #[ cfg( all(
38+ feature = "host_env" ,
39+ not( any( target_os = "ios" , target_arch = "wasm32" ) )
40+ ) ) ]
3841mod locale;
3942
4043mod _opcode;
@@ -90,14 +93,27 @@ mod scproxy;
9093#[ cfg( all( feature = "host_env" , any( unix, windows, target_os = "wasi" ) ) ) ]
9194mod select;
9295
93- #[ cfg( all( feature = "host_env" , not( target_arch = "wasm32" ) , feature = "ssl-openssl" ) ) ]
96+ #[ cfg( all(
97+ feature = "host_env" ,
98+ not( target_arch = "wasm32" ) ,
99+ feature = "ssl-openssl"
100+ ) ) ]
94101mod openssl;
95- #[ cfg( all( feature = "host_env" , not( target_arch = "wasm32" ) , feature = "ssl-rustls" ) ) ]
102+ #[ cfg( all(
103+ feature = "host_env" ,
104+ not( target_arch = "wasm32" ) ,
105+ feature = "ssl-rustls"
106+ ) ) ]
96107mod ssl;
97108#[ cfg( all( feature = "ssl-openssl" , feature = "ssl-rustls" ) ) ]
98109compile_error ! ( "features \" ssl-openssl\" and \" ssl-rustls\" are mutually exclusive" ) ;
99110
100- #[ cfg( all( feature = "host_env" , unix, not( target_os = "redox" ) , not( target_os = "ios" ) ) ) ]
111+ #[ cfg( all(
112+ feature = "host_env" ,
113+ unix,
114+ not( target_os = "redox" ) ,
115+ not( target_os = "ios" )
116+ ) ) ]
101117mod termios;
102118#[ cfg( all(
103119 feature = "host_env" ,
@@ -147,7 +163,10 @@ pub fn stdlib_module_defs(ctx: &Context) -> Vec<&'static builtins::PyModuleDef>
147163 grp:: module_def( ctx) ,
148164 hashlib:: module_def( ctx) ,
149165 json:: module_def( ctx) ,
150- #[ cfg( all( feature = "host_env" , not( any( target_os = "ios" , target_arch = "wasm32" ) ) ) ) ]
166+ #[ cfg( all(
167+ feature = "host_env" ,
168+ not( any( target_os = "ios" , target_arch = "wasm32" ) )
169+ ) ) ]
151170 locale:: module_def( ctx) ,
152171 #[ cfg( not( any( target_os = "android" , target_arch = "wasm32" ) ) ) ]
153172 lzma:: module_def( ctx) ,
@@ -157,7 +176,11 @@ pub fn stdlib_module_defs(ctx: &Context) -> Vec<&'static builtins::PyModuleDef>
157176 mmap:: module_def( ctx) ,
158177 #[ cfg( all( feature = "host_env" , not( target_arch = "wasm32" ) ) ) ]
159178 multiprocessing:: module_def( ctx) ,
160- #[ cfg( all( feature = "host_env" , not( target_arch = "wasm32" ) , feature = "ssl-openssl" ) ) ]
179+ #[ cfg( all(
180+ feature = "host_env" ,
181+ not( target_arch = "wasm32" ) ,
182+ feature = "ssl-openssl"
183+ ) ) ]
161184 openssl:: module_def( ctx) ,
162185 #[ cfg( all( feature = "host_env" , windows) ) ]
163186 overlapped:: module_def( ctx) ,
@@ -190,13 +213,21 @@ pub fn stdlib_module_defs(ctx: &Context) -> Vec<&'static builtins::PyModuleDef>
190213 not( any( target_os = "android" , target_arch = "wasm32" ) )
191214 ) ) ]
192215 _sqlite3:: module_def( ctx) ,
193- #[ cfg( all( feature = "host_env" , not( target_arch = "wasm32" ) , feature = "ssl-rustls" ) ) ]
216+ #[ cfg( all(
217+ feature = "host_env" ,
218+ not( target_arch = "wasm32" ) ,
219+ feature = "ssl-rustls"
220+ ) ) ]
194221 ssl:: module_def( ctx) ,
195222 statistics:: module_def( ctx) ,
196223 suggestions:: module_def( ctx) ,
197224 #[ cfg( all( feature = "host_env" , unix, not( target_os = "redox" ) ) ) ]
198225 syslog:: module_def( ctx) ,
199- #[ cfg( all( feature = "host_env" , unix, not( any( target_os = "ios" , target_os = "redox" ) ) ) ) ]
226+ #[ cfg( all(
227+ feature = "host_env" ,
228+ unix,
229+ not( any( target_os = "ios" , target_os = "redox" ) )
230+ ) ) ]
200231 termios:: module_def( ctx) ,
201232 #[ cfg( all( feature = "host_env" , feature = "tkinter" ) ) ]
202233 tkinter:: module_def( ctx) ,
0 commit comments