Move links key from pyo3 to pyo3-ffi

Instead of a fake build dependency, move the links key from pyo3 to pyo3-ffi
which according to [1] is a prerequisite for build scripts to emit meta-data
that can be used by other build scripts which would incidentally ensure the
ordering between the build script of pyo3 and pyo3-ffi that we need.

[1] https://doc.rust-lang.org/cargo/reference/build-script-examples.html#using-another-sys-crate
This commit is contained in:
Adam Reichold 2022-03-15 12:40:11 +01:00
parent 0c7a13fbe1
commit 1e7275c924
2 changed files with 1 additions and 2 deletions

View File

@ -12,7 +12,6 @@ categories = ["api-bindings", "development-tools::ffi"]
license = "Apache-2.0"
exclude = ["/.gitignore", ".cargo/config", "/codecov.yml", "/Makefile", "/pyproject.toml", "/noxfile.py"]
edition = "2018"
links = "python"
[dependencies]
cfg-if = "1.0"
@ -51,7 +50,6 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.61"
[build-dependencies]
pyo3-ffi = { path = "pyo3-ffi", version = "=0.16.1" }
pyo3-build-config = { path = "pyo3-build-config", version = "0.16.1", features = ["resolve-config"] }
[features]

View File

@ -9,6 +9,7 @@ repository = "https://github.com/pyo3/pyo3"
categories = ["api-bindings", "development-tools::ffi"]
license = "Apache-2.0"
edition = "2018"
links = "python"
[dependencies]
libc = "0.2.62"