aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
blob: e1442c9c851426fd74a9248eb4423c797bd346e9 (plain)
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
[package]
name = "sputnik"
version = "0.3.6"
authors = ["Martin Fischer <martin@push-f.com>"]
license = "MIT"
description = "Extends the types from the http crate with methods to deal with cookies/content-types (and optionally adds deserialization methods to hyper::Body)."
repository = "https://git.push-f.com/sputnik"
edition = "2018"
categories = ["web-programming::http-server"]
keywords = ["web", "cookie", "hyper", "hmac"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
hyper_body = ["hyper", "async-trait"]
hyper_body_json = ["serde_json", "hyper_body"]
security = ["base64", "hmac", "rand", "sha2"]

[dependencies]
http = "0.2"
cookie = { version = "0.15", features = ["percent-encode"] }
serde = { version = "1.0", features = ["derive"] }
serde_urlencoded = "0.7.0"
httpdate = "0.3.2"
mime = "0.3"
time = "0.2"
thiserror = "1.0"

hyper = { version = "0.14", optional = true }
async-trait = { version = "0.1", optional = true }
serde_json = { version = "1.0", optional = true }

base64 = { version = "0.13", optional = true }
hmac = { version = "0.10", optional = true }
rand = { version = "0.8", optional = true }
sha2 = { version = "0.9", optional = true }

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]