Split no_stdlib and no_std into two features.

This commit is contained in:
Stephen Chung
2020-03-18 12:04:26 +08:00
11 changed files with 49 additions and 30 deletions

View File

@@ -1182,11 +1182,12 @@ impl Engine<'_> {
}
/// Print/debug to stdout
#[cfg(not(feature = "no_std"))]
#[cfg(not(feature = "no_stdlib"))]
fn default_print(s: &str) {
println!("{}", s);
}
/// No-op
#[cfg(feature = "no_stdlib")]
#[cfg(any(feature = "no_std", feature = "no_stdlib"))]
fn default_print(_: &str) {}