History

Replace all docsrs config by the document-features feature

Urgau committed 2 years ago

Commit bb3224c1 parent 2b80d8463 files · +93 −125Browse files

Showing the changes to gix-commitgraph (2 of 63 files). Show all

Unified · Split

2 files
  1. gix-commitgraph/Cargo.toml +0 −1
  2. gix-commitgraph/src/lib.rs +3 −3
gix-commitgraph/Cargo.toml+0−1
@@ -36,4 +36,3 @@ gix-date = { path = "../gix-date" } · 35 unmodified lines
3636 [package.metadata.docs.rs]
3737 all-features = true
3838 features = ["document-features"]
39−rustdoc-args = ["--cfg", "docsrs"]
gix-commitgraph/src/lib.rs+3−3
@@ -9,10 +9,10 @@ · 8 unmodified lines
99 //! Eventually, git will merge these files together as the number of files grows.
1010 //! ## Feature Flags
1111 #![cfg_attr(
12− feature = "document-features",
13− cfg_attr(doc, doc = ::document_features::document_features!())
12+ all(doc, feature = "document-features"),
13+ doc = ::document_features::document_features!()
1414 )]
15−#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
15+#![cfg_attr(all(doc, feature = "document-features"), feature(doc_cfg, doc_auto_cfg))]
1616 #![deny(missing_docs, rust_2018_idioms, unsafe_code)]
1717
1818 use std::path::Path;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t