summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-openapi/Cargo.toml.codegen
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-06-13 15:00:46 -0700
committerBryan Newbold <bnewbold@archive.org>2020-06-13 15:00:46 -0700
commit4575478d953fae3068959feef80517cafc826fea (patch)
treec0e888c56e88df69d8cc2811e8f51069e1e33fbe /rust/fatcat-openapi/Cargo.toml.codegen
parent94f72165f5b030c3189453249e05fab0dcf62d9b (diff)
downloadfatcat-cli-4575478d953fae3068959feef80517cafc826fea.tar.gz
fatcat-cli-4575478d953fae3068959feef80517cafc826fea.zip
copy codegen rust openapi client from fatcat repo
Diffstat (limited to 'rust/fatcat-openapi/Cargo.toml.codegen')
-rw-r--r--rust/fatcat-openapi/Cargo.toml.codegen75
1 files changed, 75 insertions, 0 deletions
diff --git a/rust/fatcat-openapi/Cargo.toml.codegen b/rust/fatcat-openapi/Cargo.toml.codegen
new file mode 100644
index 0000000..2370479
--- /dev/null
+++ b/rust/fatcat-openapi/Cargo.toml.codegen
@@ -0,0 +1,75 @@
+[package]
+name = "fatcat-openapi"
+version = "0.3.1"
+authors = ["webservices@archive.org"]
+description = "Fatcat is a scalable, versioned, API-oriented catalog of bibliographic entities and file metadata. "
+license = "Unlicense"
+edition = "2018"
+
+[features]
+default = ["client", "server"]
+client = [
+ "hyper", "hyper-openssl", "native-tls", "openssl", "url"
+]
+server = [
+ "serde_ignored", "hyper", "regex", "percent-encoding", "url", "lazy_static"
+]
+conversion = ["frunk", "frunk_derives", "frunk_core", "frunk-enum-core", "frunk-enum-derive"]
+
+[target.'cfg(any(target_os = "macos", target_os = "windows", target_os = "ios"))'.dependencies]
+native-tls = { version = "0.2", optional = true }
+
+[target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dependencies]
+hyper-openssl = { version = "0.7.1", optional = true }
+openssl = {version = "0.10", optional = true }
+
+[dependencies]
+# Common
+chrono = { version = "0.4", features = ["serde"] }
+futures = "0.1"
+swagger = "4.0"
+log = "0.4.0"
+mime = "0.3"
+
+serde = { version = "1.0", features = ["derive"]}
+serde_json = "1.0"
+
+# Crates included if required by the API definition
+
+# Common between server and client features
+hyper = {version = "0.12", optional = true}
+serde_ignored = {version = "0.0.4", optional = true}
+url = {version = "1.5", optional = true}
+
+# Client-specific
+
+# Server, and client callback-specific
+lazy_static = { version = "1.4", optional = true }
+percent-encoding = {version = "1.0.0", optional = true}
+regex = {version = "0.2", optional = true}
+
+# Conversion
+frunk = { version = "0.3.0", optional = true }
+frunk_derives = { version = "0.3.0", optional = true }
+frunk_core = { version = "0.3.0", optional = true }
+frunk-enum-derive = { version = "0.2.0", optional = true }
+frunk-enum-core = { version = "0.2.0", optional = true }
+
+[dev-dependencies]
+clap = "2.25"
+error-chain = "0.12"
+env_logger = "0.6"
+tokio = "0.1.17"
+uuid = {version = "0.7", features = ["serde", "v4"]}
+
+[target.'cfg(not(any(target_os = "macos", target_os = "windows", target_os = "ios")))'.dev-dependencies]
+tokio-openssl = "0.3"
+openssl = "0.10"
+
+[[example]]
+name = "client"
+required-features = ["client"]
+
+[[example]]
+name = "server"
+required-features = ["server"]