Module build

Module build 

Source
Expand description

The build module is used to build the project using the enabled features. The features are correctly set when exactly one of the following features is enabled:

  • local-tdlib
  • pkg-config
  • download-tdlib

Functionsยง

build
Build the project using the enabled features.
build_download_tdlib
Build the project using the download-tdlib feature.
build_local_tdlib
Build the project using the local-tdlib feature. Using the local-tdlib feature, the function will copy the tdlib library from the LOCAL_TDLIB_PATH environment variable. The tdlib folder must contain the lib and include folders. You can directly download the tdlib library from the TDLib Release GitHub page.
build_pkg_config
Build the project using the pkg-config feature. Using the pkg-config feature, the function will probe the system dependencies. It means that the function assumes that the tdlib library is compiled in the system. It requires the following variables to be set:
check_features
Check if the features are correctly set. The features are correctly set when exactly one of the following features is enabled:
set_rerun_if
Set the rerun-if-changed and rerun-if-env-changed flags for the build script. The rerun-if-changed flag is set for the build.rs file. The rerun-if-env-changed flag is set for the LOCAL_TDLIB_PATH environment variable.