diff options
| author | yan hu <[email protected]> | 2026-08-07 18:05:09 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2026-08-21 11:17:57 +0800 |
| commit | 30af7388a4077354f6083082fee040595978bbac (patch) | |
| tree | dfa0440a884847ff7d803bb3113dd3f9f916f74b /components/rust/core/src/bindings | |
| parent | 339bffb702b911b55b0e6d54fa5ad9116295f048 (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/bindings')
| -rw-r--r-- | components/rust/core/src/bindings/librt.rs | 3 | ||||
| -rw-r--r-- | components/rust/core/src/bindings/mod.rs | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/components/rust/core/src/bindings/librt.rs b/components/rust/core/src/bindings/librt.rs index 3f16c014fd..a39ed07c22 100644 --- a/components/rust/core/src/bindings/librt.rs +++ b/components/rust/core/src/bindings/librt.rs @@ -26,6 +26,7 @@ pub type rt_int32_t = c_int; pub type rt_uint8_t = c_uchar; pub type rt_tick_t = rt_uint32_t; pub type rt_size_t = rt_ubase_t; +pub type rt_ssize_t = rt_base_t; pub type rt_thread_t = *mut c_void; pub type rt_sem_t = *mut c_void; @@ -94,7 +95,7 @@ unsafe extern "C" { pub fn rt_mq_create(name: *const c_char, msg_size: rt_size_t, max_msgs: rt_size_t, flag: rt_uint8_t) -> rt_mq_t; pub fn rt_mq_send(mq: rt_mq_t, buffer: *const c_void, size: rt_size_t) -> rt_err_t; pub fn rt_mq_send_wait(mq: rt_mq_t, buffer: *const c_void, size: rt_size_t, timeout: rt_int32_t) -> rt_err_t; - pub fn rt_mq_recv(mq: rt_mq_t, buffer: *mut c_void, size: rt_size_t, timeout: rt_int32_t) -> rt_base_t; + pub fn rt_mq_recv(mq: rt_mq_t, buffer: *mut c_void, size: rt_size_t, timeout: rt_int32_t) -> rt_ssize_t; pub fn rt_mq_delete(mq: rt_mq_t) -> rt_err_t; pub fn rt_mq_detach(mq: rt_mq_t) -> rt_err_t; } diff --git a/components/rust/core/src/bindings/mod.rs b/components/rust/core/src/bindings/mod.rs index ae2610e9c8..cad651a1dd 100644 --- a/components/rust/core/src/bindings/mod.rs +++ b/components/rust/core/src/bindings/mod.rs @@ -46,8 +46,7 @@ pub use librt::{ /* Memory management functions */ pub use librt::{ - rt_malloc, rt_free, rt_realloc, rt_calloc, rt_malloc_align, rt_free_align, - rt_safe_malloc, rt_safe_free + rt_malloc, rt_free, rt_realloc, rt_calloc, rt_malloc_align, rt_free_align }; /* Device management functions */ |
