Add an explicit std feature so that features are purely additive.
This commit is contained in:
@@ -11,10 +11,12 @@ readme = "README.md"
|
||||
name = "cton_native"
|
||||
|
||||
[dependencies]
|
||||
cretonne = { path = "../cretonne", version = "0.1.0" }
|
||||
cretonne = { path = "../cretonne", version = "0.1.0", default-features = false }
|
||||
|
||||
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies]
|
||||
raw-cpuid = "3.0.0"
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = ["cretonne/std"]
|
||||
no_std = ["cretonne/no_std"]
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
//! Performs autodetection of the host for the purposes of running
|
||||
//! Cretonne to generate code to run on the same machine.
|
||||
#![cfg_attr(feature = "no_std", no_std)]
|
||||
#![deny(missing_docs)]
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
extern crate cretonne;
|
||||
|
||||
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||
|
||||
Reference in New Issue
Block a user