Skip to content

Commit

Permalink
Merge pull request #293 from robjtede/doc-auto-cfg
Browse files Browse the repository at this point in the history
Document crate feature guarded items on docs.rs
  • Loading branch information
pksunkara committed Nov 29, 2023
2 parents c5f7c9a + 2cae482 commit 3d0ba2d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Expand Up @@ -56,4 +56,5 @@ required-features = ["completion"]
no_individual_tags = true

[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]
all-features = true
2 changes: 1 addition & 1 deletion src/error.rs
Expand Up @@ -10,5 +10,5 @@ pub enum Error {
IO(#[from] IoError),
}

/// Result type where errors are of type [Error](crate::error::Error)
/// Result type where errors are of type [Error](enum@Error).
pub type Result<T = ()> = StdResult<T, Error>;
1 change: 1 addition & 0 deletions src/lib.rs
Expand Up @@ -30,6 +30,7 @@
//! By default `editor` and `password` are enabled.

#![deny(clippy::all)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

pub use console;

Expand Down

0 comments on commit 3d0ba2d

Please sign in to comment.