diff --git a/BallanceTasSonnet/Cargo.toml b/BallanceTasSonnet/Cargo.toml index 76f2054..27e3bad 100644 --- a/BallanceTasSonnet/Cargo.toml +++ b/BallanceTasSonnet/Cargo.toml @@ -5,7 +5,7 @@ edition = "2024" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] -name = "blctas" +name = "_blctas" crate-type = ["cdylib"] [dependencies] diff --git a/BallanceTasSonnet/DEVNOTES.md b/BallanceTasSonnet/DEVNOTES.md index e69de29..5bb5f1b 100644 --- a/BallanceTasSonnet/DEVNOTES.md +++ b/BallanceTasSonnet/DEVNOTES.md @@ -0,0 +1,5 @@ +# Developer Notes + +## Build Environment Variables + +* `PYO3_PYTHON`: Point to your target Python executable. PyO3 will find proper header and library for linking because the layout of Python distribution is known. diff --git a/BallanceTasSonnet/src/lib.rs b/BallanceTasSonnet/src/lib.rs index 04c10af..ddef8af 100644 --- a/BallanceTasSonnet/src/lib.rs +++ b/BallanceTasSonnet/src/lib.rs @@ -2,7 +2,13 @@ use pyo3::prelude::*; pub(crate) mod wrapped; -#[pymodule] +#[pymodule(name = "_blctas")] +mod blctas { + #[pymodule_export] + use super::tasfile; +} + +#[pymodule(submodule)] mod tasfile { use pyo3::{exceptions::PyRuntimeError, prelude::*}; use crate::wrapped::tasfile::{