Update no_std support.
This commit is contained in:
@@ -1,12 +1,8 @@
|
|||||||
//! Performes early-stage optimizations on Cranelift IR.
|
//! Performes early-stage optimizations on Cranelift IR.
|
||||||
|
|
||||||
#![deny(
|
#![deny(missing_docs, trivial_numeric_casts, unused_extern_crates,)]
|
||||||
missing_docs,
|
|
||||||
trivial_numeric_casts,
|
|
||||||
unused_extern_crates,
|
|
||||||
unstable_features
|
|
||||||
)]
|
|
||||||
#![warn(unused_import_braces)]
|
#![warn(unused_import_braces)]
|
||||||
|
#![cfg_attr(feature = "std", deny(unstable_features))]
|
||||||
#![cfg_attr(
|
#![cfg_attr(
|
||||||
feature = "clippy",
|
feature = "clippy",
|
||||||
plugin(clippy(conf_file = "../../clippy.toml"))
|
plugin(clippy(conf_file = "../../clippy.toml"))
|
||||||
@@ -29,7 +25,7 @@
|
|||||||
)
|
)
|
||||||
)]
|
)]
|
||||||
#![cfg_attr(not(feature = "std"), no_std)]
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
#![cfg_attr(not(feature = "std"), alloc)]
|
#![cfg_attr(not(feature = "std"), feature(alloc))]
|
||||||
|
|
||||||
#[cfg(not(feature = "std"))]
|
#[cfg(not(feature = "std"))]
|
||||||
extern crate alloc;
|
extern crate alloc;
|
||||||
|
|||||||
Reference in New Issue
Block a user