konfy 0.1.0

Configure gui, tui, repl and cli applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use pyo3::prelude::*;

/// Formats the sum of two numbers as string.
#[pyfunction]
fn hello_from_konfy() -> PyResult<String> {
    Ok(String::from("Hello from Konfy"))
}

/// A Python module implemented in Rust.
#[pymodule]
fn konfy(m: &Bound<'_, PyModule>) -> PyResult<()> {
    m.add_function(wrap_pyfunction!(hello_from_konfy, m)?)?;
    Ok(())
}