diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 7d98a7e9e..4ee1472c7 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -9,6 +9,21 @@ on: name: CI jobs: + all-succeeded: + name: All Succeeded + if: always() + runs-on: ubuntu-latest + needs: + - test-linux + - test-non-linux + - lint + + steps: + - name: Check if all jubs succeeded + uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }} + test-linux: name: Test Linux runs-on: ubuntu-latest @@ -67,7 +82,7 @@ jobs: - run: cargo test --verbose --features "strict" ${{ matrix.mb_const_generics }} - run: cargo doc --features "strict" ${{ matrix.mb_const_generics }} - clippy: + lint: name: Lint runs-on: ubuntu-latest steps: diff --git a/Cargo.toml b/Cargo.toml index ab4542ba7..84bfeb743 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,40 +1,40 @@ [package] - name = "typenum" - build = "build/main.rs" - version = "1.16.0" # remember to update html_root_url - authors = [ - "Paho Lurie-Gregg ", - "Andre Bogus " - ] - documentation = "https://docs.rs/typenum" - repository = "https://github.com/paholg/typenum" - readme = "README.md" - license = "MIT OR Apache-2.0" - description = """Typenum is a Rust library for type-level numbers evaluated at +name = "typenum" +build = "build/main.rs" +version = "1.17.0" # remember to update html_root_url +authors = [ + "Paho Lurie-Gregg ", + "Andre Bogus ", +] +documentation = "https://docs.rs/typenum" +repository = "https://github.com/paholg/typenum" +readme = "README.md" +license = "MIT OR Apache-2.0" +description = """Typenum is a Rust library for type-level numbers evaluated at compile time. It currently supports bits, unsigned integers, and signed integers. It also provides a type-level array of type-level numbers, but its implementation is incomplete.""" - categories = ["no-std"] - edition = "2018" - rust-version = "1.37.0" +categories = ["no-std"] +edition = "2018" +rust-version = "1.37.0" [dependencies] scale-info = { version = "1.0", default-features = false, optional = true } [lib] - name = "typenum" +name = "typenum" [features] - no_std = [] # Deprecated - i128 = [] - strict = [] - force_unix_path_separator = [] # Deprecated - const-generics = [] - scale_info = ["scale-info/derive"] +no_std = [] # Deprecated +i128 = [] +strict = [] +force_unix_path_separator = [] # Deprecated +const-generics = [] +scale_info = ["scale-info/derive"] [package.metadata.docs.rs] - features = ["i128", "const-generics"] - rustdoc-args = ["--cfg", "docsrs"] +features = ["i128", "const-generics"] +rustdoc-args = ["--cfg", "docsrs"] [package.metadata.playground] - features = ["i128", "const-generics"] +features = ["i128", "const-generics"] diff --git a/src/lib.rs b/src/lib.rs index 12862e0d6..49fb4bfad 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -59,7 +59,7 @@ ) )] #![cfg_attr(feature = "cargo-clippy", deny(clippy::missing_inline_in_public_items))] -#![doc(html_root_url = "https://docs.rs/typenum/1.16.0")] +#![doc(html_root_url = "https://docs.rs/typenum/1.17.0")] #![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg))] // For debugging macros: diff --git a/src/type_operators.rs b/src/type_operators.rs index c4e859a69..7e852731d 100644 --- a/src/type_operators.rs +++ b/src/type_operators.rs @@ -232,7 +232,11 @@ macro_rules! impl_pow_i { impl_pow_i!(u8, u16, u32, u64, usize, i8, i16, i32, i64, isize); #[cfg(feature = "i128")] -impl_pow_i!(#[cfg_attr(docsrs, doc(cfg(feature = "i128")))] u128, i128); +impl_pow_i!( + #[cfg_attr(docsrs, doc(cfg(feature = "i128")))] + u128, + i128 +); #[test] fn pow_test() {