Skip to content

Commit b412033

Browse files
committed
Show required features for documentation on docs.rs
rust-lang/rust#43781 Locally: RUSTDOCFLAGS='--cfg docsrs' cargo +nightly doc --all-features
1 parent a77bd2a commit b412033

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

fontheight-core/Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ rayon = { version = "1.10", optional = true }
2424
rustybuzz = "0.20.1"
2525
skrifa = "0.26.5"
2626
thiserror = "2"
27+
28+
[package.metadata.docs.rs]
29+
all-features = true
30+
rustdoc-args = ["--cfg", "docsrs"]

fontheight-core/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
2+
13
use std::collections::HashMap;
24

35
use exemplars::ExemplarCollector;

0 commit comments

Comments
 (0)