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 initiating a new project using maturin init the Cargo.toml file is initialized as
[package]
name = "my_package"version = "0.1.0"edition = "2021"# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html[lib]name = "my_package"crate-type = ["cdylib"]
[dependencies]
pyo3 = { version = "0.17.1", features = ["extension-module"] }
where the [lib] section header was included in the comment line. The correct file should be
[package]
name = "my_package"version = "0.1.0"edition = "2021"# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "my_package"crate-type = ["cdylib"]
[dependencies]
pyo3 = { version = "0.17.1", features = ["extension-module"] }
Your Python version (python -V)
3.9.12
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 /)?
Yes
Steps to Reproduce
Create folder called my_package
Initialize a virtualenv
run maturin init
Select pyo3 bindings
The text was updated successfully, but these errors were encountered:
Bug Description
When initiating a new project using
maturin init
theCargo.toml
file is initialized aswhere the
[lib]
section header was included in the comment line. The correct file should beYour Python version (
python -V
)3.9.12
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
my_package
maturin init
pyo3
bindingsThe text was updated successfully, but these errors were encountered: