Skip to main content

Module render

Module render 

Source
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.toml content 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.rs content for the generated crate.