Skip to content

Commit

Permalink
fix(doc): rename doc_cfg guard to docsrs, rust-lang/cargo#13875
Browse files Browse the repository at this point in the history
  • Loading branch information
zvolin committed May 7, 2024
1 parent bcf6016 commit 28df53b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ sled = ["dep:sled", "dep:tokio"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docs_rs"]
rustdoc-args = ["--cfg", "docsrs"]
targets = ["x86_64-unknown-linux-gnu", "wasm32-unknown-unknown"]

[package.metadata.cargo-udeps.ignore]
Expand Down
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg_attr(docs_rs, feature(doc_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![doc = include_str!("../README.md")]

use std::future::Future;
Expand All @@ -24,16 +24,16 @@ mod sled_blockstore;

pub use crate::in_memory_blockstore::InMemoryBlockstore;
#[cfg(all(target_arch = "wasm32", feature = "indexeddb"))]
#[cfg_attr(docs_rs, doc(cfg(all(target_arch = "wasm32", feature = "indexeddb"))))]
#[cfg_attr(docsrs, doc(cfg(all(target_arch = "wasm32", feature = "indexeddb"))))]
pub use crate::indexed_db_blockstore::IndexedDbBlockstore;
#[cfg(feature = "lru")]
#[cfg_attr(docs_rs, doc(cfg(feature = "lru")))]
#[cfg_attr(docsrs, doc(cfg(feature = "lru")))]
pub use crate::lru_blockstore::LruBlockstore;
#[cfg(all(not(target_arch = "wasm32"), feature = "redb"))]
#[cfg_attr(docs_rs, doc(cfg(all(not(target_arch = "wasm32"), feature = "redb"))))]
#[cfg_attr(docsrs, doc(cfg(all(not(target_arch = "wasm32"), feature = "redb"))))]
pub use crate::redb_blockstore::RedbBlockstore;
#[cfg(all(not(target_arch = "wasm32"), feature = "sled"))]
#[cfg_attr(docs_rs, doc(cfg(all(not(target_arch = "wasm32"), feature = "sled"))))]
#[cfg_attr(docsrs, doc(cfg(all(not(target_arch = "wasm32"), feature = "sled"))))]
pub use crate::sled_blockstore::SledBlockstore;

/// Error returned when performing operations on [`Blockstore`]
Expand Down

0 comments on commit 28df53b

Please sign in to comment.