We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9dfb40b + d0a8472 commit 1185f89Copy full SHA for 1185f89
rust/kernel/src/lib.rs
@@ -5,6 +5,11 @@
5
#![no_std]
6
#![feature(allocator_api, alloc_error_handler)]
7
8
+// Ensure conditional compilation based on the kernel configuration works;
9
+// otherwise we may silently break things like initcall handling.
10
+#[cfg(not(CONFIG_HAS_RUST))]
11
+compile_error!("Missing kernel configuration for conditional compilation");
12
+
13
extern crate alloc;
14
15
use core::panic::PanicInfo;
0 commit comments