Skip to content

j-hc/pbdecoder-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pbdecoder

Decode raw protobuf binaries into JSON (or into any other schema) without having the proto files

# Cargo.toml

pbdecoder = { git = "https://github.com/j-hc/pbdecoder-rs.git" }
use pbdecoder::decode_proto;

let f = std::fs::read("protobuf-binary").unwrap();
let (parts, remaining_bytes) = decode_proto(&f);

let s = serde_json::to_string(&parts).unwrap();
std::fs::write("resp.json", s).unwrap();

About

decode raw protobuf binaries into json without having the proto files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages