varlink_derive 0.1.0

Rust code generator macro for the varlink protocol.
Documentation

Macro for generating modules from a varlink interface definition

It has the drawback, that most IDEs don't execute this and thus offer no code completion.

Examples:

use varlink_derive;

varlink_derive::varlink!(org_example_ping, r#"
# Example service
interface org.example.ping

# Returns the same string
method Ping(ping: string) -> (pong: string)
"#);

use crate::org_example_ping::VarlinkClientInterface;