Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

env:
CARGO_TERM_COLOR: always
MSRV: '1.87'
MSRV: '1.88'

jobs:
lint:
Expand Down Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"]
Expand Down Expand Up @@ -93,4 +93,3 @@ rustdoc-args = ["--cfg", "docsrs"]
[[test]]
name = "tests"
required-features = ["test-util"]

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/bint/convert.rs
Original file line number Diff line number Diff line change
@@ -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;
2 changes: 1 addition & 1 deletion src/bint/convert/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ macro_rules! digits_from_int_impl {
}};
}

pub(crate) use digits_from_int_impl;
pub(crate) use digits_from_int_impl;
2 changes: 1 addition & 1 deletion tests/int/common.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub(crate) mod from;

// Test skeleton
// mod _skeleton;
// mod _skeleton;
2 changes: 1 addition & 1 deletion tests/int/common/from.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pub(crate) mod int;
pub(crate) mod int;
16 changes: 8 additions & 8 deletions tests/int/common/from/int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand All @@ -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);
};
Expand All @@ -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);
};
Expand All @@ -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);
};
Expand Down Expand Up @@ -145,7 +145,7 @@ macro_rules! test_impl {
}
)*
};

(FROM SIGNED $bint: ident, $BInt: ident, $($Pt: ty),*) => {
$(
paste::paste! {
Expand Down Expand Up @@ -183,4 +183,4 @@ macro_rules! test_impl {
};
}

pub(crate) use test_impl;
pub(crate) use test_impl;
2 changes: 1 addition & 1 deletion tests/int/from.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mod int;
mod int;
2 changes: 1 addition & 1 deletion tests/int/from/int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ test_impl!(U, 512);
test_impl!(I, 64);
test_impl!(I, 128);
test_impl!(I, 256);
test_impl!(I, 512);
test_impl!(I, 512);
2 changes: 1 addition & 1 deletion tests/int/smoke/cast.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use rstest::*;
use fastnum::*;
use rstest::*;

#[rstest(::trace)]
fn test_from_i32_sign_extends() {
Expand Down