mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-02-23 04:52:28 +00:00
dump codecov.io and redo badges
This commit is contained in:
parent
095686f390
commit
93cbc36046
7 changed files with 52 additions and 40 deletions
12
.codecov.yml
12
.codecov.yml
|
@ -1,12 +0,0 @@
|
||||||
codecov:
|
|
||||||
require_ci_to_pass: yes
|
|
||||||
|
|
||||||
coverage:
|
|
||||||
precision: 2
|
|
||||||
round: down
|
|
||||||
range: "0...100"
|
|
||||||
|
|
||||||
status:
|
|
||||||
project: no
|
|
||||||
patch: no
|
|
||||||
changes: no
|
|
|
@ -23,12 +23,13 @@ test-all:
|
||||||
stage: test
|
stage: test
|
||||||
image: msrd0/rust:alpine-tarpaulin
|
image: msrd0/rust:alpine-tarpaulin
|
||||||
before_script:
|
before_script:
|
||||||
- apk add --no-cache bash curl
|
|
||||||
- cargo -V
|
- cargo -V
|
||||||
script:
|
script:
|
||||||
- cargo test --workspace --all-features --doc
|
- cargo test --workspace --all-features --doc
|
||||||
- cargo tarpaulin --all --all-features --exclude-files 'cargo/*' --exclude-files 'example/*' --ignore-panics --ignore-tests --out Xml -v
|
- cargo tarpaulin --all --all-features --exclude-files 'cargo/*' --exclude-files 'gotham_restful_derive/*' --exclude-files 'example/*' --ignore-panics --ignore-tests --out Html -v
|
||||||
- wget -qO- https://codecov.io/bash | bash -s -- -y .codecov.yml -X gcov
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- tarpaulin-report.html
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- cargo/
|
- cargo/
|
||||||
|
|
36
README.md
36
README.md
|
@ -1,7 +1,27 @@
|
||||||
# gotham_restful
|
<div align="center">
|
||||||
|
<h1>gotham-restful</h1>
|
||||||
[](https://gitlab.com/msrd0/gotham-restful/commits/master)
|
</div>
|
||||||
[](https://codecov.io/gl/msrd0/gotham-restful)
|
<div align="center">
|
||||||
|
<a href="https://gitlab.com/msrd0/gotham-restful/-/commits/master">
|
||||||
|
<img alt="pipeline status" src="https://gitlab.com/msrd0/gotham-restful/badges/master/pipeline.svg"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://gitlab.com/msrd0/gotham-restful/-/commits/master">
|
||||||
|
<img alt="coverage report" src="https://gitlab.com/msrd0/gotham-restful/badges/master/coverage.svg"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://crates.io/crates/gotham_restful">
|
||||||
|
<img alt="crates.io" src="https://img.shields.io/crates/v/gotham_restful.svg"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://docs.rs/crate/gotham_restful">
|
||||||
|
<img alt="docs.rs" src="https://docs.rs/gotham_restful/badge.svg"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://www.rust-lang.org/en-US/">
|
||||||
|
<img alt="Build with Rust" src="https://img.shields.io/badge/Made%20with-Rust-orange.svg"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://blog.rust-lang.org/2019/12/19/Rust-1.40.0.html">
|
||||||
|
<img alt="Minimum Rust Version" src="https://img.shields.io/badge/rustc-1.40+-yellow.svg"/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<br/>
|
||||||
|
|
||||||
This crate is an extension to the popular [gotham web framework][gotham] for Rust. The idea is to
|
This crate is an extension to the popular [gotham web framework][gotham] for Rust. The idea is to
|
||||||
have several RESTful resources that can be added to the gotham router. This crate will take care
|
have several RESTful resources that can be added to the gotham router. This crate will take care
|
||||||
|
@ -12,14 +32,6 @@ resources.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
This crate targets stable rust, currently requiring rustc 1.40+. To use this crate, add the
|
|
||||||
following to your `Cargo.toml`:
|
|
||||||
|
|
||||||
```toml
|
|
||||||
[dependencies]
|
|
||||||
gotham_restful = "0.0.1"
|
|
||||||
```
|
|
||||||
|
|
||||||
A basic server with only one resource, handling a simple `GET` request, could look like this:
|
A basic server with only one resource, handling a simple `GET` request, could look like this:
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
|
|
27
README.tpl
27
README.tpl
|
@ -1,5 +1,26 @@
|
||||||
# {{crate}}
|
<div align="center">
|
||||||
|
<h1>gotham-restful</h1>
|
||||||
{{badges}}
|
</div>
|
||||||
|
<div align="center">
|
||||||
|
<a href="https://gitlab.com/msrd0/gotham-restful/-/commits/master">
|
||||||
|
<img alt="pipeline status" src="https://gitlab.com/msrd0/gotham-restful/badges/master/pipeline.svg"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://gitlab.com/msrd0/gotham-restful/-/commits/master">
|
||||||
|
<img alt="coverage report" src="https://gitlab.com/msrd0/gotham-restful/badges/master/coverage.svg"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://crates.io/crates/gotham_restful">
|
||||||
|
<img alt="crates.io" src="https://img.shields.io/crates/v/gotham_restful.svg"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://docs.rs/crate/gotham_restful">
|
||||||
|
<img alt="docs.rs" src="https://docs.rs/gotham_restful/badge.svg"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://www.rust-lang.org/en-US/">
|
||||||
|
<img alt="Build with Rust" src="https://img.shields.io/badge/Made%20with-Rust-orange.svg"/>
|
||||||
|
</a>
|
||||||
|
<a href="https://blog.rust-lang.org/2019/12/19/Rust-1.40.0.html">
|
||||||
|
<img alt="Minimum Rust Version" src="https://img.shields.io/badge/rustc-1.40+-yellow.svg"/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<br/>
|
||||||
|
|
||||||
{{readme}}
|
{{readme}}
|
||||||
|
|
|
@ -13,7 +13,6 @@ repository = "https://gitlab.com/msrd0/gotham-restful"
|
||||||
|
|
||||||
[badges]
|
[badges]
|
||||||
gitlab = { repository = "msrd0/gotham-restful", branch = "master" }
|
gitlab = { repository = "msrd0/gotham-restful", branch = "master" }
|
||||||
codecov = { repository = "msrd0/gotham-restful", branch = "master", service = "gitlab" }
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
base64 = { version = ">=0.10.1, <0.12", optional = true }
|
base64 = { version = ">=0.10.1, <0.12", optional = true }
|
||||||
|
|
|
@ -8,14 +8,6 @@ resources.
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
This crate targets stable rust, currently requiring rustc 1.40+. To use this crate, add the
|
|
||||||
following to your `Cargo.toml`:
|
|
||||||
|
|
||||||
```toml
|
|
||||||
[dependencies]
|
|
||||||
gotham_restful = "0.0.1"
|
|
||||||
```
|
|
||||||
|
|
||||||
A basic server with only one resource, handling a simple `GET` request, could look like this:
|
A basic server with only one resource, handling a simple `GET` request, could look like this:
|
||||||
|
|
||||||
```rust,no_run
|
```rust,no_run
|
||||||
|
|
|
@ -15,7 +15,6 @@ proc-macro = true
|
||||||
|
|
||||||
[badges]
|
[badges]
|
||||||
gitlab = { repository = "msrd0/gotham-restful", branch = "master" }
|
gitlab = { repository = "msrd0/gotham-restful", branch = "master" }
|
||||||
codecov = { repository = "msrd0/gotham-restful", branch = "master", service = "gitlab" }
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
heck = "0.3.1"
|
heck = "0.3.1"
|
||||||
|
|
Loading…
Add table
Reference in a new issue