1#![allow(dead_code)]
8
9#[cfg(feature = "python-bindings")]
10mod bindings;
11#[cfg(not(feature = "python-bindings"))]
12mod stub;
13
14#[cfg(feature = "python-bindings")]
15pub use bindings::*;
16#[cfg(not(feature = "python-bindings"))]
17pub use stub::*;
18
19#[cfg(test)]
20mod feature_flags {
21 use super::*;
22
23 #[cfg(feature = "python-bindings")]
24 #[test]
25 fn bindings_feature_flag_true() {
26 assert!(PYTHON_BINDINGS_ENABLED);
27 }
28
29 #[cfg(not(feature = "python-bindings"))]
30 #[test]
31 fn bindings_feature_flag_false() {
32 assert!(!PYTHON_BINDINGS_ENABLED);
33 }
34}