feat: add build notes and fix build issue for sonnet
This commit is contained in:
@@ -5,7 +5,7 @@ edition = "2024"
|
|||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
[lib]
|
[lib]
|
||||||
name = "blctas"
|
name = "_blctas"
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -2,7 +2,13 @@ use pyo3::prelude::*;
|
|||||||
|
|
||||||
pub(crate) mod wrapped;
|
pub(crate) mod wrapped;
|
||||||
|
|
||||||
#[pymodule]
|
#[pymodule(name = "_blctas")]
|
||||||
|
mod blctas {
|
||||||
|
#[pymodule_export]
|
||||||
|
use super::tasfile;
|
||||||
|
}
|
||||||
|
|
||||||
|
#[pymodule(submodule)]
|
||||||
mod tasfile {
|
mod tasfile {
|
||||||
use pyo3::{exceptions::PyRuntimeError, prelude::*};
|
use pyo3::{exceptions::PyRuntimeError, prelude::*};
|
||||||
use crate::wrapped::tasfile::{
|
use crate::wrapped::tasfile::{
|
||||||
|
|||||||
Reference in New Issue
Block a user