Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.
/ pbrs Public archive

Protobuf in Rust

Notifications You must be signed in to change notification settings

marziply/pbrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Protobuf in Rust

Running

cargo run assets/message.proto

Input to output steps

  • Read file input
  • Tokenisation of syntax
  • Translate tokenised syntax into Rust
  • Output rendered Rust

Available tokens

Kind

  • service as trait and struct
  • message as struct
  • package as mod
  • syntax

Scalar

  • int32 as i32
  • bool as bool
  • string as String