wechat-protocol 1.3.3

Native WeChat transport, authentication and protocol codecs
Documentation
1
2
3
4
5
6
7
8
9
//! A local codec example; no network requests or account credentials.
use wechat_protocol::protobuf::{decode, message, scalar, uint};

fn main() -> anyhow::Result<()> {
    let encoded = message(&[uint(1, 42)])?;
    let fields = decode(&encoded)?;
    println!("{}", scalar(&fields, 1)?);
    Ok(())
}