2 unstable releases
0.2.0 | Nov 27, 2022 |
---|---|
0.1.0 | Mar 18, 2022 |
#2626 in Database interfaces
225 downloads per month
Used in 3 crates
(2 directly)
27KB
577 lines
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.
lib.rs
:
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).