generated from unleashed/rust-template
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Cargo.toml
67 lines (62 loc) · 2.18 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
[package]
name = "threescale-wasm-auth"
version = "0.1.0"
authors = ["Alejandro Martinez Ruiz <[email protected]>"]
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"
rust = "1.60"
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"]
[dependencies]
proxy-wasm = { git = "https://github.com/3scale/proxy-wasm-rust-sdk", branch = "3scale" }
log = "^0.4"
serde = { version = "^1", features = ["derive"] }
threescalers = { version = "^0.8", features = ["std", "xml-response", "rest-mappings", "rest-mappings-serde"]}
straitjacket = { git = "https://github.com/3scale-rs/straitjacket", tag = "v0.2.0" }
anyhow = "^1"
thiserror = "^1"
url = { version = "^2.4", features = ["serde"] }
regex = { version = "^1", default-features = false, features = ["std", "perf"] }
base64 = "^0.21"
prost = { version = "^0.11", features = ["prost-derive"] }
prost-types = { version = "^0.11" }
serde_json = { version = "^1" }
serde_yaml = { version = "^0.9", 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.9"
[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