forked from 3scale/threescale-wasm-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
71 lines (65 loc) · 2.53 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[package]
name = "threescale-wasm-auth"
version = "0.1.0"
authors = ["Alejandro Martinez Ruiz <alex@flawedcode.org>"]
license = "Apache-2.0"
description = "Proxy-WASM filter for 3scale integration"
keywords = ["proxy-wasm", "webassembly", "filter", "proxy", "api-management", "3scale"]
categories = ["api"]
repository = "https://github.com/3scale/threescale-wasm-auth"
edition = "2018"
resolver = "2"
publish = false
readme = "README.md"
exclude = [
".gitignore",
"bors.toml",
"/ci/**",
"/.github/**",
]
[features]
default = ["json_config", "prng_pcg32"]
json_config = []
# YAML support seems to be buggy within serde_yaml and the unmaintained yaml-rust library - so do not choose unless testing/developing
yaml_config = ["serde_yaml"]
# You need to add this one manually to really pick up yaml_config
danger = []
prng_pcg32 = ["rand_pcg"]
prng_xoshiro128 = ["rand_xoshiro"]
prng_xorshift = ["rand_xorshift"]
[patch.crates-io]
url = { git = "https://github.com/3scale-rs/rust-url", branch = "3scale" }
percent-encoding = { git = "https://github.com/3scale-rs/rust-url", branch = "3scale" }
threescalers = { git = "https://github.com/3scale-rs/threescalers", tag = "v0.8.0" }
[dependencies]
proxy-wasm = { git = "https://github.com/3scale/proxy-wasm-rust-sdk", branch = "3scale" }
log = "^0.4"
serde = { version = "^1", features = ["derive"] }
threescalers = { git = "https://github.com/3scale-rs/threescalers", tag = "v0.8.0", features = ["std", "xml-response", "rest-mappings", "rest-mappings-serde"] }
straitjacket = { git = "https://github.com/3scale-rs/straitjacket", branch = "master" }
anyhow = "^1"
thiserror = "^1"
url = { git = "https://github.com/3scale-rs/rust-url", branch = "3scale", features = ["serde"] }
regex = { version = "^1", default-features = false, features = ["std", "perf"] }
base64 = "^0.13"
prost = { version = "^0.8", features = ["prost-derive"] }
prost-types = { version = "^0.8" }
serde_json = { version = "^1" }
serde_yaml = { version = "^0.8", optional = true }
rand = { version = "^0.8", default-features = false }
rand_seeder = { version = "^0.2" }
rand_jitter = { version = "^0.3" }
# PRNG implementation
rand_xoshiro = { version = "^0.6", optional = true }
rand_xorshift = { version = "^0.3", optional = true }
rand_pcg = { version = "^0.3", optional = true }
[dev-dependencies]
serde_yaml = "^0.8"
[lib]
# rlib included to be able to use #[test] without compiler and linker issues
crate-type = ["cdylib", "rlib"]
[profile.release]
opt-level = 3
debug = true # for wasm-snip to remove panicking infra
lto = true
codegen-units = 1