# libubootenv-sys
Low-level Rust FFI bindings to the **U-Boot environment library (`libubootenv`)**.
This crate exposes the raw C API for reading, writing, deleting, and iterating U-Boot environment variables. It is intended for Rust developers who need direct FFI access.
---
## License
**GPL-2.0-or-later**. See the LICENSE file.
---
## Features
- `libuboot_initialize` – initialize environment context.
- `libuboot_get_env` – read variable.
- `libuboot_set_env` – set variable.
- `libuboot_del_env` – delete variable.
- `libuboot_save` – persist changes.
- `libuboot_get_next` – iterate environment variables.
- `libuboot_exit` – free context.
---
## Installation
Add to your `Cargo.toml`:
```toml
[dependencies]
libubootenv-sys = "0.1"