Skip to content

Commit

Permalink
Fix docs generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreal2000 committed Jun 24, 2024
1 parent 2a874c4 commit b790ac9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tdlib-rs/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ pub fn set_rerun_if() {
println!("cargo:rerun-if-changed=build.rs");
}

#[cfg(feature = "pkg-config")]
#[cfg(any(feature = "pkg-config", feature = "docs"))]
#[allow(clippy::needless_doctest_main)]
/// Build the project using the `pkg-config` feature.
/// Using the `pkg-config` feature, the function will probe the system dependencies.
Expand Down Expand Up @@ -281,7 +281,7 @@ pub fn build_pkg_config() {
}
}

#[cfg(feature = "download-tdlib")]
#[cfg(any(feature = "download-tdlib", feature = "docs"))]
#[allow(clippy::needless_doctest_main)]
/// Build the project using the `download-tdlib` feature.
///
Expand Down Expand Up @@ -342,8 +342,7 @@ pub fn build_download_tdlib(dest_path: Option<String>) {
generic_build(dest_path);
}
}

#[cfg(feature = "local-tdlib")]
#[cfg(any(feature = "local-tdlib", feature = "docs"))]
#[allow(clippy::needless_doctest_main)]
/// Build the project using the `local-tdlib` feature.
/// Using the `local-tdlib` feature, the function will copy the tdlib library from the
Expand Down

0 comments on commit b790ac9

Please sign in to comment.