Skip to content

Commit

Permalink
Add incantation to display feature in docs.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmicHorrorDev authored and PSeitz committed Apr 7, 2023
1 parent 76a78ae commit 894b13c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ license = "MIT"
version = "0.10.0"
include = ["src/*.rs", "src/frame/**/*", "src/block/**/*", "README.md"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[[bench]]
harness = false
name = "crit_bench"
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
#![deny(warnings)]
#![deny(missing_docs)]
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[allow(unused_imports)]
#[cfg_attr(test, macro_use)]
Expand All @@ -84,6 +85,7 @@ extern crate more_asserts;

pub mod block;
#[cfg(feature = "frame")]
#[cfg_attr(docsrs, doc(cfg(feature = "frame")))]
pub mod frame;

pub use block::{compress, compress_into, compress_prepend_size};
Expand Down

0 comments on commit 894b13c

Please sign in to comment.