-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
45 lines (38 loc) · 1.09 KB
/
Cargo.toml
File metadata and controls
45 lines (38 loc) · 1.09 KB
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
[package]
name = "firefly-api"
version = "0.1.0"
edition = "2021"
authors = ["Yangchen Ye <eikasia30@gmail.com>"]
[package.metadata.cargo-shear]
# axum-cloudflare-adapter macros uses these crates
ignored = ["wasm-bindgen-futures", "oneshot"]
[package.metadata.release]
release = false
# https://github.com/rustwasm/wasm-pack/issues/1247
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
[lib]
crate-type = ["cdylib"]
[dependencies]
worker = { version = "0.5.0", features = ['http', 'axum'] }
axum = { version = "0.8.4", default-features = false, features = ["macros", "query"] }
tower-service = "0.3.3"
console_error_panic_hook = { version = "0.1.7" }
rspotify = "0.14.0"
serde = { version = "1.0.219", features = ["derive"] }
axum-cloudflare-adapter = "0.14.0"
wasm-bindgen-futures = "0.4.50"
oneshot = "0.1.11"
reqwest = { version = "0.12.22", features = ["json"] }
http = "1.3.1"
serde_json = "1.0.140"
anyhow = "1.0.98"
base64 = "0.22.1"
futures = "0.3.31"
[dev-dependencies]
wasm-bindgen-test = "0.3.50"
# optimize for code size
[profile.release]
lto = true
strip = true
codegen-units = 1