-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
55 lines (46 loc) · 1.76 KB
/
Cargo.toml
File metadata and controls
55 lines (46 loc) · 1.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
[package]
name = "solana-web3-cf"
version = "0.1.0"
edition = "2021"
description = "Solana Web3 on Cloudflare Worker."
license = "MIT"
repository = "https://github.com/gist-rs/solana-web3-cf"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = ["console_error_panic_hook"]
[dependencies]
# The `console_error_panic_hook` crate provides better debugging of panics by
# logging them with `console.error`. This is great for development, but requires
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
# code size when deploying.
console_error_panic_hook = { version = "0.1.7", optional = true }
cfg-if = "1.0.0"
worker = "0.0.18"
serde = { version = "1.0", features = ["derive"] }
serde_json = { version ="1.0", default-features = false }
cookie = { version = "0.17", features = ["percent-encode"] }
nacl = "0.5.3"
bs58 = "0.5.0"
anyhow = "1.0.71"
reqwest = { version = "0.11" , features = ["json"] }
getrandom = { version = "0.2", features = ["js"] }
solana-web3-wasm = { git = "https://github.com/avareum/solana-web3-wasm", rev="d6675d6", features = ["nft_info"]}
thiserror = "1.0"
urlencoding = "2.1.2"
serde_qs = "0.12.0"
percent-encoding = "2.3.0"
# No `to_bytes`, will use forked
# fast_qr = { version = "0.9.0", features = ["image"]}
fast_qr = { git = "https://github.com/katopz/fast_qr.git", features = ["image"]}
[dev-dependencies]
wasm-bindgen-test = "0.3"
dotenv = "0.15"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
tokio = { version = "1.28.2", features = ["full"] }
[profile.release]
opt-level = "z" # Optimize for size.
strip = true # Automatically strip symbols from the binary.
lto = true # Enable Link Time Optimization (LTO)
codegen-units = 1 # Reduce Parallel Code Generation Units to Increase Optimization
panic = "abort"