Skip to content

Commit

Permalink
Version v1.17.0 (#200)
Browse files Browse the repository at this point in the history
We also add a GitHub action to check if all jobs have succeeded. This
lets us set just this one job to required in GitHub settings.
  • Loading branch information
paholg authored Sep 15, 2023
1 parent bbac3bf commit b237efb
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 28 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
50 changes: 25 additions & 25 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"Andre Bogus <[email protected]>"
]
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 <[email protected]>",
"Andre Bogus <[email protected]>",
]
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"]
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 5 additions & 1 deletion src/type_operators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit b237efb

Please sign in to comment.