diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b34f3ea..e1a7e12 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ on: env: CARGO_TERM_COLOR: always - MSRV: '1.87' + MSRV: '1.88' jobs: lint: @@ -67,7 +67,7 @@ jobs: timeout-minutes: 30 strategy: matrix: - rust-version: [ '1.87', 'stable' ] + rust-version: [ '1.88', 'stable' ] steps: - uses: actions/checkout@v4 - name: Cache Cargo registry diff --git a/Cargo.toml b/Cargo.toml index cb6c4b9..11f2113 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ categories = ["mathematics", "science", "no-std"] license = "MIT OR Apache-2.0" autobenches = false exclude = ["examples/*", "benchmark/*"] -rust-version = "1.87" +rust-version = "1.88" [lib] bench = false @@ -53,9 +53,9 @@ itertools = { version = "0.14.0" } [features] default = ["std"] -std = [] +std = ["num-integer/std", "num-traits/std"] -numtraits = ["num-traits", "bnum/numtraits", "num-integer"] +numtraits = ["num-traits/libm", "bnum/numtraits", "num-integer"] rand = ["dep:rand"] zeroize = ["dep:zeroize"] @@ -93,4 +93,3 @@ rustdoc-args = ["--cfg", "docsrs"] [[test]] name = "tests" required-features = ["test-util"] - diff --git a/README.md b/README.md index 33f93a9..b4bca14 100644 --- a/README.md +++ b/README.md @@ -332,7 +332,7 @@ cargo test --all-features ## Minimum Supported Rust Version -The current Minimum Supported Rust Version (MSRV) is `1.87.0`. +The current Minimum Supported Rust Version (MSRV) is `1.88.0`. ## Documentation diff --git a/src/bint/convert.rs b/src/bint/convert.rs index 4daf4a8..bc802c6 100644 --- a/src/bint/convert.rs +++ b/src/bint/convert.rs @@ -1,5 +1,5 @@ pub(crate) mod from_bytes; pub(crate) mod from_str; -pub(crate) mod utils; pub(crate) mod to_bytes; pub(crate) mod to_str; +pub(crate) mod utils; diff --git a/src/bint/convert/utils.rs b/src/bint/convert/utils.rs index 37a7ea3..3cff4ed 100644 --- a/src/bint/convert/utils.rs +++ b/src/bint/convert/utils.rs @@ -25,4 +25,4 @@ macro_rules! digits_from_int_impl { }}; } -pub(crate) use digits_from_int_impl; \ No newline at end of file +pub(crate) use digits_from_int_impl; diff --git a/tests/int/common.rs b/tests/int/common.rs index bf8d8cf..094f219 100644 --- a/tests/int/common.rs +++ b/tests/int/common.rs @@ -1,4 +1,4 @@ pub(crate) mod from; // Test skeleton -// mod _skeleton; \ No newline at end of file +// mod _skeleton; diff --git a/tests/int/common/from.rs b/tests/int/common/from.rs index 0ab19af..43b0e4f 100644 --- a/tests/int/common/from.rs +++ b/tests/int/common/from.rs @@ -1 +1 @@ -pub(crate) mod int; \ No newline at end of file +pub(crate) mod int; diff --git a/tests/int/common/from/int.rs b/tests/int/common/from/int.rs index 6b66710..307438c 100644 --- a/tests/int/common/from/int.rs +++ b/tests/int/common/from/int.rs @@ -9,7 +9,7 @@ macro_rules! test_impl { mod $bint { use rstest::*; use fastnum::*; - + super::test_impl!(COMMON:: $bits, $bint, $BInt, THIS); super::test_impl!(UNSIGNED:: $bits, $bint, $BInt, THIS); } @@ -18,7 +18,7 @@ macro_rules! test_impl { mod $bint { use rstest::*; use fastnum::*; - + super::test_impl!(COMMON:: $bits, $bint, $BInt, THIS); super::test_impl!(SIGNED:: $bits, $bint, $BInt, THIS); } @@ -32,8 +32,8 @@ macro_rules! test_impl { (SIGNED:: 512, $bint: ident, $BInt: ident, THIS) => { super::test_impl!(SIGNED:: 256, $bint, $BInt); }; - - + + (COMMON:: 256, $bint: ident, $BInt: ident, THIS) => { super::test_impl!(COMMON:: 256, $bint, $BInt); }; @@ -52,7 +52,7 @@ macro_rules! test_impl { (SIGNED:: 256, $bint: ident, $BInt: ident) => { super::test_impl!(SIGNED:: 128, $bint, $BInt); }; - + (COMMON:: 128, $bint: ident, $BInt: ident, THIS) => { super::test_impl!(COMMON:: 128, $bint, $BInt); }; @@ -73,7 +73,7 @@ macro_rules! test_impl { super::test_impl!(SIGNED:: 64, $bint, $BInt); super::test_impl!(TRY FROM SIGNED $bint, $BInt, i128); }; - + (COMMON:: 64, $bint: ident, $BInt: ident, THIS) => { super::test_impl!(COMMON:: 64, $bint, $BInt); }; @@ -145,7 +145,7 @@ macro_rules! test_impl { } )* }; - + (FROM SIGNED $bint: ident, $BInt: ident, $($Pt: ty),*) => { $( paste::paste! { @@ -183,4 +183,4 @@ macro_rules! test_impl { }; } -pub(crate) use test_impl; \ No newline at end of file +pub(crate) use test_impl; diff --git a/tests/int/from.rs b/tests/int/from.rs index 392fb84..a7a8294 100644 --- a/tests/int/from.rs +++ b/tests/int/from.rs @@ -1 +1 @@ -mod int; \ No newline at end of file +mod int; diff --git a/tests/int/from/int.rs b/tests/int/from/int.rs index 534eaa1..86de86e 100644 --- a/tests/int/from/int.rs +++ b/tests/int/from/int.rs @@ -8,4 +8,4 @@ test_impl!(U, 512); test_impl!(I, 64); test_impl!(I, 128); test_impl!(I, 256); -test_impl!(I, 512); \ No newline at end of file +test_impl!(I, 512); diff --git a/tests/int/smoke/cast.rs b/tests/int/smoke/cast.rs index d6dab26..ad0c13a 100644 --- a/tests/int/smoke/cast.rs +++ b/tests/int/smoke/cast.rs @@ -1,5 +1,5 @@ -use rstest::*; use fastnum::*; +use rstest::*; #[rstest(::trace)] fn test_from_i32_sign_extends() {