File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -358,7 +358,17 @@ pub use crate::client::csfle::client_encryption;
358
358
359
359
pub use { client:: session:: ClusterTime , coll:: Namespace , index:: IndexModel , sdam:: public:: * } ;
360
360
361
- #[ cfg( all( feature = "tokio-runtime" , feature = "async-std-runtime" , ) ) ]
361
+ #[ cfg( all( feature = "tokio-runtime" , feature = "sync" , ) ) ]
362
+ compile_error ! (
363
+ "`tokio-runtime` and `sync` can't both be enabled; either switch to using `tokio-sync` or set \
364
+ `default-features = false` in your Cargo.toml"
365
+ ) ;
366
+
367
+ #[ cfg( all(
368
+ feature = "tokio-runtime" ,
369
+ feature = "async-std-runtime" ,
370
+ not( feature = "sync" )
371
+ ) ) ]
362
372
compile_error ! (
363
373
"`tokio-runtime` and `async-std-runtime` can't both be enabled; either disable \
364
374
`async-std-runtime` or set `default-features = false` in your Cargo.toml"
You can’t perform that action at this time.
0 commit comments