rustscript-embedded 0.3.3

Embedded RustScript VMBC runtime with a no_std host-function ABI
# 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 = "rustscript-embedded"
version = "0.3.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Embedded RustScript VMBC runtime with a no_std host-function ABI"
homepage = "https://rustscript.org/"
readme = "README.md"
license = "MIT"
repository = "https://github.com/rustscript-lang/micro-rustscript"

[features]
arduino = ["dep:pd_vm_nostd"]
bluetooth = []
default = ["host"]
esp32c3 = ["dep:pd_vm_nostd"]
esp32s31 = ["dep:pd_vm_nostd"]
host = [
    "dep:serialport",
    "dep:vm",
    "vm/runtime",
]
wifi = []

[lib]
name = "rustscript_embedded"
crate-type = [
    "rlib",
    "staticlib",
]
path = "src/lib.rs"

[[bin]]
name = "rustscript-compile-vmbc"
path = "src/bin/rustscript-compile-vmbc.rs"
required-features = ["host"]

[[bin]]
name = "rustscript-serial-repl"
path = "src/bin/rustscript-serial-repl.rs"
required-features = ["host"]

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

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

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

[dependencies.pd_vm_nostd]
version = "0.22.6"
optional = true
package = "pd-vm-nostd"

[dependencies.serialport]
version = "4.8.1"
optional = true
default-features = false

[dependencies.vm]
version = "0.22.6"
optional = true
default-features = false
package = "pd-vm"

[profile.min-size]
opt-level = "z"
lto = "fat"
codegen-units = 1
panic = "abort"
inherits = "release"
strip = "symbols"

[profile.release]
opt-level = "z"
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"