-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
49 lines (39 loc) · 1.29 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
[package]
name = "navabilitysdk"
version = "0.1.0"
authors = ["NavAbility™ by WhereWhen.ai Technologies Inc."]
edition = "2021"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
serde = "^1.0"
serde_json = "^1.0"
chrono = "^0.4"
log = "^0.4"
# hyper-util = "^0.1.3"
uuid = { version ="^1.12", features = ["v4","v5"] }
graphql_client = "^0.14"
reqwest = {version = "^0.12", optional=true, features = [
"json",
# "multipart",
] }
# for blocking calls, but features deps not 100% sorted out yet TODO
# graphql_client = { version="0.14", features = ["reqwest","reqwest-blocking"] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio = { version = "^1.40", default-features = false, optional=true}
tracing = "^0.1"
ffi-convert = { version="^0.6", optional=true }
libc = { version = "^0.2", default-features = false, optional=true}
[target.'cfg(target_arch = "wasm32")'.dependencies]
gloo-console = { version = "^0.3", optional = true }
[features]
tokio = ["dep:tokio", "dep:reqwest", "dep:ffi-convert", "dep:libc"]
blocking = ["graphql_client/reqwest","graphql_client/reqwest-blocking"]
wasm = ["dep:reqwest"]
wasm-dev = ["dep:gloo-console"]
[profile.release]
opt-level = 'z' # fast and small wasm
lto = true
# Optimize all dependencies even in debug builds:
[profile.dev.package."*"]
opt-level = 2