2 unstable releases

0.2.0 Nov 27, 2022
0.1.0 Mar 18, 2022

#2626 in Database interfaces

Download history 12/week @ 2023-11-20 8/week @ 2023-11-27 2/week @ 2023-12-04 15/week @ 2023-12-11 11/week @ 2023-12-18 3/week @ 2023-12-25 29/week @ 2024-01-01 14/week @ 2024-01-08 34/week @ 2024-01-22 73/week @ 2024-01-29 2/week @ 2024-02-05 56/week @ 2024-02-12 22/week @ 2024-02-19 34/week @ 2024-02-26 112/week @ 2024-03-04

225 downloads per month
Used in 3 crates (2 directly)

MIT/Apache

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 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.

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 Definitions containing all the information you would possibly need to later use somewhere else (for example, to generate code).

No runtime deps