1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-02-23 04:52:28 +00:00
This commit is contained in:
Dominic 2019-10-20 17:42:33 +02:00
parent 11aa24f6ce
commit 78be60b1a4
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
12 changed files with 29 additions and 5 deletions

View file

@ -37,3 +37,18 @@ readme:
script: script:
- cargo readme -r gotham_restful -t ../README.tpl >README.md.new - cargo readme -r gotham_restful -t ../README.tpl >README.md.new
- diff README.md README.md.new - diff README.md README.md.new
publish:
stage: publish
image: msrd0/rust:alpine
before_script:
- cargo -V
- cargo login $CRATES_IO_TOKEN
script:
- cd gotham_restful_derive
- cargo publish
- cd ../gotham_restful
- cargo publish
- cd ..
only:
- tags

View file

@ -6,3 +6,7 @@ members = [
"gotham_restful_derive", "gotham_restful_derive",
"example" "example"
] ]
[patch.crates-io]
gotham_restful = { path = "./gotham_restful" }
gotham_restful_derive = { path = "./gotham_restful_derive" }

View file

@ -17,7 +17,7 @@ gitlab = { repository = "msrd0/gotham-restful", branch = "master" }
fake = "2.2" fake = "2.2"
gotham = "0.4" gotham = "0.4"
gotham_derive = "0.4" gotham_derive = "0.4"
gotham_restful = { path = "../gotham_restful", features = ["openapi"] } gotham_restful = { version = "0.0.1", features = ["openapi"] }
hyper = "0.12" hyper = "0.12"
log = "0.4" log = "0.4"
log4rs = { version = "0.8", features = ["console_appender"], default-features = false } log4rs = { version = "0.8", features = ["console_appender"], default-features = false }

View file

@ -9,7 +9,6 @@ description = "RESTful additions for Gotham"
keywords = ["gotham", "rest", "restful"] keywords = ["gotham", "rest", "restful"]
license = "EPL-2.0 OR Apache-2.0" license = "EPL-2.0 OR Apache-2.0"
readme = "../README.md" readme = "../README.md"
include = ["src/**/*", "Cargo.toml", "../LICENSE"]
repository = "https://gitlab.com/msrd0/gotham-restful" repository = "https://gitlab.com/msrd0/gotham-restful"
[badges] [badges]
@ -22,7 +21,7 @@ failure = "0.1"
futures = "0.1" futures = "0.1"
gotham = "0.4" gotham = "0.4"
gotham_derive = "0.4" gotham_derive = "0.4"
gotham_restful_derive = { path = "../gotham_restful_derive" } gotham_restful_derive = { version = "0.0.1" }
hyper = "0.12" hyper = "0.12"
indexmap = { version = "1.0", optional = true } indexmap = { version = "1.0", optional = true }
log = { version = "0.4", optional = true } log = { version = "0.4", optional = true }

View file

@ -0,0 +1 @@
../LICENSE-Apache

1
gotham_restful/LICENSE-EPL Symbolic link
View file

@ -0,0 +1 @@
../LICENSE-EPL

1
gotham_restful/LICENSE.md Symbolic link
View file

@ -0,0 +1 @@
../LICENSE.md

View file

@ -1,5 +1,6 @@
#[cfg(feature = "openapi")] #[cfg(feature = "openapi")]
use crate::{OpenapiType, result::ResourceError}; use crate::OpenapiType;
use crate::result::ResourceError;
use hyper::Chunk; use hyper::Chunk;
use mime::{Mime, APPLICATION_JSON}; use mime::{Mime, APPLICATION_JSON};

View file

@ -9,7 +9,6 @@ description = "RESTful additions for Gotham - Derive"
keywords = ["gotham", "rest", "restful", "derive"] keywords = ["gotham", "rest", "restful", "derive"]
license = "EPL-2.0 OR Apache-2.0" license = "EPL-2.0 OR Apache-2.0"
readme = "../README.md" readme = "../README.md"
include = ["src/**/*", "Cargo.toml", "../LICENSE"]
repository = "https://gitlab.com/msrd0/gotham-restful" repository = "https://gitlab.com/msrd0/gotham-restful"
[lib] [lib]

View file

@ -0,0 +1 @@
../LICENSE-Apache

View file

@ -0,0 +1 @@
../LICENSE-EPL

View file

@ -0,0 +1 @@
../LICENSE.md