Crates.io | rusp-lib |
lib.rs | rusp-lib |
version | 0.95.0 |
source | src |
created_at | 2024-11-15 12:15:05.148481 |
updated_at | 2024-11-15 12:15:05.148481 |
description | The Rust USP toolkit |
homepage | |
repository | https://github.com/axiros/rusp |
max_upload_size | |
id | 1449054 |
size | 481,421 |
rusp is the Rust USP toolkit, brought to you by Axiros!
Rust is a fast and safe systems programming language.
USP (or User Services Platform) is a new protocol for management of connected devices, maintained and developed by the Broadband Forum.
Axiros is a leading company for device management.
rusp is a toolkit, written in Rust, providing support to work with USP records and messages which are encoded in Protobuf bytestreams.
While a Protobuf schema exists which allows generating bindings for several commonly used programming languages, those are either uncomfortable to use and/or highly unsafe. By leveraging the strong Rust type system and the strict compiler, Rust is capable of detecting many incorrect or incomplete uses of the Protobuf encoding at compile time which allows for confident use of the USP protocol.
The toolkit is split into two parts: this is the library part, which contains:
rusp-lib can be used as a library in your own Rust applications. To use rusp as a library you simply need to add the rusp and most likely quick-protobuf crates to your Cargo.toml
as dependencies:
[dependencies]
rusp-lib = "0.95.0"
quick-protobuf = "0.8"
Please note that as of v0.95, the library and the application have been split into two parts, rusp-lib
and rusp
. In order to seamlessly continue what is now rusp-lib
you have three options:
rusp
namespace into rusp_lib
in your source codeuse rusp_lib as rusp;
line at the top of each code file using the rusp
namespaceCargo.toml
by declaring the dependency as rusp-lib = { version = "0.95", package = "rusp" }
Documentation and examples for its use can be found on docs.rs.
You may use this crate however you like under the BSD 3-Clause Licence.
The toolkit is still far from feature complete but already a big aid in our product development and also helped to find one or the other discrepancy in the standard.
Feel free to spread the word or drop us a note if you like it. Collaboration on this crate is highly welcome as are pull requests!
If you are in need of software for USP management software (agent, controller or testing) or expertise please get in touch with us via our web form. We're also happy to solve all other device management and monitoring needs!