pyo3_stub_gen

Module pyproject

source
Expand description

pyproject.toml parser for reading [tool.maturin] configuration.

use pyo3_stub_gen::pyproject::PyProject;
use std::path::Path;

let root = Path::new(env!("CARGO_MANIFEST_DIR")).parent().unwrap();
let pyproject = PyProject::parse_toml(
    root.join("examples/mixed/pyproject.toml")
).unwrap();

Structsยง