Skip to content

Commit

Permalink
make top-level gix docs available when using cargo doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jun 12, 2023
1 parent e4a77aa commit 518159d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ resolver = "2"

[[bin]]
name = "ein"
doc = false
path = "src/ein.rs"
test = false
doctest = false

[[bin]]
name = "gix"
path = "src/gix.rs"
doc = false
test = false
doctest = false

Expand Down
6 changes: 0 additions & 6 deletions src/ein.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
//! ## Feature Flags
#![cfg_attr(
feature = "document-features",
cfg_attr(doc, doc = ::document_features::document_features!())
)]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#![deny(rust_2018_idioms, unsafe_code)]

mod porcelain;
Expand Down
7 changes: 0 additions & 7 deletions src/gix.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//! The `gitoxide` plumbing.
//! ## Feature Flags
#![cfg_attr(
feature = "document-features",
cfg_attr(doc, doc = ::document_features::document_features!())
)]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#![deny(unsafe_code, rust_2018_idioms)]

mod plumbing;
Expand Down

0 comments on commit 518159d

Please sign in to comment.