Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mersinvald/tdjson-sys
- Owner: mersinvald
- License: mit
- Created: 2018-02-02T05:46:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-27T11:28:11.000Z (over 4 years ago)
- Last Synced: 2024-12-01T12:44:13.734Z (about 1 month ago)
- Topics: bindings, client, ffi, json, rust, tdlib, telegram
- Language: Rust
- Size: 9.77 KB
- Stars: 9
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```