| Crates.io | tdlib-sys |
| lib.rs | tdlib-sys |
| version | 0.2.0 |
| created_at | 2020-04-21 19:54:22.289119+00 |
| updated_at | 2020-04-21 20:56:33.145517+00 |
| description | Sys crate for Telegram's TDLib client library. |
| homepage | |
| repository | https://github.com/nuxeh/tdlib-sys |
| max_upload_size | |
| id | 232694 |
| size | 17,740,337 |
tdlib-sysRust sys crate for Telegram's TDLib client
library.
Requires the gperf tool to be installed to build, and the following
development libraries:
libsslzlibStandard build tools are required, and additionally:
cmakeAll build instructions below for OSX and Windows are currently only tested on Github workflows, if you find something more accurate for a normal system, please feel free to send a PR!
git clone https://github.com/nuxeh/tdlib-sys.git
cd tdlib-sys
sudo apt install gperf perl build-essential cmake libssl-dev libz3-dev
cargo build
It should be possible to dynamically link on other platforms, but this is currently untested.
The crate feature bundled_deps can be used on any platform to use zlib and
openssl built statically by their respective sys crates.
This does not require the installation of either of the dependencies on the host system, so is an easy solution for building on Windows and OSX.
This still requires standard build tools, and additionally the following to be installed:
perlgit clone https://github.com/nuxeh/tdlib-sys.git
cd tdlib-sys
sudo apt install gperf perl build-essential cmake
cargo build --features bundled_deps
brew install gperf perl
cargo build --features bundled_deps
vcpkg.exe install gperf:x86-windows
cargo build --features bundled_deps