#tdlib #parser #tdlib-rs #tdlib-tl-parser

tdlib-tl-parser

A parser for TDLib's Type Language definitions

2 unstable releases

0.2.0 Nov 27, 2022
0.1.0 Mar 18, 2022

#6 in #tdlib-rs

Download history 2/week @ 2024-12-25 6/week @ 2025-01-08 6/week @ 2025-02-05 7/week @ 2025-02-12 3/week @ 2025-02-19 13/week @ 2025-02-26

308 downloads per month
Used in 2 crates

MIT/Apache

27KB
577 lines

This library provides a public interface to parse Type Language definitions.

It exports a single public method, parse_tl_file to parse entire .tl files and yield the definitions it contains. This method will yield Definitions containing all the information you would possibly need to later use somewhere else (for example, to generate code).


tdlib-rs

A Rust wrapper around the Telegram Database library. It includes a generator to automatically generate the types and functions from the TDLib's Type Language file.

It's mainly created for using it in the Telegrand client, but it should work also for any other Rust project.

Current supported TDLib version: 1.8.19.

Credits

  • grammers: the tdlib-tl-gen and tdlib-tl-parser projects are forks of the grammers-tl-gen and grammers-tl-parser projects.
  • rust-tdlib: for inspiration about some client code.

No runtime deps