Skip to content

Commit d62efc4

Browse files
Docs links for local rustdoc and docs.rs
1 parent 1ac2899 commit d62efc4

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ The following side fruit is `std`-only, but related: `std::sync::mutex::data_ptr
334334
https://doc.rust-lang.org/nightly/core/cell/struct.Cell.html#method.as_array_of_cells
335335
[`core::ops::Deref`]: https://doc.rust-lang.org/nightly/core/ops/trait.Deref.html
336336
[`core::convert::From`]: https://doc.rust-lang.org/nightly/core/convert/trait.From.html
337+
337338
[`demo_bug/non_lto`]: demo_bug/non_lto/
338339
[`demo_bug/fat_lto`]: demo_bug/fat_lto/
339340
[`demo_fix/fat_lto`]: demo_fix/fat_lto/

src/lib.rs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,35 @@
55
//! [`ndd::NonDeDuplicated`]: crate::NonDeDuplicated
66
//! [`ndd::NonDeDuplicatedStr`]: crate::NonDeDuplicatedStr
77
//! [`ndd::NonDeDuplicatedCStr`]: crate::NonDeDuplicatedCStr
8-
//!
8+
//! [`src/lib.rs`]: https://github.com/peter-lyons-kehl/ndd/blob/main/src/lib.rs
9+
//! [`demo_fix/callee/src/lib.rs`]: https://github.com/peter-lyons-kehl/ndd/blob/main/demo_fix/callee/src/lib.rs
910
//! [`core::ptr::eq`]: core::ptr::eq
1011
//! [`core::ptr::addr_eq`]: core::ptr::addr_eq
12+
//! [`src/lib.rs` -> `tests_without_ndd` -> `addresses_unique_between_statics()`]: https://github.com/peter-lyons-kehl/ndd/blob/main/src/lib.rs#L269
13+
//! [`demo_bug/`]: https://github.com/peter-lyons-kehl/ndd/tree/main/demo_bug
1114
//! [`core::cell::Cell`]: core::cell::Cell
1215
//! [`core::marker::Sync`]: core::marker::Sync
1316
//! [`core::marker::Send`]: core::marker::Send
1417
//! [`std::sync::Mutex`]: std::sync::Mutex#impl-Sync-for-Mutex<T>
18+
//! [`src/lib.rs` -> `tests_with_ndd`]: https://github.com/peter-lyons-kehl/ndd/blob/main/src/lib.rs#L355
1519
//! [`alloc`]: alloc
1620
//! [`core::ops::Drop`]: core::ops::Drop
21+
//! [`pre-commit`]: https://github.com/peter-lyons-kehl/ndd/blob/main/pre-commit
22+
//! [GitHub Actions]: https://github.com/peter-lyons-kehl/ndd/blob/main/.github/workflows/main.yml
23+
//!
1724
//! [`core::cell::Cell::as_array_of_cells`]: core::cell::Cell::as_array_of_cells
1825
//! [`core::ops::Deref`]: core::ops::Deref
1926
//! [`core::convert::From`]: core::convert::From
27+
//!
28+
//! [`demo_bug/non_lto`]: https://github.com/peter-lyons-kehl/ndd/tree/main/demo_bug/non_lto/
29+
//! [`demo_bug/fat_lto`]: https://github.com/peter-lyons-kehl/ndd/tree/main/demo_bug/fat_lto/
30+
//! [`demo_fix/fat_lto`]: https://github.com/peter-lyons-kehl/ndd/tree/main/demo_fix/fat_lto/
31+
//! [`non_dedup.sh`]: https://github.com/peter-lyons-kehl/ndd/blob/main/demo_shared_scripts//non_dedup.sh
32+
//! [`dedup_out.sh`]: https://github.com/peter-lyons-kehl/ndd/blob/main/demo_shared_scripts//dedup_out.sh
33+
//! [`liter_str`]: https://github.com/peter-lyons-kehl/ndd/blob/main/demo_shared_src/liter_str.rs
34+
//! [`const_str`]: https://github.com/peter-lyons-kehl/ndd/blob/main/demo_shared_src/const_str.rs
35+
//! [`const_opt`]: https://github.com/peter-lyons-kehl/ndd/blob/main/demo_shared_src/const_opt.rs
36+
//! [`const_u8s`]: https://github.com/peter-lyons-kehl/ndd/blob/main/demo_shared_src/const_u8s.rs
2037
#![doc = include_str!("../README.md")]
2138
#![cfg_attr(not(any(doc, test)), no_std)]
2239
#[cfg(doc)]

0 commit comments

Comments
 (0)