Skip to content

Commit 3f2031c

Browse files
bors[bot]japaric
andcommitted
Merge #152
152: doc related changes r=adamgreig a=japaric see individual commit messages for details Co-authored-by: Jorge Aparicio <[email protected]>
2 parents 296f3b3 + 74976ae commit 3f2031c

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

cortex-m-rt/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["Jorge Aparicio <[email protected]>", "Hideki Sekine <[email protected]>"]
33
categories = ["embedded", "no-std"]
44
description = "Minimal runtime / startup for Cortex-M microcontrollers"
5-
documentation = "https://rust-embedded.github.io/cortex-m-rt/"
5+
documentation = "https://docs.rs/cortex-m-rt/"
66
keywords = ["arm", "cortex-m", "runtime", "startup"]
77
license = "MIT OR Apache-2.0"
88
name = "cortex-m-rt"
@@ -33,3 +33,6 @@ required-features = ["device"]
3333

3434
[features]
3535
device = []
36+
37+
[package.metadata.docs.rs]
38+
features = ["device"]

cortex-m-rt/src/lib.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,17 @@
1616
//!
1717
//! This crate also provides the following attributes:
1818
//!
19-
//! - [`#[entry]`] to declare the entry point of the program
20-
//! - [`#[exception]`] to override an exception handler. If not overridden all exception handlers
19+
//! - `#[entry]` to declare the entry point of the program
20+
//! - `#[exception]` to override an exception handler. If not overridden all exception handlers
2121
//! default to an infinite loop.
22-
//! - [`#[pre_init]`] to run code *before* `static` variables are initialized
23-
//!
24-
//! [`#[entry]`]: ../cortex_m_rt_macros/fn.entry.html
25-
//! [`#[exception]`]: ../cortex_m_rt_macros/fn.exception.html
26-
//! [`#[pre_init]`]: ../cortex_m_rt_macros/fn.pre_init.html
22+
//! - `#[pre_init]` to run code *before* `static` variables are initialized
2723
//!
2824
//! This crate also implements a related attribute called `#[interrupt]`, which allows you
2925
//! to define interrupt handlers. However, since which interrupts are available depends on the
3026
//! microcontroller in use, this attribute should be re-exported and used from a device crate.
3127
//!
28+
//! The documentation for these attributes can be found in the [Reexports](#reexports) section.
29+
//!
3230
//! # Requirements
3331
//!
3432
//! ## `memory.x`

0 commit comments

Comments
 (0)