File tree 4 files changed +31
-8
lines changed
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"
5
5
homepage = " https://github.com/rust-num/num-integer"
6
6
keywords = [" mathematics" , " numerics" ]
7
7
categories = [" algorithms" , " science" , " no-std" ]
8
- license = " MIT/ Apache-2.0"
8
+ license = " MIT OR Apache-2.0"
9
9
repository = " https://github.com/rust-num/num-integer"
10
10
name = " num-integer"
11
- version = " 0.1.43 "
11
+ version = " 0.1.44 "
12
12
readme = " README.md"
13
13
build = " build.rs"
14
14
exclude = [" /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
40
40
later. The build script automatically detects this, but you can make it
41
41
mandatory by enabling the ` i128 ` crate feature.
42
42
43
-
44
43
## Releases
45
44
46
45
Release notes are available in [ RELEASES.md] ( RELEASES.md ) .
47
46
48
47
## Compatibility
49
48
50
49
The ` 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
+
1
11
# Release 0.1.43 (2020-06-11)
2
12
3
13
- [ 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;
3
3
use std:: env;
4
4
5
5
fn 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" ) ;
11
10
}
12
11
13
12
autocfg:: rerun_path ( "build.rs" ) ;
You can’t perform that action at this time.
0 commit comments