Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
50 lines (43 loc) · 1.41 KB
/
Copy pathCargo.toml
File metadata and controls
50 lines (43 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[package]
name = "rustscript-embedded"
version = "0.1.0"
edition = "2024"
description = "Embedded RustScript VMBC runtime with a no_std host-function ABI"
license = "MIT"
homepage = "https://rustscript.org/"
repository = "https://github.com/rustscript-lang/micro-rustscript"
[lib]
crate-type = ["rlib", "staticlib"]
[[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"]
[features]
default = ["host"]
host = ["dep:serialport", "dep:vm", "vm/runtime"]
esp32c3 = ["dep:pd_vm_nostd"]
esp32s31 = ["dep:pd_vm_nostd"]
arduino = ["dep:pd_vm_nostd"]
wifi = []
bluetooth = []
[dependencies]
pd_vm_nostd = { package = "pd-vm-nostd", git = "https://github.com/rustscript-lang/rustscript.git", rev = "2f433edab3f1907e8cb060e901357d7e2af016ce", version = "0.1.0", optional = true }
serialport = { version = "4.8.1", default-features = false, optional = true }
vm = { package = "pd-vm", git = "https://github.com/rustscript-lang/rustscript.git", rev = "2f433edab3f1907e8cb060e901357d7e2af016ce", version = "0.1.0", default-features = false, optional = true }
[profile.release]
opt-level = "z"
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"
[profile.min-size]
inherits = "release"
opt-level = "z"
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"