Merge pull request #135 from sorairolake/docsrs
docs: Enable `doc_auto_cfg` feature with Docs.rs
This commit is contained in:
commit
4b295d3d5a
2 changed files with 20 additions and 0 deletions
19
Cargo.toml
19
Cargo.toml
|
@ -18,6 +18,25 @@ edition = "2021"
|
||||||
exclude = ["tests/**", "examples/**", ".github/**", "fuzz/**"]
|
exclude = ["tests/**", "examples/**", ".github/**", "fuzz/**"]
|
||||||
build = "src/build.rs"
|
build = "src/build.rs"
|
||||||
|
|
||||||
|
[package.metadata.docs.rs]
|
||||||
|
features = [
|
||||||
|
"aes-crypto",
|
||||||
|
"bzip2",
|
||||||
|
"chrono",
|
||||||
|
"deflate",
|
||||||
|
"deflate64",
|
||||||
|
"deflate",
|
||||||
|
"deflate-zlib",
|
||||||
|
"deflate-zlib-ng",
|
||||||
|
"lzma",
|
||||||
|
"time",
|
||||||
|
"zstd",
|
||||||
|
]
|
||||||
|
# Can be enabled when <https://github.com/zopfli-rs/zopfli/issues/42> is fixed
|
||||||
|
# all-features = true
|
||||||
|
no-default-features = true
|
||||||
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
time = { version = "0.3.36", default-features = false }
|
time = { version = "0.3.36", default-features = false }
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
//! | ZipCrypto deprecated encryption | ✅ | ✅ |
|
//! | ZipCrypto deprecated encryption | ✅ | ✅ |
|
||||||
//!
|
//!
|
||||||
//!
|
//!
|
||||||
|
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
#![allow(unexpected_cfgs)] // Needed for cfg(fuzzing) on nightly as of 2024-05-06
|
#![allow(unexpected_cfgs)] // Needed for cfg(fuzzing) on nightly as of 2024-05-06
|
||||||
pub use crate::compression::{CompressionMethod, SUPPORTED_COMPRESSION_METHODS};
|
pub use crate::compression::{CompressionMethod, SUPPORTED_COMPRESSION_METHODS};
|
||||||
|
|
Loading…
Add table
Reference in a new issue