Cargo Features

tdlib-rs has no features set by default.

[dependencies]
tdlib-rs = { version = "1.0.4", features = ["bots-only-api", "docs", "local-tdlib", "pkg-config", "download-tdlib"] }
default

The default feature build the library using the local tdlib library

bots-only-api

This feature is used to enable the functions only available to the Telegram bots

docs

This feature is used to build the documentation preventing linking to the tdjson library

local-tdlib

This feature is used to build the library using the tdlib library installed in the system

Affects build::build_local_tdlib

pkg-config

This feature is used to build the library using pkg-config

Enables system-deps ^6

Affects build::build_pkg_config

download-tdlib

This feature is used to build the library using the tdlib library downloaded from github

Enables reqwest and zip

Affects build::build_download_tdlib