-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
112 lines (102 loc) · 2.82 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[workspace]
members = [
"vos-macro",
"programs/echo",
"programs/http-server",
]
[package]
name = "vos"
version = "0.1.0"
edition = "2021"
[dependencies]
# defmt = "0.3.8"
embassy-executor = { version = "0.6.1", features = ["nightly"] }
embassy-sync = "0.6.0"
embassy-time = "0.3.2"
embedded-alloc = "0.6.0"
embedded-io-async = "0.6.1"
heapless = { version = "0.8.0", features = ["serde"] }
log = "0.4.22"
serde = { version = "1.0.209", default-features = false, features = ["derive", "alloc"] }
static_cell = "2.1.0"
vos-macro = { path = "./vos-macro" }
wasmi = { version = "0.39.1", default-features = false }
# Native
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
# axum = { version = "0.7.7", default-features = false }
env_logger = { version = "0.11.5", optional = true }
# critical-section = { version = "1.1", optional = true }
matrix-sdk = { version = "0.7.1", default-features = false, features = ["native-tls", "e2e-encryption", "sqlite"], optional = true }
# tokio = { version = "1.41.0", features = ["rt", "rt-multi-thread", "macros"] }
mimalloc = { version = "0.1.43", optional = true }
# JS
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = { version = "0.2.93", default-features = false, optional = true }
wasm-bindgen-futures = { version = "0.4.42", default-features = false, optional = true }
wasm-logger = { version = "0.2.0", default-features = false, optional = true }
serde-wasm-bindgen = { version = "0.6.5", optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.69"
features = [
"Window",
# "Worker",
"DedicatedWorkerGlobalScope",
"MessageEvent",
]
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.matrix-sdk]
version = "0.7.1"
default-features = false
features = [
"js",
"native-tls",
"e2e-encryption",
"indexeddb",
]
optional = true
[features]
default = ["std"]
# default = ["std"]
std = ["os-std"]
os-std = [
# "critical-section/std",
"embassy-executor/arch-std",
"embassy-executor/executor-thread",
"embassy-executor/log",
"embassy-executor/integrated-timers",
"embassy-sync/std",
"embassy-time/std",
"wasmi/std",
"dep:env_logger",
"dep:mimalloc"
]
web = ["os-web"]
os-web = [
"embassy-executor/arch-wasm",
"embassy-executor/executor-thread",
"embassy-executor/log",
"embassy-executor/integrated-timers",
# "critical-section?/std",
"embassy-time/wasm",
# "getrandom/js",
"dep:web-sys",
"dep:wasm-bindgen",
"dep:wasm-bindgen-futures",
"dep:wasm-logger",
"dep:serde-wasm-bindgen",
]
rv = ["os-rv"]
os-rv = [
"embassy-executor/arch-riscv32",
"embassy-executor/executor-thread",
"embassy-executor/integrated-timers",
"embassy-executor/log",
]
# default = ["shell-std"]
# shell-std = [
# "dep:async-channel",
# "dep:futures-util",
# "dep:matrix-sdk",
# ]
[lib]
crate-type = ["cdylib", "rlib"]