This website requires JavaScript.
Explore
Help
Sign In
yggdrasil
/
num-bigint-dig
Watch
1
Star
0
Fork
0
You've already forked num-bigint-dig
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
num-bigint-dig
/
build.rs
4 lines
56 B
Rust
Raw
Normal View
History
Unescape
Escape
Add basic conversions for i128 and u128
2018-05-15 18:01:14 -07:00
fn
main
(
)
{
Unconditionally set has_i128
2021-11-03 11:24:09 -04:00
println!
(
"
cargo:rustc-cfg=has_i128
"
)
;
Don't panic if autocfg probe fails Motivation: [autocfg panics when building with `-Zbuild-std`][1]. Instead of panicking when the `i128` feature is requested but `probe_type("i128")` fails, just go ahead and enable the feature. If `i128` truly isn't available then compilation will still fail, just later on. This is unlikely to be an issue in practice since [`i128` was stabilized in Rust 1.26.0][2]. Tested by building with: cargo +nightly build --target=x86_64-unknown-uefi \ -Zbuild-std=core,alloc --no-default-features \ --features=i128 [1]: https://github.com/cuviper/autocfg/issues/34 [2]: https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1260-2018-05-10
2021-06-02 11:27:13 -04:00
}
Reference in New Issue
Copy Permalink