Skip to main content

rx_rust/
lib.rs

1#![forbid(unsafe_code)]
2// The README is the crate-level documentation, and its examples are doctests. They use the Tokio
3// scheduler, so both only exist under that feature; docs.rs builds with it (see `Cargo.toml`).
4#![cfg_attr(feature = "tokio-scheduler", doc = include_str!("../README.md"))]
5
6#[cfg(all(
7    feature = "single-threaded",
8    any(
9        feature = "thread-pool-scheduler",
10        feature = "tokio-scheduler",
11        feature = "async-std-scheduler",
12        feature = "smol-scheduler"
13    )
14))]
15compile_error!(
16    "`single-threaded` and `local-pool-scheduler` are mutually exclusive with multithreaded scheduler features (`thread-pool-scheduler`, `tokio-scheduler`, `async-std-scheduler`, and `smol-scheduler`)"
17);
18
19pub mod disposable;
20pub mod observable;
21pub mod observer;
22pub mod operators;
23pub mod scheduler;
24pub mod subject;
25pub mod utils;