From af079154410b003ec396f4333124f5c885b67d6b Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Fri, 7 Aug 2026 12:34:35 +0700 Subject: [PATCH] build(uci): enable vendored UCI builds and Unix development support Switch rust-uci dependency to the Lochnair fork with vendored UCI feature for self-contained builds without system libuci. Add uci-vendored feature flag (enabled by default) that pulls in the vendored C library. UCI support on non-Linux Unix is intended for development and testing. --- Cargo.lock | 5 +++-- Cargo.toml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5b8aff7..b294e08 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -213,9 +213,10 @@ dependencies = [ [[package]] name = "libuci-sys" version = "1.1.0" -source = "git+https://github.com/namib-project/rust-uci.git?rev=3e7b6153b6df92b45428c32bb6461756563deecb#3e7b6153b6df92b45428c32bb6461756563deecb" +source = "git+https://github.com/Lochnair/rust-uci.git?rev=fcfedd204fb76928ef617bf9631b041c816e03d4#fcfedd204fb76928ef617bf9631b041c816e03d4" dependencies = [ "bindgen", + "cc", "cmake", ] @@ -368,7 +369,7 @@ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" [[package]] name = "rust-uci" version = "0.1.6" -source = "git+https://github.com/namib-project/rust-uci.git?rev=3e7b6153b6df92b45428c32bb6461756563deecb#3e7b6153b6df92b45428c32bb6461756563deecb" +source = "git+https://github.com/Lochnair/rust-uci.git?rev=fcfedd204fb76928ef617bf9631b041c816e03d4#fcfedd204fb76928ef617bf9631b041c816e03d4" dependencies = [ "libc", "libuci-sys", diff --git a/Cargo.toml b/Cargo.toml index fdb8782..5f0b9c0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,9 +38,10 @@ netlink-bindings = { version = "0.3.3", features = ["rt-link", "tc"] } netlink-socket2 = { version = "0.3.3" } [target.'cfg(unix)'.dependencies] -rust-uci = { git = "https://github.com/namib-project/rust-uci.git", rev = "3e7b6153b6df92b45428c32bb6461756563deecb", optional = true } +rust-uci = { git = "https://github.com/Lochnair/rust-uci.git", rev = "fcfedd204fb76928ef617bf9631b041c816e03d4", optional = true, default-features = false, } [features] -default = ["toml"] +default = ["toml", "uci-vendored"] toml = ["config/toml"] uci = ["dep:rust-uci"] +uci-vendored = ["uci", "rust-uci/vendored"]