Skip to content

Commit ced551d

Browse files
committed
Final touches
1 parent 74864ff commit ced551d

File tree

8 files changed

+14
-15
lines changed

8 files changed

+14
-15
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Change Log
22

3-
## [0.10.2] - 2025-09-25
3+
## [0.10.2] - 2025-09-26
44

55
### Fixed
66

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ members = [
77
]
88

99
[workspace.dependencies]
10-
epserde = {path="./epserde", version="0.10.1"}
11-
epserde-derive = {path="./epserde-derive", version="0.10.0"}
10+
epserde = {path="./epserde", version="0.10.2"}
11+
epserde-derive = {path="./epserde-derive", version="0.10.2"}

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ implementation are considered deep-copy.
747747
There is a blanket implementation for the [`DeepCopy`] trait for all types
748748
implementing [`CopyType`] with associated type [`CopyType::Copy`] equal to
749749
[`Deep`] and also implementing [`SerInner`] with [`SerInner::SerType`]
750-
implementing [`TypeHash`] and [`ReprHash`] (i.e., the serialization type must
750+
implementing [`TypeHash`] and [`AlignHash`] (i.e., the serialization type must
751751
implement such traits).
752752

753753
There is analogously a blanket implementation for the [`ZeroCopy`] trait for all
@@ -827,7 +827,7 @@ An ε-serde serialization process involves two types:
827827

828828
* `S`, the _serializable type_, which is the type of the instance you want to
829829
serialize. It must implement [`SerInner`] with associated type
830-
[`SerInner::SerType`] implementing [`TypeHash`] and [`ReprHash`] (which
830+
[`SerInner::SerType`] implementing [`TypeHash`] and [`AlignHash`] (which
831831
implies [`Serialize`] on `S` by a blanket implementation).
832832

833833
* Its associated _serialization type_ `<S as SerInner>::SerType`.
@@ -849,7 +849,7 @@ An ε-serde deserialization process involves instead three types:
849849

850850
* `D`, the _deserializable type_, which must implement [`DeserInner`], and again
851851
[`SerInner`] with associated type [`SerInner::SerType`] implementing
852-
[`TypeHash`] and [`ReprHash`], so the blanket implementation for
852+
[`TypeHash`] and [`AlignHash`], so the blanket implementation for
853853
[`Deserialize`] applies. This is the type on which deserialization methods are
854854
invoked.
855855

@@ -994,11 +994,11 @@ used to make a structure zero-copy, albeit it must satisfy [a few
994994
prerequisites].
995995

996996
You can also implement manually the traits [`CopyType`], [`AlignTo`],
997-
[`TypeHash`], [`ReprHash`], [`SerInner`], and [`DeserInner`], but
997+
[`TypeHash`], [`AlignHash`], [`SerInner`], and [`DeserInner`], but
998998
the process is error-prone, and you must be fully aware of ε-serde's
999999
conventions. The procedural macro [`TypeInfo`] can be used to generate
10001000
automatically at least [`CopyType`], [`AlignTo`], [`TypeHash`], and
1001-
[`ReprHash`] automatically.
1001+
[`AlignHash`] automatically.
10021002

10031003
## Acknowledgments
10041004

epserde-derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = [
66
"Sebastiano Vigna <sebastiano.vigna@unimi.it>",
77
]
88
description = "Procedural macros for ε-serde"
9-
version = "0.10.0"
9+
version = "0.10.2"
1010
edition = "2024"
1111
repository = "https://github.com/vigna/epserde-rs/"
1212
license = "Apache-2.0 OR LGPL-2.1-or-later"

epserde/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = [
66
"Sebastiano Vigna <sebastiano.vigna@unimi.it>",
77
]
88
description = "ε-serde is an ε-copy (i.e., almost zero-copy) serialization/deserialization framework"
9-
version = "0.10.1"
9+
version = "0.10.2"
1010
edition = "2024"
1111
repository = "https://github.com/vigna/epserde-rs/"
1212
license = "Apache-2.0 OR LGPL-2.1-or-later"

epserde/src/ser/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ pub trait SerInner {
173173
/// Note the bound on the serialization type or `T`: we need to be able to
174174
/// compute type and alignment hashes for it. We could bind the serialization
175175
/// type itself in the definition of [`SerInner`], but having the bound here
176-
/// instead gives us more flexibility and makes the implementation of [`Owned`]
177-
/// possible.
176+
/// instead gives us more flexibility and makes the implementation of
177+
/// [`Owned`](crate::deser::Owned) easier.
178178
impl<T: SerInner<SerType: TypeHash + AlignHash>> Serialize for T {
179179
unsafe fn ser_on_field_write(&self, backend: &mut impl WriteWithNames) -> Result<()> {
180180
// write the header using the serialization type, not the type itself

epserde/src/traits/copy_type.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ pub trait ZeroCopy:
115115
}
116116

117117
impl<
118-
'a,
119118
T: CopyType<Copy = Zero>
120119
+ Copy
121120
+ SerInner<SerType = Self>

0 commit comments

Comments
 (0)