2015-01-05 16:05:53 +00:00
|
|
|
[package]
|
2017-05-13 05:05:00 +00:00
|
|
|
name = "pyo3"
|
2021-08-07 07:23:22 +00:00
|
|
|
version = "0.14.2"
|
2017-08-12 16:31:14 +00:00
|
|
|
description = "Bindings to Python interpreter"
|
2018-05-14 16:53:31 +00:00
|
|
|
authors = ["PyO3 Project and Contributors <https://github.com/PyO3>"]
|
2015-04-19 05:50:50 +00:00
|
|
|
readme = "README.md"
|
2018-05-30 13:03:31 +00:00
|
|
|
keywords = ["pyo3", "python", "cpython", "ffi"]
|
2017-05-13 05:05:00 +00:00
|
|
|
homepage = "https://github.com/pyo3/pyo3"
|
2018-08-30 21:19:23 +00:00
|
|
|
repository = "https://github.com/pyo3/pyo3"
|
2018-11-02 21:32:18 +00:00
|
|
|
documentation = "https://docs.rs/crate/pyo3/"
|
2017-01-20 23:41:44 +00:00
|
|
|
categories = ["api-bindings", "development-tools::ffi"]
|
2017-07-23 18:21:01 +00:00
|
|
|
license = "Apache-2.0"
|
2021-01-10 17:59:50 +00:00
|
|
|
exclude = ["/.gitignore", ".cargo/config", "/codecov.yml", "/Makefile", "/pyproject.toml", "/tox.ini"]
|
2019-02-01 13:01:18 +00:00
|
|
|
edition = "2018"
|
2015-01-05 16:05:53 +00:00
|
|
|
|
2015-03-08 14:29:44 +00:00
|
|
|
[dependencies]
|
2020-11-19 14:34:44 +00:00
|
|
|
cfg-if = { version = "1.0" }
|
2021-02-10 15:07:25 +00:00
|
|
|
# must stay at 0.3.x for Rust 1.41 compatibility
|
|
|
|
indoc = { version = "0.3.6", optional = true }
|
2020-05-04 15:02:10 +00:00
|
|
|
inventory = { version = "0.1.4", optional = true }
|
2020-03-13 09:40:25 +00:00
|
|
|
libc = "0.2.62"
|
2020-06-29 09:01:21 +00:00
|
|
|
parking_lot = "0.11.0"
|
2021-03-08 05:49:06 +00:00
|
|
|
num-bigint = { version = "0.4", optional = true }
|
2021-08-16 22:22:46 +00:00
|
|
|
num-complex = { version = ">= 0.2, < 0.5", optional = true }
|
2021-02-10 15:07:25 +00:00
|
|
|
# must stay at 0.1.x for Rust 1.41 compatibility
|
|
|
|
paste = { version = "0.1.18", optional = true }
|
2021-08-07 07:23:22 +00:00
|
|
|
pyo3-macros = { path = "pyo3-macros", version = "=0.14.2", optional = true }
|
2020-05-04 15:02:10 +00:00
|
|
|
unindent = { version = "0.1.4", optional = true }
|
2021-03-24 22:29:00 +00:00
|
|
|
hashbrown = { version = ">= 0.9, < 0.12", optional = true }
|
2021-07-22 07:15:26 +00:00
|
|
|
indexmap = { version = ">= 1.6, < 1.8", optional = true }
|
2021-01-06 15:58:43 +00:00
|
|
|
serde = {version = "1.0", optional = true}
|
2017-06-18 15:41:20 +00:00
|
|
|
|
2018-04-21 18:01:41 +00:00
|
|
|
[dev-dependencies]
|
2019-02-01 14:05:37 +00:00
|
|
|
assert_approx_eq = "1.1.0"
|
2021-07-30 23:22:55 +00:00
|
|
|
# O.3.5 uses the matches! macro, which isn't compatible with Rust 1.41
|
|
|
|
criterion = "=0.3.4"
|
2021-08-15 21:47:18 +00:00
|
|
|
trybuild = "1.0.45"
|
2020-06-18 09:49:43 +00:00
|
|
|
rustversion = "1.0"
|
2020-12-18 04:26:29 +00:00
|
|
|
proptest = { version = "0.10.1", default-features = false, features = ["std"] }
|
2020-12-28 16:02:57 +00:00
|
|
|
# features needed to run the PyO3 test suite
|
|
|
|
pyo3 = { path = ".", default-features = false, features = ["macros", "auto-initialize"] }
|
2021-01-06 15:58:43 +00:00
|
|
|
serde_json = "1.0.61"
|
2018-04-21 18:01:41 +00:00
|
|
|
|
2021-05-19 20:50:25 +00:00
|
|
|
[build-dependencies]
|
2021-08-07 07:23:22 +00:00
|
|
|
pyo3-build-config = { path = "pyo3-build-config", version = "0.14.2" }
|
2021-05-19 20:50:25 +00:00
|
|
|
|
2015-05-19 21:32:32 +00:00
|
|
|
[features]
|
2021-02-22 22:34:09 +00:00
|
|
|
default = ["macros"]
|
2020-12-28 16:02:57 +00:00
|
|
|
|
|
|
|
# Enables macros: #[pyclass], #[pymodule], #[pyfunction] etc.
|
2021-03-02 22:34:25 +00:00
|
|
|
macros = ["pyo3-macros", "indoc", "paste", "unindent"]
|
|
|
|
|
|
|
|
# Enables multiple #[pymethods] per #[pyclass]
|
|
|
|
multiple-pymethods = ["inventory"]
|
2020-12-28 16:02:57 +00:00
|
|
|
|
|
|
|
# Use this feature when building an extension module.
|
|
|
|
# It tells the linker to keep the python symbols unresolved,
|
|
|
|
# so that the module can also be used with statically linked python interpreters.
|
|
|
|
extension-module = []
|
|
|
|
|
2020-10-31 07:35:14 +00:00
|
|
|
# Use the Python limited API. See https://www.python.org/dev/peps/pep-0384/ for more.
|
2021-05-19 20:50:25 +00:00
|
|
|
abi3 = ["pyo3-build-config/abi3"]
|
2020-12-28 16:02:57 +00:00
|
|
|
|
2020-10-31 07:35:14 +00:00
|
|
|
# With abi3, we can manually set the minimum Python version.
|
2021-05-19 20:50:25 +00:00
|
|
|
abi3-py36 = ["abi3-py37", "pyo3-build-config/abi3-py36"]
|
|
|
|
abi3-py37 = ["abi3-py38", "pyo3-build-config/abi3-py37"]
|
|
|
|
abi3-py38 = ["abi3-py39", "pyo3-build-config/abi3-py38"]
|
|
|
|
abi3-py39 = ["abi3", "pyo3-build-config/abi3-py39"]
|
2020-09-05 08:52:41 +00:00
|
|
|
|
2020-12-28 16:02:57 +00:00
|
|
|
# Changes `Python::with_gil` and `Python::acquire_gil` to automatically initialize the
|
|
|
|
# Python interpreter if needed.
|
|
|
|
auto-initialize = []
|
|
|
|
|
2020-06-18 09:43:04 +00:00
|
|
|
# Optimizes PyObject to Vec conversion and so on.
|
2020-06-17 08:10:00 +00:00
|
|
|
nightly = []
|
2017-06-11 23:35:24 +00:00
|
|
|
|
2021-05-26 06:25:00 +00:00
|
|
|
[[bench]]
|
|
|
|
name = "bench_call"
|
|
|
|
harness = false
|
|
|
|
|
2021-07-13 20:22:19 +00:00
|
|
|
[[bench]]
|
|
|
|
name = "bench_err"
|
|
|
|
harness = false
|
|
|
|
|
2021-05-26 06:25:00 +00:00
|
|
|
[[bench]]
|
|
|
|
name = "bench_dict"
|
|
|
|
harness = false
|
|
|
|
|
2021-05-16 07:11:37 +00:00
|
|
|
[[bench]]
|
|
|
|
name = "bench_gil"
|
|
|
|
harness = false
|
|
|
|
|
2021-05-26 06:25:00 +00:00
|
|
|
[[bench]]
|
|
|
|
name = "bench_list"
|
|
|
|
harness = false
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "bench_pyclass"
|
|
|
|
harness = false
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "bench_pyobject"
|
|
|
|
harness = false
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "bench_set"
|
|
|
|
harness = false
|
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "bench_tuple"
|
|
|
|
harness = false
|
|
|
|
|
2018-06-13 16:02:45 +00:00
|
|
|
[workspace]
|
|
|
|
members = [
|
2020-12-13 11:29:39 +00:00
|
|
|
"pyo3-macros",
|
|
|
|
"pyo3-macros-backend",
|
2021-04-01 23:03:49 +00:00
|
|
|
"examples/pyo3-benchmarks",
|
|
|
|
"examples/pyo3-pytests",
|
|
|
|
"examples/maturin-starter",
|
|
|
|
"examples/setuptools-rust-starter",
|
2021-03-07 22:48:56 +00:00
|
|
|
"examples/word-count"
|
2018-08-21 22:02:37 +00:00
|
|
|
]
|
2021-05-04 21:25:09 +00:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
no-default-features = true
|
2021-07-22 07:15:26 +00:00
|
|
|
features = ["macros", "num-bigint", "num-complex", "hashbrown", "serde", "multiple-pymethods", "indexmap"]
|
2021-05-16 07:11:37 +00:00
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|