pd-vm 0.22.5

RustScript bytecode compiler and VM
Documentation
# 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"
name = "pd-vm"
version = "0.22.5"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "RustScript bytecode compiler and VM"
homepage = "https://rustscript.org/"
readme = "README.md"
license = "MIT"
repository = "https://github.com/rustscript-lang/rustscript"
resolver = "2"

[features]
cli = [
    "dep:rustyline",
    "runtime",
]
cranelift-jit = [
    "runtime",
    "dep:cranelift-codegen",
    "dep:cranelift-frontend",
    "dep:cranelift-jit",
    "dep:cranelift-module",
    "dep:cranelift-native",
]
default = [
    "runtime",
    "cli",
    "cranelift-jit",
    "http",
    "tls",
    "websocket",
]
edge-abi = ["dep:edge_abi"]
http = [
    "edge-abi",
    "edge_abi/http",
]
http2 = [
    "http",
    "edge_abi/http2",
]
mqtt = [
    "edge-abi",
    "edge_abi/mqtt",
]
runtime = []
tls = [
    "http",
    "edge_abi/tls",
]
webrtc = [
    "http",
    "edge_abi/webrtc",
]
websocket = [
    "http",
    "edge_abi/websocket",
]

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

[[bin]]
name = "pd-vm-run"
path = "src/bin/pd-vm-run.rs"
required-features = ["cli"]

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

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

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

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

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

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

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

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

[dependencies.base64]
version = "0.22"

[dependencies.cranelift-codegen]
version = "0.129.1"
optional = true

[dependencies.cranelift-frontend]
version = "0.129.1"
optional = true

[dependencies.cranelift-jit]
version = "0.129.1"
optional = true

[dependencies.cranelift-module]
version = "0.129.1"
optional = true

[dependencies.cranelift-native]
version = "0.129.1"
optional = true

[dependencies.edge_abi]
version = "0.1.1"
optional = true
default-features = false
package = "pd-edge-abi"

[dependencies.futures-channel]
version = "0.3"

[dependencies.paste]
version = "1"

[dependencies.pd-host-function]
version = "0.22.5"

[dependencies.regex]
version = "1"

[dependencies.rt-format]
version = "0.3.1"

[dependencies.rustyline]
version = "14"
optional = true

[dependencies.serde]
version = "1"

[dependencies.serde_json]
version = "1"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
    "time",
    "sync",
]

[build-dependencies.syn]
version = "2"
features = ["full"]

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[target."cfg(windows)".dependencies.windows-sys]
version = "0.59"
features = [
    "Win32_System_Diagnostics_Debug",
    "Win32_System_Memory",
    "Win32_System_ProcessStatus",
    "Win32_System_Threading",
]