#openwrt #api-bindings #linux-apis

no-std ubus

Work-in-progress: OpenWRT ubus client library in pure Rust

6 releases

0.1.5 Jan 16, 2024
0.1.4 Dec 30, 2023
0.1.0 Nov 30, 2023

#298 in Embedded development

Download history 10/week @ 2024-01-12 10/week @ 2024-02-23 8/week @ 2024-03-01 23/week @ 2024-03-29 68/week @ 2024-04-12 1/week @ 2024-04-19

92 downloads per month

BSD-2-Clause

53KB
1K SLoC

ubus (Rust)

Work in progress

This is a pure Rust library for implementing OpenWRT ubus clients.

Goals

  • Minimal bloat
  • Few dependencies
  • Zero allocations inside main code
  • no_std where possible
  • Don't panic!

Supported

  • Unix-Domain-Socket + Type-Length-Value protocol support
  • blob TLV format support
  • High-level abstraction for lookup command
  • High level abstraction for call command
  • JSON support

TODO

  • High level abstraction for subscribe/unsubscribe commands
  • HTTP(S) + JSON protocol support

Dependencies

~0.7–1.5MB
~34K SLoC