-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
79 lines (68 loc) · 2.08 KB
/
Cargo.toml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[package]
name = "trenchcoat"
version = "0.5.1"
edition = "2021"
authors = ["Anatol Ulrich"]
# read it please
license-file = "LICENSE.txt"
description = "JavaScript-ish virtual machine for embedded, LEDs, hot code reload, etc."
homepage = "https://github.com/spookyvision/trenchcoat"
repository = "https://github.com/spookyvision/trenchcoat"
readme = "README.md"
keywords = ["vm", "embedded", "pixelblaze", "javascript", "smartleds"]
categories = ["embedded", "emulators", "no-std", "wasm"]
# dep: feature syntax is 1.60+
rust-version = "1.60"
[workspace]
members = ["console-app", "console-compiler"]
exclude = [
"web-app",
"stm32f4-app",
"minimal-alloc-gated",
"esp32-c3-app",
"vm2",
]
[features]
full = ["use-std", "compiler", "tty", "log"]
use-std = ["thiserror", "alloc"]
alloc = ["postcard/alloc"]
log = ["dep:log"]
defmt = ["dep:defmt"]
tty = ["swc_common?/termcolor", "swc_common?/tty-emitter", "dep:clap"]
compiler = [
"use-std",
"dep:anyhow",
"dep:phf",
"dep:swc_common",
"dep:swc_ecma_ast",
"dep:swc_ecma_parser",
"dep:swc_ecma_utils",
"dep:swc_ecma_visit",
]
default = ["full"]
[dependencies]
heapless = "0.8"
postcard = "1.0"
serde = { version = "1.0.145", features = ["derive"], default-features = false }
swc_common = { version = "0.36", features = [], optional = true }
swc_ecma_ast = { version = "0.117", optional = true }
swc_ecma_parser = { version = "0.148", features = [
"debug",
"swc_ecma_visit",
], optional = true }
swc_ecma_utils = { version = "0.133", optional = true }
swc_ecma_visit = { version = "0.103", features = ["debug"], optional = true }
phf = { version = "0.11", features = ["macros"], optional = true }
fixed = { version = "1", features = ["serde"] }
cordic = "0.1"
log = { version = "0.4", optional = true }
defmt = { version = "0.3", optional = true }
thiserror = { version = "1", optional = true }
clap = { version = "4.0.18", features = ["derive"], optional = true }
anyhow = { version = "1", optional = true }
easing-fixed = "0.1.0"
[dev-dependencies]
anyhow = "1"
[profile.profiling]
inherits = "release"
debug = true