Skip to content

Commit

Permalink
Document image crate integration on docs.rs (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnatsel authored Nov 5, 2024
1 parent 8c4a2a5 commit 4eb023a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/jxl-oxide/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ lcms2 = ["dep:lcms2"]
rayon = ["jxl-threadpool/rayon"]
__examples = ["image?/png"]

[package.metadata.docs.rs]
features = ["image"]

[[example]]
name = "image-integration"
required-features = ["image", "__examples"]
3 changes: 3 additions & 0 deletions crates/jxl-oxide/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@
//! - `rayon`: Enable multithreading with Rayon. (*default*)
//! - `image`: Enable integration with `image` crate.
//! - `lcms2`: Enable integration with Little CMS 2.

#![cfg_attr(docsrs, feature(doc_auto_cfg))]

use std::sync::Arc;

use jxl_bitstream::{Bitstream, ContainerDetectingReader, ParseEvent};
Expand Down

0 comments on commit 4eb023a

Please sign in to comment.