layer-tl-parser 0.1.1

Parser for Telegram's Type Language (.tl) schema files
Documentation
  • Coverage
  • 100%
    46 out of 46 items documented1 out of 4 items with examples
  • Size
  • Source code size: 25 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.3 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • ankit-chaubey/layer
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ankit-chaubey

Parser for Telegram's Type Language (TL) schema files.

This crate converts raw .tl text into a structured [Definition] AST which can then be used by code-generators (see layer-tl-gen).

Quick start

use layer_tl_parser::parse_tl_file;

let src = "user#12345 id:long name:string = User;";
for def in parse_tl_file(src) {
    println!("{:#?}", def.unwrap());
}