Skip to content

Commit 973790b

Browse files
committed
Only provide docs.rs pages for Android targets
Even though a lot of `cfg` make it possible to compile this Android-specific crate on non-Android platforms, only seeing non-Android platforms inside the docs.rs platform dropdown appears a bit strange. Instead, build the documentation for every Android platform listed at https://doc.rust-lang.org/rustc/platform-support/android.html, which might also result in better intradoc links to specific types provided by `std`.
1 parent e7a57d3 commit 973790b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Cargo.toml

+10
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ keywords = ["android", "bindings", "log", "logger"]
1212
categories = ["api-bindings"]
1313
edition = "2021"
1414

15+
[package.metadata.docs.rs]
16+
targets = [
17+
"aarch64-linux-android",
18+
"arm-linux-androideabi",
19+
"armv7-linux-androideabi",
20+
"i686-linux-android",
21+
"thumbv7neon-linux-androideabi",
22+
"x86_64-linux-android",
23+
]
24+
1525
[features]
1626
default = ["regex"]
1727
regex = ["env_filter/regex"]

0 commit comments

Comments
 (0)