Skip to content

Commit

Permalink
🐛 Fix cargo build issues on arm64 (Mac)
Browse files Browse the repository at this point in the history
- `cargo build --no-default` to build on arm64
  • Loading branch information
Billyzou0741326 committed Oct 29, 2023
1 parent a2a2354 commit 175205c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python_genshin_artifact_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name = "genshin_artifact_core"
crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.19.2", features = ["extension-module", "anyhow"] }
pyo3 = { version = "0.19.2", features = ["anyhow"] }
mona_wasm = { path = "../genshin_artifact/mona_wasm" }
mona = { path = "../genshin_artifact/mona_core" }
mona_generate = { path = "../genshin_artifact/mona_generate" }
Expand All @@ -17,3 +17,8 @@ serde="1.0"
serde_json = "1.0"
anyhow = "1.0.75"
pythonize = "0.19.0"

[features]
# See https://github.com/PyO3/pyo3/issues/1800#issuecomment-900036990 for cargo build issues
extension-module = ["pyo3/extension-module"]
default = ["extension-module"]

0 comments on commit 175205c

Please sign in to comment.