aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2020-08-23 14:40:44 +0000
committerGravatar GitHub <noreply@github.com> 2020-08-23 14:40:44 +0000
commit6dcd9f4689a83545f088aa43e3ef3238cac38c08 (patch)
treef6571eded75e34704161158deaa0c7fc9a2fd6c6
parentd57bff955cf2dd5dd824cfcecd227969ac1ccb16 (diff)
parent51dfa4d25f54705b2a7efb7fca08062b00bb1891 (diff)
downloadcortex-m-6dcd9f4689a83545f088aa43e3ef3238cac38c08.tar.gz
cortex-m-6dcd9f4689a83545f088aa43e3ef3238cac38c08.tar.zst
cortex-m-6dcd9f4689a83545f088aa43e3ef3238cac38c08.zip
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](https://github.com/rust-embedded/cortex-m/issues/217#issuecomment-661039292) and the `cmse` module. docs.rs now allows building for specific target and since [this PR](https://github.com/rust-lang/docs.rs/pull/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 <hugues.devalon@arm.com>
-rw-r--r--Cargo.toml11
1 files changed, 11 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 6bdb11a..e995d82 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -20,6 +20,17 @@ bare-metal = { version = "0.2.0", features = ["const-fn"] }
volatile-register = "0.2.0"
bitfield = "0.13.2"
+[package.metadata.docs.rs]
+targets = [
+ "thumbv8m.main-none-eabihf",
+ "thumbv6m-none-eabi",
+ "thumbv7em-none-eabi",
+ "thumbv7em-none-eabihf",
+ "thumbv7m-none-eabi",
+ "thumbv8m.base-none-eabi",
+ "thumbv8m.main-none-eabi"
+]
+
[features]
cm7-r0p1 = []
inline-asm = []