summaryrefslogtreecommitdiff
path: root/components/rust/core/src/lib.rs
diff options
context:
space:
mode:
authoryan hu <[email protected]>2026-08-07 18:05:09 +0800
committerRbb666 <[email protected]>2026-08-21 11:17:57 +0800
commit30af7388a4077354f6083082fee040595978bbac (patch)
treedfa0440a884847ff7d803bb3113dd3f9f916f74b /components/rust/core/src/lib.rs
parent339bffb702b911b55b0e6d54fa5ad9116295f048 (diff)
[rust][tools] Fix Rust build example configuration handling
Improve the Rust build integration across core, applications, components, and module examples. Fix build failure propagation, target and feature handling, linker flags, example configuration semantics, and add STM32 CI attach coverage.
Diffstat (limited to 'components/rust/core/src/lib.rs')
-rw-r--r--components/rust/core/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/rust/core/src/lib.rs b/components/rust/core/src/lib.rs
index 01e4b34102..0b94f81427 100644
--- a/components/rust/core/src/lib.rs
+++ b/components/rust/core/src/lib.rs
@@ -17,7 +17,6 @@ and device interfaces. Designed for embedded devices running RT-Thread.
*/
#![no_std]
-#![feature(alloc_error_handler)]
#![feature(linkage)]
#![allow(dead_code)]
@@ -33,6 +32,7 @@ pub mod init;
pub mod allocator;
pub mod mutex;
pub mod out;
+#[cfg(feature = "fs")]
pub mod fs;
pub mod panic;
pub mod param;
@@ -40,6 +40,7 @@ pub mod queue;
pub mod sem;
pub mod thread;
pub mod time;
+#[cfg(feature = "libdl")]
pub mod libloader;
mod prelude;