Skip to content

Commit

Permalink
Add pyo3 build config
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Mar 1, 2024
1 parent 2b90ebb commit cc3800c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions cramjam-python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ extension-module = ["pyo3/extension-module"]
[dependencies]
pyo3 = { version = "^0.20", default-features = false, features = ["macros"] }
libcramjam = "0.2.0"

[build-dependencies]
pyo3-build-config = "^0.20"
3 changes: 3 additions & 0 deletions cramjam-python/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
pyo3_build_config::use_pyo3_cfgs();
}

0 comments on commit cc3800c

Please sign in to comment.