unreleased - ReleaseDate
0.14.0 - 2023-03-01
- Added
ToBorshBytes
andstdto::borsh_bytes
conversion. - Added
to_borsh_hash
inToHash
trait. - Added
stdto::borsh
that is likestdto::serde
.
Released by @just-do-halee.
0.13.0 - 2022-12-26
- Default exported
ToStringForBytes
trait. - Refactor
ToHex
. - Removed the feature
bytes
in thehex
feature.hex
is now independent.hex = []
.
Released by @just-do-halee.
0.12.0 - 2022-12-22
DebugBytes
andDebugHex
, along with all other future debug printing traits, are now printing without including #.
- Added
DebugHash
and#[debug(hasher = ...)]
.
Released by @just-do-halee.
0.11.0 - 2022-12-21
- Default export
AsBytes
trait.
Released by @just-do-halee.
0.10.0 - 2022-12-21
- Fixed all of
AsRef<[u8]>
toAsBytes
.
Released by @just-do-halee.
0.9.0 - 2022-12-21
- Some of methods in the
ToJson
.
- Added features
yaml
andtoml
andfile
. - Added
ToYaml
andstdto::yaml
conversion. - Added
ToToml
andstdto::toml
conversion.
Released by @just-do-halee.
0.8.0 - 2022-12-21
- Added
#[non_exhaustive]
attribute on the Error enum and Endian enum.
Released by @just-do-halee.
0.7.0 - 2022-12-20
- features in Cargo.toml.
- Added
AsBytes
for general purpose trait. - Refactor
ToHex
andToStringForRef
. - Renamed
ToStringForRef
toToStringForBytes
. - Added
DebugBytes
derive macro for debugging with automatic bytes representation when theDebugBytes
is derived. - Added
DebugHex
derive macro for debugging with automatic hexadecimal string representation when theDebugHex
is derived.
Released by @just-do-halee.
0.6.0 - 2022-12-14
- Added
ToJson
andstdto::json
conversion. - Added
ToStringForRef
functional trait for converting betweenAsRef<[u8]>
andString
or&str
.
- No need to implement
#[stdo::serde]
anymore. Also no need to concern about conflicting#[stdto::serde]
and#[stdto::bytes]
and#[stdto::json]
. - Changed all of
..from_bytes_..<'a>(..: &'a [u8])..
to..from_bytes_..(..: impl AsRef<[u8]>)..
. - Added
as_bytes()
,into_bytes()
in theToBytesForRef
trait.
Released by @just-do-halee.
0.5.0 - 2022-12-13
- Added const fn
ToBytesOptions::default()
. - Added
ToBytesForRef
functional trait for creatingVec<u8>
fromAsRef<[u8]>
.
- Refactor Cargo.toml: dependency features.
- It's okay to derive
ToBytes
withoutserde::Serialize
. But if you want to use the methods of de/serialization, you should deriveserde::Serialize
orserde::Deserialize
. - ..from_hex(..:
impl AsRef<str>
) to ..from_hex(..:impl AsRef<[u8]>
).
Released by @just-do-halee.
0.4.0 - 2022-12-13
- Added
prelude
module for core and derive traits only. - Added
to_ne_bytes..
andfrom_ne_bytes..
methods inToBytes
.
- Fixed
#[stdto::bytes(endian = "native")]
typo bug.
Released by @just-do-halee.
0.3.0 - 2022-12-12
- Renamed the methods in
ToBytes
and Added the const ToBytesOptions. - Re-design [features].
- Added an attribute #[stdto::bytes(endian = "...")]. (little/big/native)
Released by @just-do-halee.
0.2.0 - 2022-12-10
- Added
ToHash
andstdto::hash
conversion. - Added
ToHex
and implement it to AsRef<[u8]>.
- Now customizable
ToBytes
trait.
Released by @just-do-halee.
0.1.0 - 2022-12-10
Released by @just-do-halee.