A library to convert avdl declarations into Rust types with serde support.
Turns this:
avdl
record Thread {
@jsonkey("messages")
array<Message> messages;
@jsonkey("pagination")
union { null, Pagination } pagination;
@jsonkey("offline")
boolean offline;
@jsonkey("identify_failures")
array<keybase1.TLFIdentifyFailure> identifyFailures;
@jsonkey("ratelimits")
array<RateLimitRes> rateLimits;
}
into this:
```rust
pub struct Thread {
#[serde(rename = "messages")]
#[serde(default)]
pub messages: Option
This is mostly to export Keybase's types defined in their protocol for use in Rust.
look at to_rust::build_rust_code_from_avdl
.