Skip to content

Commit

Permalink
Add docs.rs feature description (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsided authored May 19, 2024
1 parent 44bbf5e commit 208bc87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
//! [image]: https://github.com/image-rs/image
#![deny(missing_docs)]
#![cfg_attr(test, feature(test))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![allow(
clippy::cast_lossless,
clippy::too_many_arguments,
Expand Down Expand Up @@ -68,6 +69,7 @@ pub mod suppress;
pub mod template_matching;
pub mod union_find;
#[cfg(feature = "display-window")]
#[cfg_attr(docsrs, doc(cfg(feature = "display-window")))]
pub mod window;

pub use image;
1 change: 1 addition & 0 deletions src/template_matching.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ pub fn match_template(
}

#[cfg(feature = "rayon")]
#[cfg_attr(docsrs, doc(cfg(feature = "rayon")))]
/// Slides a `template` over an `image` and scores the match at each point using
/// the requested `method`. This version uses rayon to parallelize the computation.
///
Expand Down

0 comments on commit 208bc87

Please sign in to comment.