2020-09-03 15:27:24 +00:00
|
|
|
use pyo3::prelude::*;
|
|
|
|
|
|
|
|
#[pymodule]
|
2022-03-23 07:07:28 +00:00
|
|
|
fn module(_py: Python<'_>, m: &PyModule) -> PyResult<()> {
|
2021-05-16 09:41:59 +00:00
|
|
|
#[pyfn(m, pass_module)]
|
2020-09-03 15:27:24 +00:00
|
|
|
fn fail(string: &str, module: &PyModule) -> PyResult<&str> {
|
|
|
|
module.name()
|
|
|
|
}
|
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
|
2021-05-16 09:41:59 +00:00
|
|
|
fn main(){}
|