forked from Phala-Network/sidevm-quickjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
executable file
·70 lines (60 loc) · 1.99 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
[package]
name = "sidevm-quickjs"
version = "0.9.4"
authors = ["[your_name] <[your_email]>"]
edition = "2021"
[[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.22", optional = true }
[dependencies.web-sys]
version = "0.3.4"
optional = true
features = ['Window', 'console']
[features]
default = ["native", "js-url", "js-http-listen", "js-hash"]
sanitize-address = ["js/sanitize-address"]
js-url = []
js-http-listen = []
js-hash = ["sha2", "sha3", "blake2"]
stream = ["js/stream"]
sidevm = []
web = ["js-sys", "web-sys", "wasm-bindgen", "wasm-bindgen-futures", "reqwest"]
native = [
"tokio/full",
"tracing-subscriber",
"rand",
"hyper/runtime",
"hyper/tcp",
"hyper-rustls/webpki-roots",
]