Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking change: Enable 128-bit integer support by default; increase MSRV. #37

Merged
merged 1 commit into from
Sep 4, 2021
Merged

Breaking change: Enable 128-bit integer support by default; increase MSRV. #37

merged 1 commit into from
Sep 4, 2021

Conversation

briansmith
Copy link
Contributor

Eliminate the need for a build script, and eliminate the rustc_version dependency,
to make cast.rs a more lightweight dependency for users. Increase the MSRV to 1.46.0
to match quickcheck 1.0.

I documented the MSRV to be 1.46.0 because I found cargo test fails to build the
dependencies with 1.26.0, and it looks like arbitrary 1.0 has 1.46.0 as its MSRV.

I didn't upgrade the arbitrary dependency to 1.0 because some of the tests fail when
I tried.

…MSRV.

Eliminate the need for a build script, and eliminate the rustc_version dependency,
to make cast.rs a more lightweight dependency for users. Increase the MSRV to 1.46.0
to match quickcheck 1.0.

Enable all the test cases for i128 and u128 according to the commented-out blocks. I
left two lines of test cases commented out since the tests fail to compile for them.

I documented the MSRV to be 1.46.0 because I found `cargo test` fails to build the
dependencies with 1.26.0, and it looks like quickcheck 1.0 has 1.46.0 as its MSRV.

I didn't upgrade the arbitrary dependency to 1.0 because some of the tests fail when
I tried. I filed an issue about this.
// https://github.com/BurntSushi/quickcheck/issues/162
/*#[cfg(feature = "x128")]
// TODO uncomment this.
/*
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Arbitrary support for u128 and i128 seems to work, but I couldn't figure out how to enable these two lines, so I left them commented out.

i128 => f32, f64 ;
u128 => f32, f64 ;

@briansmith
Copy link
Contributor Author

Note in particular that cargo +1.26.0 test fails to build because the currently-used version of quickcheck fails to build with 1.26.0.

@japaric
Copy link
Owner

japaric commented Sep 4, 2021

Thanks!

@japaric
Copy link
Owner

japaric commented Sep 4, 2021

bors r+

@japaric japaric merged commit 0190426 into japaric:main Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants