-
Notifications
You must be signed in to change notification settings - Fork 8
/
Cargo.toml
72 lines (61 loc) · 2.06 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
[package]
name = "valor_core"
description = "Plugin runtime as HTTP API running in server and browser"
license = "GPL-3.0-or-later"
version = "0.5.2-beta.0"
authors = ["Daniel Olano <[email protected]>"]
edition = "2018"
repository = "https://github.com/valibre-org/valor"
[dependencies]
async-trait = "0.1.52"
http-types = { git = "https://github.com/http-rs/http-types.git", branch = "main", default-features = false, features = ["serde"] }
path-tree = { version = "0.2.2", optional = true }
hashbrown = "0.11.2"
serde = { version = "1.0.131", default-features = false, features = ["alloc", "derive"], optional = true }
serde_json = { version = "1.0.73", default-features = false, features = ["alloc"] }
valor_plugin = { version = "0.5.1-beta.0", path = "./valor_plugin", optional = true }
[target.'cfg(not(target_arch="wasm32"))'.dependencies]
http-client = { version = "6.5.1", optional = true, features = ["h1_client"] }
[dev-dependencies]
async-std = { version = "1.10.0", features = ["attributes"] }
mockito = "0.30.0"
[target.'cfg(target_arch="wasm32")'.dependencies]
wasm-bindgen = { version = "0.2.78", optional = true }
js-sys = { version = "0.3.55", optional = true }
wasm-bindgen-futures = { version = "0.4.28", optional = true }
wee_alloc = { version = "0.4.5", optional = true }
http-client = { version = "6.5.1", optional = true, features = ["wasm_client"] }
[target.'cfg(target_arch="wasm32")'.dependencies.web-sys]
version = "0.3.55"
optional = true
features = ["RequestInit", "Request", "ResponseInit", "Response", "Headers"]
[target.'cfg(target_arch="wasm32")'.dev-dependencies]
wasm-bindgen-test = "0.3.28"
[features]
std = []
runtime = ["path-tree"]
util = ["valor_plugin"]
native = ["runtime", "serde", "std"]
web = [
"runtime",
"util",
"wasm-bindgen",
"wasm-bindgen-futures",
"js-sys",
"web-sys",
"wee_alloc",
]
proxy = ["http-client"]
[workspace]
default-members = ["valor_bin"]
members = [
"valor_bin",
"valor_web",
"valor_plugin",
"examples/hello_plugin",
"examples/with_state",
]
[profile.release.package.valor_web]
opt-level = "s"
[profile.release]
lto = true