2 unstable releases
0.2.0 | Nov 27, 2022 |
---|---|
0.1.0 | Mar 18, 2022 |
#6 in #tdlib-rs
308 downloads per month
Used in 2 crates
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 Definition
s 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
andtdlib-tl-parser
projects are forks of thegrammers-tl-gen
andgrammers-tl-parser
projects. - rust-tdlib: for inspiration about some client code.