The U-Boot library can be used from Rust fairly easily. Add an example for this, following along the lines of the existing ulib example. Note that the new way of representing C strings is not used for now, since it is not available in v1.75 of cargo, as shipped by Ubuntu 24.04 Co-developed-by: Claude <noreply@anthropic.com> Co-developed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
18 lines
357 B
TOML
18 lines
357 B
TOML
# SPDX-License-Identifier: GPL-2.0+
|
|
[package]
|
|
name = "uboot-rust-demo"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "GPL-2.0+"
|
|
description = "Rust demo program for U-Boot library"
|
|
authors = ["Simon Glass <simon.glass@canonical.com>"]
|
|
|
|
[dependencies]
|
|
u-boot-sys = { path = "../../lib/rust" }
|
|
|
|
[[bin]]
|
|
name = "demo"
|
|
path = "src/demo.rs"
|
|
|
|
[build-dependencies]
|