-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
72 lines (61 loc) · 2.54 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
72
# -*- eval: (cargo-minor-mode 1) -*-
[workspace]
members = [".", "./derive", "./redoc"]
[package]
name = "gotham_restful"
version = "0.9.0"
authors = ["Dominic Meiser <git@msrd0.de>"]
edition = "2021"
rust-version = "1.73.0"
description = "RESTful additions for the gotham web framework"
keywords = ["gotham", "rest", "restful", "web", "http"]
categories = ["web-programming", "web-programming::http-server"]
license = "Apache-2.0"
readme = "crates-io.md"
repository = "https://github.com/msrd0/gotham_restful"
include = ["/src/**/*.rs", "/LICENSE", "/crates-io.md"]
[dependencies]
futures-core = "0.3.19"
futures-util = "0.3.19"
gotham = { version = "0.7.4", features = ["derive"], default-features = false }
gotham_restful_derive = { version = "0.9.0", path = "./derive" }
log = "0.4.12"
serde = { version = "1.0.186", features = ["derive"] }
serde_json = "1.0"
thiserror = "2.0"
# non-feature optional dependencies
base64 = { version = "0.22", optional = true }
gotham_middleware_diesel = { version = "0.5.1", optional = true }
gotham_restful_redoc = { version = "0.2.8", path = "./redoc", optional = true }
jsonwebtoken = { version = "9.3", default-features = false, optional = true }
lazy-regex = { version = "3.0", optional = true }
openapi_type = { version = "0.5.0", optional = true }
parking_lot = { version = "0.12", optional = true }
sha2 = { version = "0.10", optional = true }
[dev-dependencies]
diesel = { version = "2.1", features = ["postgres"] }
futures-executor = "0.3.19"
gotham = { version = "0.7.4", features = ["testing"], default-features = false }
paste = "1.0"
pretty_assertions = "1.0"
simple_logger = "5.0"
tokio = { version = "1.17", features = ["time"], default-features = false }
trybuild = { version = "=1.0.96", features = ["diff"] }
[features]
default = ["cors", "errorlog", "without-openapi"]
full = ["auth", "cors", "database", "errorlog", "openapi"]
auth = ["gotham_restful_derive/auth", "dep:base64", "dep:jsonwebtoken"]
cors = []
database = ["gotham_restful_derive/database", "dep:gotham_middleware_diesel"]
errorlog = []
# These features are exclusive - https://github.com/msrd0/gotham_restful/issues/4
without-openapi = []
openapi = ["gotham_restful_derive/openapi", "dep:gotham_restful_redoc", "dep:base64", "dep:lazy-regex", "dep:openapi_type", "dep:parking_lot", "dep:sha2"]
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(gotham_restful_deny_warnings)'] }
[package.metadata.docs.rs]
no-default-features = true
features = ["full"]
[patch.crates-io]
gotham_restful = { path = "." }
gotham_restful_derive = { path = "./derive" }