[package]
name = "pyembed"
version = "0.17.0"
authors = ["Gregory Szorc <gregory.szorc@gmail.com>"]
edition = "2018"
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"
links = "pythonXY"
[dependencies]
anyhow = "1.0"
cpython = "0.6.0"
dunce = "1.0"
jemalloc-sys = { version = "0.3", optional = true }
memmap = "0.7"
once_cell = "1.7"
python3-sys = "0.6.0"
[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-packed-resources]
version = "0.7.0"
[dependencies.python-packaging]
version = "0.10.0"
default-features = false
[dependencies.tugger-file-manifest]
version = "0.5.0"
[target.'cfg(windows)'.dependencies]
memory-module-sys = "0.3"
winapi = { version = "0.3", features = ["libloaderapi", "memoryapi", "minwindef"] }
[dev-dependencies]
pathdiff = "0.2"
rusty-fork = "0.3"
[features]
default = ["build-mode-default"]
allocator-jemalloc = ["jemalloc-sys"]
allocator-mimalloc = ["libmimalloc-sys"]
allocator-snmalloc = ["snmalloc-sys"]
build-mode-default = [
"cpython-link-default",
]
build-mode-standalone = [
"cpython-link-unresolved-static",
]
build-mode-pyoxidizer-exe = []
build-mode-prebuilt-artifacts = []
build-mode-extension-module = [
"cpython/extension-module",
]
build-mode-test = [
"cpython-link-default",
]
cpython-link-unresolved-static = [
"cpython/py-link-mode-unresolved-static",
"cpython/python3-sys",
"cpython/no-auto-initialize",
]
cpython-link-default = [
"cpython/py-link-mode-default",
"cpython/python3-sys",
"cpython/no-auto-initialize",
]