Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
91 lines (82 loc) · 2.76 KB
/
Copy pathCargo.toml
File metadata and controls
91 lines (82 loc) · 2.76 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
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
83
84
85
86
87
88
89
90
91
[package]
name = "forest-explorer"
version = "0.1.0"
edition = "2024"
authors = ["Forest Team <forest@chainsafe.io>"]
description = "Serverless Filecoin Explorer with faucet capabilities"
repository = "https://github.com/ChainSafe/forest-explorer"
license = "Apache-2.0 OR MIT"
resolver = "3"
[lib]
crate-type = ["cdylib"]
[dependencies]
alloy = "2"
anyhow = "1"
axum = { version = "0.8", default-features = false, optional = true }
base64 = "0.23"
blake2b_simd = "1"
bls-signatures = "0.15"
cid = "0.11"
console_error_panic_hook = { version = "0.1" }
console_log = "1"
derive_more = { version = "2", features = ["from", "into", "display"] }
fvm_ipld_encoding = "0.5"
fvm_shared = { version = "~4.8" }
hex = "0.4"
# `js` provides the system clock on `wasm32-unknown-unknown`.
jiff = { version = "0.2", default-features = false, features = ["std", "js"] }
k256 = "0.13"
leptos = "0.8"
leptos-use-interval-fn = { version = "0.20.1" }
leptos_axum = { version = "0.8", default-features = false, optional = true }
leptos_meta = "0.8"
leptos_router = "0.8"
log = "0.4"
multihash-codetable = { version = "0.2", features = ["blake2b"] }
num-traits = "0.2"
reqwest = { version = "0.13", features = ["json"] }
send_wrapper = "0.6"
serde = "1"
serde_json = "1"
strum = { version = "0.28", features = ["derive"] }
thiserror = "2"
tower-http = { version = "0.7", features = ["cors"], optional = true }
tower-service = "0.3"
url = { version = "2" }
uuid = { version = "1", features = ["v4", "js"] }
wasm-bindgen = "0.2"
# worker-macros must match worker, and the worker-build version used in CI must support this version.
worker = { version = "=0.9.0", features = ['http', 'axum'], optional = true }
worker-macros = { version = "=0.9.0", features = ['http'], optional = true }
[package.metadata.cargo-shear]
# Used only through `worker`'s re-exports; declared directly to pin it to `worker`'s version.
ignored = ["worker-macros"]
[dev-dependencies]
mockall = "0.15"
rusty-fork = "0.3"
tokio = { version = "1", features = ["macros", "rt"] }
[target.'cfg(target_family="wasm")'.dependencies]
getrandom0_2 = { package = "getrandom", version = "0.2", features = ["js"] }
getrandom0_3 = { package = "getrandom", version = "0.3", features = ["wasm_js"] }
getrandom0_4 = { package = "getrandom", version = "0.4", features = ["wasm_js"] }
[features]
hydrate = ["leptos/hydrate"]
ssr = [
"dep:tower-http",
"dep:axum",
"leptos/ssr",
"leptos_axum/wasm",
"leptos_meta/ssr",
"leptos_router/ssr",
"dep:worker",
"dep:worker-macros",
]
# https://doc.rust-lang.org/stable/cargo/guide/build-performance.html#reduce-amount-of-generated-debug-information
[profile.dev]
debug = "line-tables-only"
# Avoid generating any debug information for dependencies
[profile.dev.package."*"]
debug = false
[profile.release]
lto = true
opt-level = 's'