2019-09-26 17:24:40 +02:00
|
|
|
# -*- eval: (cargo-minor-mode 1) -*-
|
|
|
|
|
2019-10-02 10:59:25 +02:00
|
|
|
[workspace]
|
2021-03-07 19:05:25 +01:00
|
|
|
members = [".", "./derive", "./example", "./openapi_type", "./openapi_type_derive"]
|
2020-05-05 23:18:05 +02:00
|
|
|
|
|
|
|
[package]
|
|
|
|
name = "gotham_restful"
|
2021-02-28 01:59:59 +01:00
|
|
|
version = "0.3.0-dev"
|
2020-05-05 23:18:05 +02:00
|
|
|
authors = ["Dominic Meiser <git@msrd0.de>"]
|
|
|
|
edition = "2018"
|
|
|
|
description = "RESTful additions for the gotham web framework"
|
|
|
|
keywords = ["gotham", "rest", "restful", "web", "http"]
|
2021-01-01 15:56:47 +01:00
|
|
|
categories = ["web-programming", "web-programming::http-server"]
|
|
|
|
license = "Apache-2.0"
|
2020-05-05 23:18:05 +02:00
|
|
|
readme = "README.md"
|
|
|
|
repository = "https://gitlab.com/msrd0/gotham-restful"
|
2021-01-01 15:56:47 +01:00
|
|
|
include = ["src/**/*", "LICENSE", "README.md", "CHANGELOG.md"]
|
2020-05-05 23:18:05 +02:00
|
|
|
|
|
|
|
[badges]
|
|
|
|
gitlab = { repository = "msrd0/gotham-restful", branch = "master" }
|
|
|
|
|
|
|
|
[dependencies]
|
2020-11-04 19:34:25 +01:00
|
|
|
futures-core = "0.3.7"
|
|
|
|
futures-util = "0.3.7"
|
2021-02-28 01:59:59 +01:00
|
|
|
gotham = { git = "https://github.com/gotham-rs/gotham", default-features = false }
|
2020-09-15 15:10:41 +02:00
|
|
|
gotham_derive = "0.5.0"
|
2021-03-09 19:46:11 +01:00
|
|
|
gotham_restful_derive = "0.3.0-dev"
|
2020-05-05 23:18:05 +02:00
|
|
|
log = "0.4.8"
|
|
|
|
mime = "0.3.16"
|
2020-05-20 23:55:19 +02:00
|
|
|
serde = { version = "1.0.110", features = ["derive"] }
|
2020-10-02 13:37:33 +02:00
|
|
|
serde_json = "1.0.58"
|
2021-01-26 17:49:11 +00:00
|
|
|
thiserror = "1.0"
|
2021-02-25 00:37:55 +01:00
|
|
|
|
|
|
|
# non-feature optional dependencies
|
|
|
|
base64 = { version = "0.13.0", optional = true }
|
2021-02-28 01:59:59 +01:00
|
|
|
cookie = { version = "0.15", optional = true }
|
2021-03-09 19:46:11 +01:00
|
|
|
gotham_middleware_diesel = { git = "https://github.com/gotham-rs/gotham", optional = true }
|
2021-02-25 00:37:55 +01:00
|
|
|
indexmap = { version = "1.3.2", optional = true }
|
|
|
|
indoc = { version = "1.0", optional = true }
|
|
|
|
jsonwebtoken = { version = "7.1.0", optional = true }
|
|
|
|
once_cell = { version = "1.5", optional = true }
|
2021-03-03 23:44:53 +01:00
|
|
|
openapiv3 = { version = "=0.3.2", optional = true }
|
2021-03-09 19:46:11 +01:00
|
|
|
openapi_type = { version = "0.1.0-dev", optional = true }
|
2021-02-25 00:37:55 +01:00
|
|
|
regex = { version = "1.4", optional = true }
|
|
|
|
sha2 = { version = "0.9.3", optional = true }
|
|
|
|
|
2020-05-05 23:18:05 +02:00
|
|
|
[dev-dependencies]
|
|
|
|
diesel = { version = "1.4.4", features = ["postgres"] }
|
2020-05-20 23:55:19 +02:00
|
|
|
futures-executor = "0.3.5"
|
2020-09-15 15:10:41 +02:00
|
|
|
paste = "1.0"
|
2021-01-18 00:05:30 +00:00
|
|
|
pretty_env_logger = "0.4"
|
2021-02-28 01:59:59 +01:00
|
|
|
tokio = { version = "1.0", features = ["time"], default-features = false }
|
2020-05-20 19:50:17 +02:00
|
|
|
thiserror = "1.0.18"
|
2020-05-20 23:55:19 +02:00
|
|
|
trybuild = "1.0.27"
|
2020-05-05 23:18:05 +02:00
|
|
|
|
|
|
|
[features]
|
2021-01-14 18:55:44 +01:00
|
|
|
default = ["cors", "errorlog", "without-openapi"]
|
2021-03-09 19:46:11 +01:00
|
|
|
full = ["auth", "cors", "database", "errorlog", "openapi"]
|
2021-01-14 18:55:44 +01:00
|
|
|
|
2020-05-05 23:18:05 +02:00
|
|
|
auth = ["gotham_restful_derive/auth", "base64", "cookie", "jsonwebtoken"]
|
2021-01-01 16:44:55 +01:00
|
|
|
cors = []
|
2020-05-05 23:18:05 +02:00
|
|
|
database = ["gotham_restful_derive/database", "gotham_middleware_diesel"]
|
2021-01-14 18:55:44 +01:00
|
|
|
errorlog = []
|
|
|
|
|
|
|
|
# These features are exclusive - https://gitlab.com/msrd0/gotham-restful/-/issues/4
|
|
|
|
without-openapi = []
|
2021-03-09 19:46:11 +01:00
|
|
|
openapi = ["gotham_restful_derive/openapi", "base64", "indexmap", "indoc", "once_cell", "openapiv3", "openapi_type", "regex", "sha2"]
|
2020-05-05 23:18:05 +02:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
2021-01-15 17:33:40 +01:00
|
|
|
no-default-features = true
|
|
|
|
features = ["full"]
|
2019-10-20 17:42:33 +02:00
|
|
|
|
|
|
|
[patch.crates-io]
|
2020-05-05 23:18:05 +02:00
|
|
|
gotham_restful = { path = "." }
|
|
|
|
gotham_restful_derive = { path = "./derive" }
|
2021-03-07 19:05:25 +01:00
|
|
|
openapi_type = { path = "./openapi_type" }
|
|
|
|
openapi_type_derive = { path = "./openapi_type_derive" }
|