[package]
edition = "2024"
rust-version = "1.85"
name = "postscriptum"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Multi-interpreted-language scripting engine for Rust with Rhai and Python backends"
documentation = "https://docs.rs/postscriptum"
readme = "README.md"
keywords = [
"scripting",
"engine",
"interpreter",
"rhai",
"python",
]
categories = [
"development-tools",
"parser-implementations",
]
license = "MIT OR Apache-2.0"
repository = "https://forgejo.antares.digitalpha.net/robm/pyopyo"
[package.metadata.docs.rs]
all-features = true
[features]
default = [
"rhai",
"python",
]
native-python = ["python"]
python = ["dep:pyo3"]
rhai = ["dep:rhai"]
wasm-python = []
[lib]
name = "postscriptum"
path = "src/lib.rs"
[[example]]
name = "basic_python"
path = "examples/basic_python.rs"
required-features = ["python"]
[[example]]
name = "basic_rhai"
path = "examples/basic_rhai.rs"
required-features = ["rhai"]
[[example]]
name = "thread_safe"
path = "examples/thread_safe.rs"
required-features = ["rhai"]
[[test]]
name = "bounded"
path = "tests/bounded.rs"
[[test]]
name = "cross_engine"
path = "tests/cross_engine.rs"
[[test]]
name = "sandbox"
path = "tests/sandbox.rs"
[[test]]
name = "scoped"
path = "tests/scoped.rs"
[[test]]
name = "validate"
path = "tests/validate.rs"
[dependencies.cfg-if]
version = "1.0.4"
[dependencies.rhai]
version = "~1.26"
features = [
"serde",
"internals",
]
optional = true
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.pyo3]
version = "0.29.2"
features = ["auto-initialize"]
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.console_error_panic_hook]
version = "0.1"
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"
[target.'cfg(target_arch = "wasm32")'.dependencies.lazy_static]
version = "1.4"
[target.'cfg(target_arch = "wasm32")'.dependencies.rhai]
version = "~1.26"
features = [
"wasm-bindgen",
"internals",
]
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
"Window",
"Document",
"console",
]
[lints.clippy]
too_many_arguments = "allow"
type_complexity = "allow"