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

#4 in #varlink

Download history 1/week @ 2024-01-04 35/week @ 2024-01-11 7/week @ 2024-02-22 33/week @ 2024-02-29 27/week @ 2024-03-07 12/week @ 2024-03-14 1/week @ 2024-03-21

78 downloads per month
Used in 3 crates (2 directly)

MIT/Apache

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.

Build Status Crate

More Info


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

~1.4–1.9MB
~39K SLoC