Skip to content

Add console_out Rust crate#409

Open
felixm-acc wants to merge 2 commits intoeclipse-openbsw:mainfrom
esrlabs:cr-204901
Open

Add console_out Rust crate#409
felixm-acc wants to merge 2 commits intoeclipse-openbsw:mainfrom
esrlabs:cr-204901

Conversation

@felixm-acc
Copy link
Copy Markdown
Contributor

Add console_out Rust crate

Ports openbsw-console-out from the openbsw-rust workspace into this repo
under libs/rust/. The console_out crate wraps the BSP's putByteToStdout
C function behind core::fmt::Write.

The rust_hello_world staticlib is updated to depend on both new crates
and exposes a rust_hello_world() FFI function that writes "Hello from
Rust!" to stdout, called from app.cpp when BUILD_RUST is enabled.

M-Hassanin and others added 2 commits March 26, 2026 20:43
Introduce openbsw_panic_handler under libs/rust/panic_handler as a
reusable no_std crate that installs softwareSystemReset as the panic
handler on embedded targets (target_os = "none"), falling back to the
std panic handler on POSIX.

Change-Id: Ie6f3665da38105fee635dcab83c0de24929805be
Ports openbsw-console-out from the openbsw-rust workspace into this repo
under libs/rust/. The console_out crate wraps the BSP's putByteToStdout
C function behind core::fmt::Write.

The rust_hello_world staticlib is updated to depend on both new crates
and exposes a rust_hello_world() FFI function that writes "Hello from
Rust!" to stdout, called from app.cpp when BUILD_RUST is enabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants