diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c54519da..b98c9b27 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -23,8 +23,10 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v1 + name: Checkout - uses: actions-rs/toolchain@v1 + name: Verify Rust Toolchain with: profile: minimal toolchain: ${{ matrix.rust }} @@ -32,21 +34,31 @@ jobs: components: rustfmt, clippy - uses: actions-rs/cargo@v1 + name: Clippy Lint with: command: clippy args: --all-targets --all-features -- -D warnings - uses: actions-rs/cargo@v1 + name: Build with: command: build args: --verbose --all-features - uses: actions-rs/cargo@v1 + name: Unit Tests with: command: test args: --all-features - uses: actions-rs/cargo@v1 + name: Format Check with: command: fmt args: --all -- --check + + - uses: actions-rs/cargo@v1 + name: Build Documentation + with: + command: doc + args: --no-deps --all-features diff --git a/CHANGELOG.md b/CHANGELOG.md index 99375170..7e8a93c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.4.1 (2019-11-06) + +- Fix documentation build on 1.40 Nightly + ## 0.4.0 (2019-11-06) There are no new feature except for some breaking changes to correct some errors. diff --git a/Cargo.toml b/Cargo.toml index b03f429f..1adbd4c8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "biscuit" -version = "0.4.0" +version = "0.4.1" edition = "2018" authors = ["Yong Wen Chua ", "Vincent Prouillet "] license = "MIT" diff --git a/README.md b/README.md index 6bab0bd9..f520d140 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ This was based off [`Keats/rust-jwt`](https://github.com/Keats/rust-jwt). Add the following to Cargo.toml: ```toml -biscuit = "0.4.0" +biscuit = "0.4.1" ``` To use the latest `master` branch, for example: diff --git a/src/helpers/validation.rs b/src/helpers/validation.rs index 04258edb..4f5553c8 100644 --- a/src/helpers/validation.rs +++ b/src/helpers/validation.rs @@ -2,14 +2,14 @@ /// Defines whether a claim is validated or not /// /// The generic type T is used as the "options" for validating claims and is -/// specific to each claim being validated. Refer to [`biscuit::ValidationOptions`] +/// specific to each claim being validated. Refer to [`crate::ValidationOptions`] /// for the specifics of each claim. pub enum Validation { /// This claim is not validated Ignored, /// Validate this claim with type T. - /// Refer to [`biscuit::ValidationOptions`] for the specifics of each claim. + /// Refer to [`crate::ValidationOptions`] for the specifics of each claim. Validate(T), } diff --git a/src/lib.rs b/src/lib.rs index b7291600..3a498780 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,7 +17,7 @@ //! Add the following to Cargo.toml: //! //! ```toml -//! biscuit = "0.4.0" +//! biscuit = "0.4.1" //! ``` //! //! To use the latest `master` branch, for example: