Skip to content

Commit 25e19e1

Browse files
committed
doc: include CHANGELOG.md as the documentation of crate::_changelog_
1 parent 5c28299 commit 25e19e1

File tree

8 files changed

+32
-0
lines changed

8 files changed

+32
-0
lines changed

src/r3/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ pub extern crate core;
5959
#[doc(hidden)]
6060
pub extern crate arrayvec;
6161

62+
#[cfg(doc)]
63+
#[doc = include_str!("../CHANGELOG.md")]
64+
pub mod _changelog_ {}
65+
6266
#[macro_use]
6367
pub mod utils;
6468
#[macro_use]

src/r3_port_arm/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ pub extern crate r3_portkit;
2929
#[cfg(target_os = "none")]
3030
pub extern crate core;
3131

32+
#[cfg(doc)]
33+
#[doc = include_str!("../CHANGELOG.md")]
34+
pub mod _changelog_ {}
35+
3236
#[cfg(target_os = "none")]
3337
mod arm;
3438

src/r3_port_arm_m/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
#![doc = include_str!("./lib.md")]
1616
#![no_std]
1717

18+
#[cfg(doc)]
19+
#[doc = include_str!("../CHANGELOG.md")]
20+
pub mod _changelog_ {}
21+
1822
/// The [`r3::kernel::PortThreading`] implementation.
1923
#[doc(hidden)]
2024
pub mod threading {

src/r3_port_riscv/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ pub extern crate r3_portkit;
3030
#[doc(hidden)]
3131
pub extern crate core;
3232

33+
#[cfg(doc)]
34+
#[doc = include_str!("../CHANGELOG.md")]
35+
pub mod _changelog_ {}
36+
3337
/// The Platform-Level Interrupt Controller driver.
3438
#[doc(hidden)]
3539
pub mod plic {

src/r3_port_std/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ use std::{
2323
};
2424
use try_mutex::TryMutex;
2525

26+
#[cfg(doc)]
27+
#[doc = include_str!("../CHANGELOG.md")]
28+
pub mod _changelog_ {}
29+
2630
#[cfg(unix)]
2731
#[path = "threading_unix.rs"]
2832
mod threading;

src/r3_portkit/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
#![deny(unsupported_naked_functions)]
1010
#![no_std]
1111

12+
#[cfg(doc)]
13+
#[doc = include_str!("../CHANGELOG.md")]
14+
pub mod _changelog_ {}
15+
1216
#[macro_use]
1317
pub mod utils;
1418

src/r3_support_rp2040/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
#![deny(unsupported_naked_functions)]
1414
#![no_std]
1515

16+
#[cfg(doc)]
17+
#[doc = include_str!("../CHANGELOG.md")]
18+
pub mod _changelog_ {}
19+
1620
pub mod clock;
1721
pub mod serial;
1822
pub mod stdout;

src/r3_support_rza1/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ pub extern crate r3_portkit;
2424
#[doc(hidden)]
2525
pub extern crate r3_port_arm;
2626

27+
#[cfg(doc)]
28+
#[doc = include_str!("../CHANGELOG.md")]
29+
pub mod _changelog_ {}
30+
2731
/// The RZ/A1 OS Timer driver.
2832
#[doc(hidden)]
2933
pub mod os_timer {

0 commit comments

Comments
 (0)