Skip to content

Commit 6dcd9f4

Browse files
bors[bot]hug-dev
andauthored
Merge #256
256: Add embedded targets to docs.rs r=jonas-schievink a=hug-dev Some modules of this repo are gated by the various targets and hence docs.rs does not show the documentation for them! Like the Armv8-M ones for [example](#217 (comment)) and the `cmse` module. docs.rs now allows building for specific target and since [this PR](rust-lang/docs.rs#633) even for targets available via `rustup`! The `stm32f3_discovery` crate does it, look at ["Platform" on docs.rs](https://docs.rs/stm32f3-discovery/0.4.0/stm32f3_discovery/index.html). So I think it would be very neat to have on `cortex-m` and I proposing to add the following targets. The first one will show by default, I choosed the latest and greatest for that 😄 I tested locally with `cargo doc --target ...` for all of them. Co-authored-by: Hugues de Valon <[email protected]>
2 parents d57bff9 + 51dfa4d commit 6dcd9f4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Cargo.toml

+11
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ bare-metal = { version = "0.2.0", features = ["const-fn"] }
2020
volatile-register = "0.2.0"
2121
bitfield = "0.13.2"
2222

23+
[package.metadata.docs.rs]
24+
targets = [
25+
"thumbv8m.main-none-eabihf",
26+
"thumbv6m-none-eabi",
27+
"thumbv7em-none-eabi",
28+
"thumbv7em-none-eabihf",
29+
"thumbv7m-none-eabi",
30+
"thumbv8m.base-none-eabi",
31+
"thumbv8m.main-none-eabi"
32+
]
33+
2334
[features]
2435
cm7-r0p1 = []
2536
inline-asm = []

0 commit comments

Comments
 (0)