forked from paperclip-rs/paperclip
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
53 lines (49 loc) · 2.03 KB
/
Cargo.toml
File metadata and controls
53 lines (49 loc) · 2.03 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
[package]
name = "paperclip-core"
version = "0.4.1"
authors = ["Ravi Shankar <wafflespeanut@gmail.com>"]
edition = "2018"
description = "Core types and traits for paperclip OpenAPI tooling library"
documentation = "https://paperclip.waffles.space/paperclip_core"
license = "MIT OR Apache-2.0"
homepage = "https://github.com/wafflespeanut/paperclip"
repository = "https://github.com/wafflespeanut/paperclip"
[dependencies]
paperclip-macros = { path = "../macros", version = "0.5.0" }
actix-web2 = { version = "2", optional = true, default-features = false, package = "actix-web" }
actix-web3 = { version = "3", optional = true, default-features = false, package = "actix-web" }
actix-web4 = { version = "4.0.0-beta.12", optional = true, default-features = false, package = "actix-web" }
actix-multipart = { version = "0", optional = true }
actix-session = { version = "0", optional = true }
actix-files = {version = "0", optional = true}
chrono = { version = "0", optional = true }
heck = { version = "0.3", optional = true }
once_cell = "1.4"
log = { version = "0.4", optional = true }
mime = "0.3"
parking_lot = { version = ">=0.10, <0.13", features = ["serde"] }
pin-project = { version = "1.0", optional = true }
rust_decimal = { version = "1", optional = true }
regex = "1.3"
serde = { version = "1.0", features = ["derive", "rc"] }
serde_json = "1.0"
serde_yaml = "0.8"
url = { version = "2", optional = true }
uuid = { version = "0", optional = true }
thiserror = "1.0"
serde_qs = { version = "0", optional = true }
openapiv3 = { version = "0.4.0", optional = true }
indexmap = { version = "1.0", features = ["serde-1", "std"], optional = true }
[features]
# actix-web support
actix = ["actix4"]
actix2 = ["actix-base", "actix-web2"]
actix3 = ["actix-base", "actix-web3"]
actix4 = ["actix-base", "actix-web4"]
actix-base = ["v2", "pin-project"]
# Enable nightly if nightly compiler can be allowed
nightly = ["paperclip-macros/nightly"]
# OpenAPI support (v2 and codegen)
v2 = ["paperclip-macros/v2"]
v3 = ["v2", "openapiv3", "indexmap"]
codegen = ["v2", "heck", "log"]