Expand description
Rust source code rendering for generated PyO3 extensions.
Produces lib.rs and Cargo.toml content for the generated crate.
Functionsยง
- extract_
fn_ name - Extract the function name from a rendered
pub fn <name>(line. - render_
cargo_ toml_ with_ options - Render the
Cargo.tomlcontent for the generated crate. - render_
function_ with_ options - Render a single PyO3
#[pyfunction]for the given target. - render_
lib_ rs_ with_ options - Render the full
lib.rscontent for the generated crate.