diff --git a/.gitignore b/.gitignore index f104ebc..d9b2b2a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -!Cargo.toml -!pyproject.toml +!airlock_libs/Cargo.toml +!airlock_libs/pyproject.toml .env *.html *.csv @@ -10,7 +10,6 @@ jobs.json *.xl* *.exe securitytest.py -*.toml system_config.json Development/ AirlockTools_client*/ \ No newline at end of file diff --git a/airlock_libs/Cargo.toml b/airlock_libs/Cargo.toml new file mode 100644 index 0000000..b5b9896 --- /dev/null +++ b/airlock_libs/Cargo.toml @@ -0,0 +1,31 @@ +[package] +name = "airlock_libs" +version = "1.0.1" +edition = "2024" + +[lib] +crate-type = ["cdylib"] + +[dependencies] +chrono = "0.4.42" +indicatif = "0.18.2" +mongodb = "3.3.0" +pyo3 = { version = "0.27.0", features = ["extension-module", "generate-import-lib"] } +reqwest = { version = "0.12.24", features = ["json", "native-tls"] } +serde = "1.0.228" +serde-pyobject = "0.8.0" +serde_json = "1.0.145" +tokio = { version = "1.48.0", features = ["full"] } + +[package.metadata.maturin] +generate-abi-stubs = true + +[profile.release] +opt-level = "z" +lto = "fat" +debug = false +codegen-units = 1 +panic = 'abort' +strip = true +debug-assertions = false +overflow-checks = false diff --git a/airlock_libs/pyproject.toml b/airlock_libs/pyproject.toml new file mode 100644 index 0000000..4b7b463 --- /dev/null +++ b/airlock_libs/pyproject.toml @@ -0,0 +1,14 @@ +[build-system] +requires = ["maturin1.9.6"] +build-backend = "maturin" + +[project] +name = "airlock_libs" +version = "1.0.1" +description = "Airlock Digital API Wrapper" +readme = "README.md" +license = { text = "AGPL-3.0-only" } +authors = [{ name = "James Brotosky", email = "james.brotosky@racooncity.org" }] + +[tool.maturin] # if you're building via maturin +bindings = "pyo3" \ No newline at end of file