File tree Expand file tree Collapse file tree 4 files changed +31
-8
lines changed
Expand file tree Collapse file tree 4 files changed +31
-8
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ documentation = "https://docs.rs/num-integer"
55homepage = " https://github.com/rust-num/num-integer"
66keywords = [" mathematics" , " numerics" ]
77categories = [" algorithms" , " science" , " no-std" ]
8- license = " MIT/ Apache-2.0"
8+ license = " MIT OR Apache-2.0"
99repository = " https://github.com/rust-num/num-integer"
1010name = " num-integer"
11- version = " 0.1.43 "
11+ version = " 0.1.44 "
1212readme = " README.md"
1313build = " build.rs"
1414exclude = [" /bors.toml" , " /ci/*" , " /.github/*" ]
Original file line number Diff line number Diff line change @@ -40,11 +40,25 @@ Implementations for `i128` and `u128` are only available with Rust 1.26 and
4040later. The build script automatically detects this, but you can make it
4141mandatory by enabling the ` i128 ` crate feature.
4242
43-
4443## Releases
4544
4645Release notes are available in [ RELEASES.md] ( RELEASES.md ) .
4746
4847## Compatibility
4948
5049The ` num-integer ` crate is tested for rustc 1.8 and greater.
50+
51+ ## License
52+
53+ Licensed under either of
54+
55+ * [ Apache License, Version 2.0] ( http://www.apache.org/licenses/LICENSE-2.0 )
56+ * [ MIT license] ( http://opensource.org/licenses/MIT )
57+
58+ at your option.
59+
60+ ### Contribution
61+
62+ Unless you explicitly state otherwise, any contribution intentionally submitted
63+ for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
64+ dual licensed as above, without any additional terms or conditions.
Original file line number Diff line number Diff line change 1+ # Release 0.1.44 (2020-10-29)
2+
3+ - [ The "i128" feature now bypasses compiler probing] [ 35 ] . The build script
4+ used to probe anyway and panic if requested support wasn't found, but
5+ sometimes this ran into bad corner cases with ` autocfg ` .
6+
7+ ** Contributors** : @cuviper
8+
9+ [ 35 ] : https://github.com/rust-num/num-integer/pull/35
10+
111# Release 0.1.43 (2020-06-11)
212
313- [ The new ` Average ` trait] [ 31 ] computes fast integer averages, rounded up or
Original file line number Diff line number Diff line change @@ -3,11 +3,10 @@ extern crate autocfg;
33use std:: env;
44
55fn main ( ) {
6- let ac = autocfg:: new ( ) ;
7- if ac. probe_type ( "i128" ) {
8- println ! ( "cargo:rustc-cfg=has_i128" ) ;
9- } else if env:: var_os ( "CARGO_FEATURE_I128" ) . is_some ( ) {
10- panic ! ( "i128 support was not detected!" ) ;
6+ // If the "i128" feature is explicity requested, don't bother probing for it.
7+ // It will still cause a build error if that was set improperly.
8+ if env:: var_os ( "CARGO_FEATURE_I128" ) . is_some ( ) || autocfg:: new ( ) . probe_type ( "i128" ) {
9+ autocfg:: emit ( "has_i128" ) ;
1110 }
1211
1312 autocfg:: rerun_path ( "build.rs" ) ;
You can’t perform that action at this time.
0 commit comments