[package]
name = "pyembed"
version = "0.21.0"
authors = ["Gregory Szorc <gregory.szorc@gmail.com>"]
edition = "2021"
license = "Python-2.0 OR MPL-2.0"
description = "Embed a Python interpreter"
homepage = "https://github.com/indygreg/PyOxidizer"
repository = "https://github.com/indygreg/PyOxidizer.git"
build = "build.rs"
readme = "README.md"
[dependencies]
anyhow = "1.0"
dunce = "1.0"
jemalloc-sys = { version = "0.5", optional = true }
libc = "0.2"
once_cell = "1.7"
serde = { version = "1.0", features = ["derive"], optional = true }
[dependencies.snmalloc-sys]
version = "0.2"
features = ["build_cc"]
optional = true
[dependencies.libmimalloc-sys]
version = "0.1"
features = [
"extended",
"local_dynamic_tls",
"override",
]
optional = true
[dependencies.python-oxidized-importer]
version = "0.6.0"
default-features = false
[dependencies.pyo3]
version = "0.16.5"
default-features = false
features = ["macros"]
[dependencies.python-packaging]
version = "0.13.0"
default-features = false
[build-dependencies]
pyo3-build-config = { version = "0.16.5", features = ["resolve-config"] }
[dev-dependencies]
pathdiff = "0.2"
rusty-fork = "0.3"
[dev-dependencies.python-packed-resources]
version = "0.9.0"
[features]
default = ["zipimport"]
allocator-jemalloc = ["jemalloc-sys"]
allocator-mimalloc = ["libmimalloc-sys"]
allocator-snmalloc = ["snmalloc-sys"]
serialization = ["serde", "python-packaging/serialization"]
zipimport = ["python-oxidized-importer/zipimport"]