Skip to content

Commit 56795a3

Browse files
committed
Fix broken doc links
Release 0.8.2. This is a point in favor of landing #1021
1 parent 7f2d45d commit 56795a3

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
[package]
1616
edition = "2021"
1717
name = "zerocopy"
18-
version = "0.8.1"
18+
version = "0.8.2"
1919
authors = ["Joshua Liebow-Feeser <[email protected]>"]
2020
description = "Zerocopy makes zero-cost memory manipulation effortless. We write \"unsafe\" so you don't have to."
2121
categories = ["embedded", "encoding", "no-std::no-alloc", "parsing", "rust-patterns"]
@@ -77,13 +77,13 @@ std = ["alloc"]
7777
__internal_use_only_features_that_work_on_stable = ["alloc", "derive", "simd", "std"]
7878

7979
[dependencies]
80-
zerocopy-derive = { version = "=0.8.1", path = "zerocopy-derive", optional = true }
80+
zerocopy-derive = { version = "=0.8.2", path = "zerocopy-derive", optional = true }
8181

8282
# The "associated proc macro pattern" ensures that the versions of zerocopy and
8383
# zerocopy-derive remain equal, even if the 'derive' feature isn't used.
8484
# See: https://github.com/matklad/macro-dep-test
8585
[target.'cfg(any())'.dependencies]
86-
zerocopy-derive = { version = "=0.8.1", path = "zerocopy-derive" }
86+
zerocopy-derive = { version = "=0.8.2", path = "zerocopy-derive" }
8787

8888
[dev-dependencies]
8989
itertools = "0.11"
@@ -97,6 +97,6 @@ testutil = { path = "testutil" }
9797
# CI test failures.
9898
trybuild = { version = "=1.0.89", features = ["diff"] }
9999
# In tests, unlike in production, zerocopy-derive is not optional
100-
zerocopy-derive = { version = "=0.8.1", path = "zerocopy-derive" }
100+
zerocopy-derive = { version = "=0.8.2", path = "zerocopy-derive" }
101101
# TODO(#381) Remove this dependency once we have our own layout gadgets.
102102
elain = "0.3.0"

src/lib.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,7 @@ pub unsafe trait TryFromBytes {
13571357
///
13581358
/// `Self` may be a sized type, a slice, or a [slice DST][slice-dst].
13591359
///
1360-
/// [valid-size]: crate#what-is-a-valid-size
1360+
/// [valid-size]: crate::KnownLayout#what-is-a-valid-size
13611361
/// [self-unaligned]: Unaligned
13621362
/// [slice-dst]: KnownLayout#dynamically-sized-types
13631363
///
@@ -1459,7 +1459,7 @@ pub unsafe trait TryFromBytes {
14591459
///
14601460
/// `Self` may be a sized type, a slice, or a [slice DST][slice-dst].
14611461
///
1462-
/// [valid-size]: crate#what-is-a-valid-size
1462+
/// [valid-size]: crate::KnownLayout#what-is-a-valid-size
14631463
/// [self-unaligned]: Unaligned
14641464
/// [slice-dst]: KnownLayout#dynamically-sized-types
14651465
///
@@ -1545,7 +1545,7 @@ pub unsafe trait TryFromBytes {
15451545
///
15461546
/// `Self` may be a sized type, a slice, or a [slice DST][slice-dst].
15471547
///
1548-
/// [valid-size]: crate#what-is-a-valid-size
1548+
/// [valid-size]: crate::KnownLayout#what-is-a-valid-size
15491549
/// [self-unaligned]: Unaligned
15501550
/// [slice-dst]: KnownLayout#dynamically-sized-types
15511551
///
@@ -1631,7 +1631,7 @@ pub unsafe trait TryFromBytes {
16311631
///
16321632
/// `Self` may be a sized type, a slice, or a [slice DST][slice-dst].
16331633
///
1634-
/// [valid-size]: crate#what-is-a-valid-size
1634+
/// [valid-size]: crate::KnownLayout#what-is-a-valid-size
16351635
/// [self-unaligned]: Unaligned
16361636
/// [slice-dst]: KnownLayout#dynamically-sized-types
16371637
///
@@ -1739,7 +1739,7 @@ pub unsafe trait TryFromBytes {
17391739
///
17401740
/// `Self` may be a sized type, a slice, or a [slice DST][slice-dst].
17411741
///
1742-
/// [valid-size]: crate#what-is-a-valid-size
1742+
/// [valid-size]: crate::KnownLayout#what-is-a-valid-size
17431743
/// [self-unaligned]: Unaligned
17441744
/// [slice-dst]: KnownLayout#dynamically-sized-types
17451745
///
@@ -1834,7 +1834,7 @@ pub unsafe trait TryFromBytes {
18341834
///
18351835
/// `Self` may be a sized type, a slice, or a [slice DST][slice-dst].
18361836
///
1837-
/// [valid-size]: crate#what-is-a-valid-size
1837+
/// [valid-size]: crate::KnownLayout#what-is-a-valid-size
18381838
/// [self-unaligned]: Unaligned
18391839
/// [slice-dst]: KnownLayout#dynamically-sized-types
18401840
///
@@ -3444,7 +3444,7 @@ pub unsafe trait FromBytes: FromZeros {
34443444
///
34453445
/// `Self` may be a sized type, a slice, or a [slice DST][slice-dst].
34463446
///
3447-
/// [valid-size]: crate#what-is-a-valid-size
3447+
/// [valid-size]: crate::KnownLayout#what-is-a-valid-size
34483448
/// [self-unaligned]: Unaligned
34493449
/// [size-error-from]: error/struct.SizeError.html#method.from-1
34503450
/// [slice-dst]: KnownLayout#dynamically-sized-types
@@ -3528,7 +3528,7 @@ pub unsafe trait FromBytes: FromZeros {
35283528
///
35293529
/// `Self` may be a sized type, a slice, or a [slice DST][slice-dst].
35303530
///
3531-
/// [valid-size]: crate#what-is-a-valid-size
3531+
/// [valid-size]: crate::KnownLayout#what-is-a-valid-size
35323532
/// [self-unaligned]: Unaligned
35333533
/// [size-error-from]: error/struct.SizeError.html#method.from-1
35343534
/// [slice-dst]: KnownLayout#dynamically-sized-types
@@ -3612,7 +3612,7 @@ pub unsafe trait FromBytes: FromZeros {
36123612
///
36133613
/// `Self` may be a sized type, a slice, or a [slice DST][slice-dst].
36143614
///
3615-
/// [valid-size]: crate#what-is-a-valid-size
3615+
/// [valid-size]: crate::KnownLayout#what-is-a-valid-size
36163616
/// [self-unaligned]: Unaligned
36173617
/// [size-error-from]: error/struct.SizeError.html#method.from-1
36183618
/// [slice-dst]: KnownLayout#dynamically-sized-types
@@ -3680,7 +3680,7 @@ pub unsafe trait FromBytes: FromZeros {
36803680
///
36813681
/// `Self` may be a sized type, a slice, or a [slice DST][slice-dst].
36823682
///
3683-
/// [valid-size]: crate#what-is-a-valid-size
3683+
/// [valid-size]: crate::KnownLayout#what-is-a-valid-size
36843684
/// [self-unaligned]: Unaligned
36853685
/// [size-error-from]: error/struct.SizeError.html#method.from-1
36863686
/// [slice-dst]: KnownLayout#dynamically-sized-types
@@ -3764,7 +3764,7 @@ pub unsafe trait FromBytes: FromZeros {
37643764
///
37653765
/// `Self` may be a sized type, a slice, or a [slice DST][slice-dst].
37663766
///
3767-
/// [valid-size]: crate#what-is-a-valid-size
3767+
/// [valid-size]: crate::KnownLayout#what-is-a-valid-size
37683768
/// [self-unaligned]: Unaligned
37693769
/// [size-error-from]: error/struct.SizeError.html#method.from-1
37703770
/// [slice-dst]: KnownLayout#dynamically-sized-types
@@ -3849,7 +3849,7 @@ pub unsafe trait FromBytes: FromZeros {
38493849
///
38503850
/// `Self` may be a sized type, a slice, or a [slice DST][slice-dst].
38513851
///
3852-
/// [valid-size]: crate#what-is-a-valid-size
3852+
/// [valid-size]: crate::KnownLayout#what-is-a-valid-size
38533853
/// [self-unaligned]: Unaligned
38543854
/// [size-error-from]: error/struct.SizeError.html#method.from-1
38553855
/// [slice-dst]: KnownLayout#dynamically-sized-types

src/ref.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ where
271271
///
272272
/// `T` may be a sized type, a slice, or a [slice DST][slice-dst].
273273
///
274-
/// [valid-size]: crate#what-is-a-valid-size
274+
/// [valid-size]: crate::KnownLayout#what-is-a-valid-size
275275
/// [t-unaligned]: Unaligned
276276
/// [size-error-from]: error/struct.SizeError.html#method.from-1
277277
/// [slice-dst]: KnownLayout#dynamically-sized-types
@@ -325,7 +325,7 @@ where
325325
///
326326
/// `T` may be a sized type, a slice, or a [slice DST][slice-dst].
327327
///
328-
/// [valid-size]: crate#what-is-a-valid-size
328+
/// [valid-size]: crate::KnownLayout#what-is-a-valid-size
329329
/// [t-unaligned]: Unaligned
330330
/// [size-error-from]: error/struct.SizeError.html#method.from-1
331331
/// [slice-dst]: KnownLayout#dynamically-sized-types
@@ -390,7 +390,7 @@ where
390390
///
391391
/// `T` may be a sized type, a slice, or a [slice DST][slice-dst].
392392
///
393-
/// [valid-size]: crate#what-is-a-valid-size
393+
/// [valid-size]: crate::KnownLayout#what-is-a-valid-size
394394
/// [t-unaligned]: Unaligned
395395
/// [size-error-from]: error/struct.SizeError.html#method.from-1
396396
/// [slice-dst]: KnownLayout#dynamically-sized-types

zerocopy-derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[package]
1010
edition = "2021"
1111
name = "zerocopy-derive"
12-
version = "0.8.1"
12+
version = "0.8.2"
1313
authors = ["Joshua Liebow-Feeser <[email protected]>"]
1414
description = "Custom derive for traits from the zerocopy crate"
1515
license = "BSD-2-Clause OR Apache-2.0 OR MIT"

0 commit comments

Comments
 (0)