You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running maturin init, the Cargo.toml is missing the [lib] tag, leading to maturin build (and all other commands) to fail.
Example output:
[package]
name = "getting_started"version = "0.1.0"edition = "2021"# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html[lib]name = "getting_started"crate-type = ["cdylib"]
[dependencies]
pyo3 = { version = "0.17.1", features = ["extension-module"] }
Expected:
[package]
name = "getting_started"version = "0.1.0"edition = "2021"
[lib]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html[lib]name = "getting_started"crate-type = ["cdylib"]
[dependencies]
pyo3 = { version = "0.17.1", features = ["extension-module"] }
OS: MacOS, Monterey 12.0.1
Arch: Arm64, M1 2020
Your Python version (python -V)
3.10.6
Your pip version (pip -V)
22.2.2
What bindings you're using
pyo3
Does cargo build work?
Yes, it works
If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?
Bug Description
When running
maturin init
, theCargo.toml
is missing the[lib]
tag, leading tomaturin build
(and all other commands) to fail.Example output:
Expected:
OS: MacOS, Monterey 12.0.1
Arch: Arm64, M1 2020
Your Python version (
python -V
)3.10.6
Your pip version (
pip -V
)22.2.2
What bindings you're using
pyo3
Does
cargo build
work?If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash
/
)?Steps to Reproduce
python3.10 -m virtualenv .venv; ./.venv/bin/activate
pip install maturin
maturin init
The text was updated successfully, but these errors were encountered: