Skip to content

Commit 1f05c76

Browse files
doc: Avoid intra-doc links that don't resolve if the rkyv_0_8 feature isn't enabled
1 parent 1d81c50 commit 1f05c76

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/rustdoc-json-types/lib.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,20 @@
1919
//! ## `rkyv_0_8`
2020
//!
2121
//! We expose a `rkyv_0_8` feature, disabled by default. When enabled, it derives `rkyv`'s
22-
//! [`Archive`](rkyv::Archive), [`Serialize`](rkyv::Serialize) and [`Deserialize`](rkyv::Deserialize)
23-
//! traits for all types in this crate. Furthermore, it exposes the corresponding `Archived*` types
24-
//! (e.g. [`ArchivedId`] for [`Id`]).
22+
//! [`Archive`][3], [`Serialize`][4] and [`Deserialize`][5] traits for all types in this crate.
23+
//! Furthermore, it exposes the corresponding `Archived*` types (e.g. `ArchivedId` for [`Id`]).
2524
//!
2625
//! `rkyv` lets you works with JSON output without paying the deserialization cost _upfront_,
27-
//! thanks to [zero-copy deserialization][3].
26+
//! thanks to [zero-copy deserialization][6].
2827
//! You can perform various types of analyses on the `Archived*` version of the relevant types,
2928
//! incurring the full deserialization cost only for the subset of items you actually need.
3029
//!
3130
//! [1]: https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/rustc-hash.20and.20performance.20of.20rustdoc-types/near/474855731
3231
//! [2]: https://crates.io/crates/rustc-hash
33-
//! [3]: https://rkyv.org/zero-copy-deserialization.html
32+
//! [3]: https://docs.rs/rkyv/0.8.15/rkyv/trait.Archive.html
33+
//! [4]: https://docs.rs/rkyv/0.8.15/rkyv/trait.Serialize.html
34+
//! [5]: https://docs.rs/rkyv/0.8.15/rkyv/trait.Deserialize.html
35+
//! [6]: https://rkyv.org/zero-copy-deserialization.html
3436
3537
// # On `rkyv` Derives
3638
//

0 commit comments

Comments
 (0)