|
6 | 6 |
|
7 | 7 | #[allow(dead_code)]
|
8 | 8 | #[cfg(not(any(feature = "docs", feature = "pkg-config")))]
|
9 |
| -// The version of the TDLib library. |
10 | 9 | const TDLIB_VERSION: &str = "1.8.29";
|
11 | 10 | #[cfg(feature = "download-tdlib")]
|
12 | 11 | const TDLIB_CARGO_PKG_VERSION: &str = "1.0.5";
|
@@ -136,8 +135,11 @@ fn download_tdlib() {
|
136 | 135 | /// - `cargo:rustc-link-lib=dylib=tdjson`
|
137 | 136 | /// - `cargo:rustc-link-arg=-Wl,-rpath,.../tdlib/lib`
|
138 | 137 | /// - `cargo:rustc-link-search=native=.../tdlib/bin` (only for Windows x86_64)
|
| 138 | +/// |
139 | 139 | /// The `...` represents the `dest_path` or the `OUT_DIR` environment variable.
|
| 140 | +/// |
140 | 141 | /// If the tdlib library is not found at the specified path, the function will panic.
|
| 142 | +/// |
141 | 143 | /// The function will panic if the tdlib library is not found at the specified path.
|
142 | 144 | fn generic_build(lib_path: Option<String>) {
|
143 | 145 | let correct_lib_path: String;
|
@@ -385,13 +387,16 @@ pub fn build_download_tdlib(dest_path: Option<String>) {
|
385 | 387 | /// You can directly download the tdlib library from the [TDLib Release GitHub page](https://github.com/FedericoBruzzone/tdlib-rs/releases).
|
386 | 388 | ///
|
387 | 389 | /// The `LOCAL_TDLIB_PATH` environment variable must be set to the path of the tdlib folder.
|
| 390 | +/// |
388 | 391 | /// The function will pass to the `rustc` the following flags:
|
389 | 392 | /// - `cargo:rustc-link-search=native=.../tdlib/lib`
|
390 | 393 | /// - `cargo:include=.../tdlib/include`
|
391 | 394 | /// - `cargo:rustc-link-lib=dylib=tdjson`
|
392 | 395 | /// - `cargo:rustc-link-arg=-Wl,-rpath,.../tdlib/lib`
|
393 | 396 | /// - `cargo:rustc-link-search=native=.../tdlib/bin` (only for Windows x86_64)
|
| 397 | +/// |
394 | 398 | /// The `...` represents the `LOCAL_TDLIB_PATH` environment variable.
|
| 399 | +/// |
395 | 400 | /// If the `LOCAL_TDLIB_PATH` environment variable is not set, the function will panic.
|
396 | 401 | ///
|
397 | 402 | /// # Example
|
|
0 commit comments