1 | // Copyright 2022 The AccessKit Authors. All rights reserved. |
2 | // Licensed under the Apache License, Version 2.0 (found in |
3 | // the LICENSE-APACHE file) or the MIT license (found in |
4 | // the LICENSE-MIT file), at your option. |
5 | |
6 | /// ## Compatibility with async runtimes |
7 | /// |
8 | /// While this crate's API is purely blocking, it internally spawns asynchronous tasks on an executor. |
9 | /// |
10 | /// - If you use tokio, make sure to enable the `tokio` feature of this crate. |
11 | /// - If you use another async runtime or if you don't use one at all, the default feature will suit your needs. |
12 | |
13 | #[cfg (all(not(feature = "async-io" ), not(feature = "tokio" )))] |
14 | compile_error!("Either \"async-io \" (default) or \"tokio \" feature must be enabled." ); |
15 | |
16 | #[cfg (all(feature = "async-io" , feature = "tokio" ))] |
17 | compile_error!( |
18 | "Both \"async-io \" (default) and \"tokio \" features cannot be enabled at the same time." |
19 | ); |
20 | |
21 | mod adapter; |
22 | mod atspi; |
23 | mod context; |
24 | mod executor; |
25 | mod util; |
26 | |
27 | pub use adapter::Adapter; |
28 | |