1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#[macro_use]
#[allow(dead_code, unused_macros)]
pub mod common;
mod disjoint_sets;
pub mod error;
#[cfg(feature = "ondisk")]
#[allow(dead_code)]
pub mod graphmanager;
#[allow(dead_code)]
mod index;
#[cfg(feature = "ondisk")]
#[allow(dead_code)]
pub mod manager;
#[allow(dead_code)]
pub mod reasoner;
#[cfg(test)]
mod tests;
#[cfg(feature = "python")]
mod pyreason;
#[cfg(feature = "python")]
use pyo3::prelude::*;
#[cfg(feature = "python")]
#[pymodule]
fn reasonable(_py: Python<'_>, module: &PyModule) -> PyResult<()> {
module.add("__package__", "reasonable")?;
module.add("__version__", env!("CARGO_PKG_VERSION"))?;
module.add_class::<pyreason::PyReasoner>()?;
Ok(())
}