docs: Add package.metadata.docs.rs
This is to enable `doc_auto_cfg` feature with Docs.rs.
This commit is contained in:
parent
aa56c0a8be
commit
62788e213b
2 changed files with 18 additions and 0 deletions
17
Cargo.toml
17
Cargo.toml
|
@ -18,6 +18,23 @@ 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-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