eryx 0.4.4

A Python sandbox with async callbacks powered by WebAssembly
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.90.0"
name = "eryx"
version = "0.4.4"
authors = ["Ben Sully <ben.sully88@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Python sandbox with async callbacks powered by WebAssembly"
readme = "README.md"
keywords = [
    "python",
    "sandbox",
    "wasm",
    "webassembly",
    "async",
]
categories = [
    "development-tools",
    "wasm",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/sd2k/eryx"
resolver = "2"

[package.metadata."docs.rs"]
all-features = true

[package.metadata.cargo-all-features]
skip_feature_sets = [
    ["preinit"],
    ["native-extensions"],
]
max_combination_size = 3

[features]
default = []
embedded = ["dep:zstd"]
macros = ["dep:eryx-macros"]
native-extensions = [
    "preinit",
    "eryx-runtime/native-extensions",
]
preinit = [
    "dep:eryx-runtime",
    "eryx-runtime/preinit",
]
vfs = ["dep:eryx-vfs"]

[lib]
name = "eryx"
path = "src/lib.rs"

[[example]]
name = "custom_library"
path = "examples/custom_library.rs"
required-features = ["embedded"]

[[example]]
name = "embedded_runtime"
path = "examples/embedded_runtime.rs"
required-features = ["embedded"]

[[example]]
name = "error_handling"
path = "examples/error_handling.rs"
required-features = ["embedded"]

[[example]]
name = "jinja2_sandbox"
path = "examples/jinja2_sandbox.rs"
required-features = [
    "native-extensions",
    "embedded",
]

[[example]]
name = "memory_bench"
path = "examples/memory_bench.rs"
required-features = ["embedded"]

[[example]]
name = "numpy_native"
path = "examples/numpy_native.rs"
required-features = [
    "native-extensions",
    "embedded",
]

[[example]]
name = "numpy_preinit"
path = "examples/numpy_preinit.rs"
required-features = [
    "native-extensions",
    "embedded",
    "preinit",
]

[[example]]
name = "package_loading"
path = "examples/package_loading.rs"
required-features = [
    "native-extensions",
    "embedded",
]

[[example]]
name = "parallel_callbacks"
path = "examples/parallel_callbacks.rs"
required-features = ["embedded"]

[[example]]
name = "precompile"
path = "examples/precompile.rs"

[[example]]
name = "profile_execution"
path = "examples/profile_execution.rs"
required-features = ["embedded"]

[[example]]
name = "resource_limits"
path = "examples/resource_limits.rs"
required-features = ["embedded"]

[[example]]
name = "runtime_callbacks"
path = "examples/runtime_callbacks.rs"
required-features = ["embedded"]

[[example]]
name = "session_bench"
path = "examples/session_bench.rs"
required-features = [
    "native-extensions",
    "embedded",
]

[[example]]
name = "session_reuse"
path = "examples/session_reuse.rs"
required-features = ["embedded"]

[[example]]
name = "simple"
path = "examples/simple.rs"
required-features = ["embedded"]

[[example]]
name = "trace_events"
path = "examples/trace_events.rs"
required-features = ["embedded"]

[[example]]
name = "with_tracing"
path = "examples/with_tracing.rs"
required-features = ["embedded"]

[[test]]
name = "callback_macro"
path = "tests/callback_macro.rs"

[[test]]
name = "embedded_and_packages"
path = "tests/embedded_and_packages.rs"

[[test]]
name = "error_handling"
path = "tests/error_handling.rs"

[[test]]
name = "execution_cancellation"
path = "tests/execution_cancellation.rs"

[[test]]
name = "fuel_limits"
path = "tests/fuel_limits.rs"

[[test]]
name = "preinit"
path = "tests/preinit.rs"

[[test]]
name = "sandbox_callbacks"
path = "tests/sandbox_callbacks.rs"

[[test]]
name = "secrets_exfiltration_security"
path = "tests/secrets_exfiltration_security.rs"

[[test]]
name = "secrets_integration_test"
path = "tests/secrets_integration_test.rs"

[[test]]
name = "session_state_persistence"
path = "tests/session_state_persistence.rs"

[[test]]
name = "socket_bypass_security"
path = "tests/socket_bypass_security.rs"

[[test]]
name = "sqlite_test"
path = "tests/sqlite_test.rs"

[[test]]
name = "tls_networking"
path = "tests/tls_networking.rs"

[[test]]
name = "trace_events_precise"
path = "tests/trace_events_precise.rs"

[[test]]
name = "trace_output_handlers"
path = "tests/trace_output_handlers.rs"

[[test]]
name = "vfs_bypass_security"
path = "tests/vfs_bypass_security.rs"

[[bench]]
name = "execution"
path = "benches/execution.rs"
harness = false
required-features = ["embedded"]

[dependencies.anyhow]
version = "1.0"

[dependencies.async-trait]
version = "0.1"

[dependencies.eryx-macros]
version = "^0.4.4"
optional = true

[dependencies.eryx-runtime]
version = "^0.4.4"
optional = true

[dependencies.eryx-vfs]
version = "^0.4.4"
optional = true

[dependencies.flate2]
version = "1.0"

[dependencies.futures]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.rand]
version = "0.8"

[dependencies.rustls]
version = "0.23"

[dependencies.schemars]
version = "1.0.0-alpha.17"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.tar]
version = "0.4"

[dependencies.tempfile]
version = "3.20"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1"
features = [
    "full",
    "sync",
    "net",
    "io-util",
    "time",
]

[dependencies.tokio-rustls]
version = "0.26"

[dependencies.tokio-util]
version = "0.7"

[dependencies.tracing]
version = "0.1"

[dependencies.walkdir]
version = "2.5"

[dependencies.wasmtime]
version = "41"
features = [
    "component-model",
    "async",
]

[dependencies.wasmtime-wasi]
version = "41"

[dependencies.webpki-roots]
version = "0.26"

[dependencies.zip]
version = "2.0"

[dependencies.zstd]
version = "0.13"
optional = true

[dev-dependencies.async-trait]
version = "0.1"

[dev-dependencies.criterion]
version = "0.5"
features = ["async_tokio"]

[dev-dependencies.crossterm]
version = "0.28"

[dev-dependencies.rcgen]
version = "0.13"

[dev-dependencies.rustls-pemfile]
version = "2.0"

[dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "macros",
    "rt-multi-thread",
]

[lints.clippy]
all = "warn"
expect_used = "warn"
unwrap_used = "warn"

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1