-
Notifications
You must be signed in to change notification settings - Fork 9
/
Cargo.toml
executable file
·82 lines (71 loc) · 2.31 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
[package]
name = "sidevm-quickjs"
version = "0.10.4"
authors = ["[your_name] <[your_email]>"]
edition = "2021"
[profile.release]
lto = true
[[bin]]
name = "sidejs"
path = "src/sidejs.rs"
[[bin]]
name = "phatjs"
path = "src/phatjs.rs"
[dependencies]
js = { package = "qjsbind", path = "../qjs-sys/qjsbind" }
qjs-extensions = { path = "../qjs-sys/qjs-extensions", features = ['std'] }
tokio = { version = "1", features = ["sync", "macros", "io-util"] }
hyper = { version = "0.14", features = ["client", "http1"] }
serde = { version = "1", default-features = false, features = ["derive"] }
serde_json = { version = "1", default-features = false, features = ["alloc"] }
bootcode = { path = "bootcode" }
sidevm = "0.2.0-alpha.7"
log = "0.4"
anyhow = "1.0"
url = "2.4.0"
ink_macro = "4.3"
scale = { package = "parity-scale-codec", version = "3" }
hex = "0.4.3"
pink-types = "0.1"
sha2 = { version = "0.10", optional = true, default-features = false }
sha3 = { version = "0.10", optional = true, default-features = false }
blake2 = { version = "0.10", optional = true, default-features = false }
# Crates for native testing
tracing-subscriber = { version = "0.3", optional = true }
rand = { version = "0.8.5", optional = true }
hyper-rustls = { version = "0.24.1", optional = true }
# Creates for web backend
wasm-bindgen = { version = "=0.2.89", optional = true, default-features = false }
js-sys = { version = "0.3.66", optional = true }
wasm-bindgen-futures = { version = "0.4.39", optional = true }
reqwest = { version = "0.11.23", optional = true, git = "https://github.com/kvinwang/reqwest", branch = "phatjs" }
phala-allocator = { version = "0.1.0", optional = true }
riscvm = { git = "https://github.com/kvinwang/risc0-vm.git", branch = "riscvm", optional = true }
[dependencies.web-sys]
version = "0.3.4"
optional = true
features = ['console']
[features]
default = ["native", "js-url", "js-http-listen", "js-hash", "riscvm", "mem-stats"]
sanitize-address = ["js/sanitize-address"]
js-url = []
js-http-listen = []
js-hash = ["sha2", "sha3", "blake2"]
sidevm = []
web = [
"js-sys",
"web-sys",
"wasm-bindgen",
"wasm-bindgen-futures",
"reqwest",
"riscvm?/web"
]
mem-stats = ["phala-allocator", "js/pink-allocator"]
native = [
"tokio/full",
"tracing-subscriber",
"rand",
"hyper/runtime",
"hyper/tcp",
"hyper-rustls/webpki-roots",
]