Files
u-boot/examples/rust/Cargo.toml
Simon Glass 44127a8185 ulib: Add a Rust example
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>
2025-09-11 15:19:22 -06:00

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]