12 stable releases (5 major)
10.1.0 | Dec 7, 2021 |
---|---|
10.0.0 | Mar 9, 2021 |
9.0.0 | Nov 14, 2019 |
8.0.0 | May 15, 2019 |
5.1.1 | Nov 21, 2018 |
#3 in #varlink
41 downloads per month
Used in 3 crates
(2 directly)
93KB
2K
SLoC
varlink
The varlink crate provides support to implement client and server using the varlink protocol.
See http://varlink.org for more information about varlink.
More Info
- API Documentation
- Crate
- Example usage of this crate
lib.rs
:
Generate rust code from varlink interface definition files
To create a varlink program in rust, place your varlink interface definition file in src/.
E.g. src/org.example.ping.varlink
:
interface org.example.ping
method Ping(ping: string) -> (pong: string)
Add varlink_generator
to your Cargo.toml [build-dependencies]
.
Then create a build.rs
file in your project directory using varlink_generator::cargo_build_tosource
:
extern crate varlink_generator;
fn main() {
varlink_generator::cargo_build_tosource("src/org.example.ping.varlink",
/* rustfmt */ true);
}
Dependencies
~3MB
~59K SLoC