iron-oxide-py 0.1.0-alpha

chemistry in rust - python bindings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use pyo3::prelude::*;
use iron_oxide_core;

#[pyfunction]
fn ping() -> &'static str {
    iron_oxide_core::ping()
}

#[pymodule]
fn iron_oxide(_py: Python, m: &PyModule) -> PyResult<()> {  // underscores, valid Python identifier
    m.add_function(wrap_pyfunction!(ping, m)?)?;
    Ok(())
}