Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mersinvald/tdjson-sys

TDLIB Json Client Rust FFI Bindings
https://github.com/mersinvald/tdjson-sys

bindings client ffi json rust tdlib telegram

Last synced: about 1 month ago
JSON representation

TDLIB Json Client Rust FFI Bindings

Awesome Lists containing this project

README

        

## TDLIB Json Client Rust FFI Bindings

### Installing TDLIB

In order to generate bindings, `tdjson-sys` needs the TDLIB to be intalled on a developer's system.

Clone the [`tdlib` repo](https://github.com/tdlib/td) and checkout the wanted version.
```bash
git clone [email protected]:tdlib/td.git
cd td
git checkout v1.1.0
```

Install dependencies and build the library as described in the [README.md](https://github.com/tdlib/td/blob/master/README.md)

Then, install the library, from the `build` directory created in the previous step. (as root)
```bash
cmake --build . --target install
```

### Generate Bindings

After installing `tdlib`, just add `tdjson-sys` to your crate's dependencies

```toml
tdjson-sys = "0.1.3"
```

And let the Cargo do it's magic!
```bash
cargo build
```