1 stable release
1.0.5 | May 22, 2021 |
---|---|
1.0.0 |
|
#861 in Configuration
65 downloads per month
Used in rust-uci
365KB
12K
SLoC
rust-uci
OpenWRT libuci bindings for the Rust programming language.
License
libuci is licensed under GPLv2.
The files in this repository are licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
lib.rs
:
FFI bindings to OpenWRT UCI
This crate provides an unsafe interface to OpenWRT's Unified Configuration Interface C-Library.
Building
Both UCI libraries and headers are required to build this crate. There are multiple options available to locate UCI.
Inside OpenWRT SDK
If building inside the OpenWRT SDK with OpenWRT's UCI package set the environment variable
UCI_DIR=$(STAGING_DIR)/usr
using the corresponding Makefile.
rust-uci will automatically use the headers and libraries for the target system.
Vendored
If no UCI_DIR
variable is set, rust-uci will compile against the distributed libuci source files licensed under GPLv2.
No runtime deps
~0–2.2MB
~43K SLoC