Skip to content

Commit

Permalink
conditionally based on platform
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerJang27 committed Oct 31, 2024
1 parent 5300820 commit f4d3137
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
7 changes: 6 additions & 1 deletion context-py/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@ path = "bin/stub_gen.rs"

[dependencies]
context = { path = "../context", features = ["git-access", "pyo3"] }
pyo3 = { version = "0.22.5", features = ["abi3-py39", "extension-module"] }
pyo3-stub-gen = "0.6.0"

[target.'cfg(target_os = "linux")'.dependencies]
pyo3 = { version = "0.22.5", features = ["abi3-py39", "extension-module"] }

[target.'cfg(target_os = "macos")'.dependencies]
pyo3 = { version = "0.22.5", features = ["abi3-py39"] }
13 changes: 9 additions & 4 deletions context/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ gix = { version = "0.63.0", default-features = false, features = [
], optional = true }
js-sys = { version = "0.3.70", optional = true }
openssl = { version = "0.10.66", features = ["vendored"], optional = true }
pyo3 = { version = "0.22.5", optional = true, features = [
"abi3-py39",
"extension-module",
] }
pyo3-stub-gen = { version = "0.6.0", optional = true }
quick-junit = "0.5.0"
quick-xml = "0.36.2"
Expand All @@ -31,6 +27,15 @@ thiserror = "1.0.63"
uuid = { version = "1.10.0", features = ["v5"] }
wasm-bindgen = { version = "0.2.84", optional = true }

[target.'cfg(target_os = "linux")'.dependencies]
pyo3 = { version = "0.22.5", optional = true, features = [
"abi3-py39",
"extension-module",
] }

[target.'cfg(target_os = "macos")'.dependencies]
pyo3 = { version = "0.22.5", optional = true, features = ["abi3-py39"] }

[features]
default = ["git-access"]
git-access = ["dep:gix", "dep:openssl"]
Expand Down

0 comments on commit f4d3137

Please sign in to comment.