Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
102 lines (86 loc) · 2.85 KB
/
Copy pathCargo.toml
File metadata and controls
102 lines (86 loc) · 2.85 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
92
93
94
95
96
97
98
99
100
101
102
[package]
authors = ["Anthony Lukach <anthonylukach@gmail.com>"]
edition = "2021"
name = "source-data-proxy"
version = "2.5.1"
[lib]
crate-type = ["cdylib"]
# The cdylib depends on wasm-only crates (worker, wasm-bindgen, web-sys)
# that don't compile on native targets, so we disable `cargo test` for the lib.
test = false
[[test]]
name = "routing"
path = "tests/routing.rs"
[[test]]
name = "pagination"
path = "tests/pagination.rs"
[[test]]
name = "backend_auth"
path = "tests/backend_auth.rs"
[[test]]
name = "authz"
path = "tests/authz.rs"
[[test]]
name = "object_path"
path = "tests/object_path.rs"
[[test]]
name = "fixtures"
path = "tests/fixtures.rs"
[[test]]
name = "cache_control"
path = "tests/cache_control.rs"
[[test]]
name = "keys"
path = "tests/keys.rs"
[dependencies]
# Multistore
multistore = { version = "0.8.0", features = ["azure", "gcp"] }
multistore-oidc-provider = "0.8.0"
multistore-path-mapping = "0.8.0"
multistore-sts = "0.8.0"
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# HTTP
http = "1"
percent-encoding = "2"
# Hashing (HMAC-SHA256 client-IP hashing for analytics privacy)
hmac = "0.12"
sha2 = "0.10"
# Reading a platform IdP's token before verifying it (issuer, key id)
base64 = "0.22"
# Tracing
tracing = "0.1"
# Wasm-only dependencies (Cloudflare Workers runtime)
[target.'cfg(target_arch = "wasm32")'.dependencies]
# Pulled in transitively via object_store -> rand. getrandom doesn't support
# wasm32-unknown-unknown unless the `wasm_js` backend is enabled, so opt in here.
getrandom = { version = "0.4", features = ["wasm_js"] }
# object_store's GCS credential signing calls ring's SystemRandom, whose
# SecureRandom impl on wasm32-unknown-unknown is gated behind ring's
# `wasm32_unknown_unknown_js` feature (enables getrandom 0.2's js backend).
# ring is transitive (via object_store); this direct entry only turns the
# feature on for the wasm target.
ring = { version = "0.17", features = ["wasm32_unknown_unknown_js"] }
multistore-cf-workers = { version = "0.8.0", features = ["azure", "gcp"] }
# On wasm32-unknown-unknown reqwest selects its browser `fetch` backend by
# target arch (not a cargo feature), so the default TLS/backend features are
# unnecessary here. The `form` feature gates `.form()`, which the STS
# `post_form` call in FetchHttpExchange needs.
reqwest = { version = "0.13", default-features = false, features = ["form"] }
# Racing an issuer's key fetch against a timeout (`fetch_keys`); already in
# the tree via worker.
futures-util = { version = "0.3", default-features = false }
console_error_panic_hook = "0.1"
js-sys = "0.3"
wasm-bindgen = "0.2"
web-sys = { version = "0.3", features = [
"Headers",
"ReadableStream",
"Request",
"RequestInit",
"Response",
"ResponseInit",
] }
worker = { version = "=0.7.5", features = ["http"] }
worker-macros = { version = "=0.7.5", features = ["http"] }