summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-openapi/Cargo.toml
blob: b748da13174cea6d20c0f0a987c896415c5a5144 (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
41
42
43
44
45
46
47
48
49
[package]
name = "fatcat-openapi"
version = "0.4.1"
edition = "2018"
authors = ["Bryan Newbold <bnewbold@archive.org>"]
description = "Fatcat is an editable bibliographic database. This OpenAPI code-generated crate container HTTP API models, endpoints, and other auto-generated types useful for both client and server implementations of the catalog API."
homepage = "https://fatcat.wiki"
repository = "https://github.com/internetarchive/fatcat"
license = "CC0-1.0"

[features]
# Need to disable all openssl due to Xenial/Bionic dependency friction. Easiest
# way seems to be entirely disabling 'client' option, and removing
# 'hyper-openssl' below (which should be optional)
#client = ["serde_json", "serde_ignored", "hyper", "hyper-openssl", "uuid"]
default = ["server"]
server = ["serde_json", "serde_ignored", "hyper", "iron", "router", "bodyparser", "urlencoded", "uuid"]

[dependencies]
# Required by example server.
#
chrono = { version = "0.4", features = ["serde"] }
futures = "0.1"
hyper = {version = "0.10", optional = true}
#hyper-openssl = {version = "0.2", optional = true }
iron = {version = "0.6", optional = true}
swagger = "0.7"

# Not required by example server.
#
bodyparser = {version = "0.8", optional = true}
url = "1.5"
lazy_static = "1"
log = "0.4"
multipart = {version = "0.13", optional = true}
router = {version = "0.6", optional = true}
serde = "1.0"
serde_derive = "1.0"
serde_ignored = {version = "0.0.4", optional = true}
serde_json = {version = "1.0", optional = true}
urlencoded = {version = "0.6", optional = true}
uuid = {version = "0.5", optional = true, features = ["serde", "v4"]}
# ToDo: this should be updated to point at the official crate once
# https://github.com/RReverser/serde-xml-rs/pull/45 is accepted upstream


[dev-dependencies]
clap = "2.25"
error-chain = "0.11"