From 51b16c52b305fb10e8bbe15d5b4ff087f6e46082 Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Tue, 15 Aug 2017 13:54:51 -0600 Subject: [PATCH] Only enable `i128_type` when necessary. --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index ba745fa..1f7e724 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,7 @@ // This library relies on the Rust nightly compiler's `i128_type` feature. -#![feature(i128_type)] +// If that's not okay for you, disable the u128-support feature. (Pass +// --no-default-features for example.) +#![cfg_attr(feature = "u128-support", feature(i128_type))] // `clippy` is a code linting tool for improving code quality by catching // common mistakes or strange code patterns. If the `clippy` feature is