Support custom errors in 'Encode' and 'Decode' (using associated 'Error' type); Further split 'EncodeError' into 'IsizeEncodeError', 'UsizeEncodeError', 'CollectionEncodeError', 'RefCellEncodeError', 'ItemEncodeError', and 'EnumEncodeError'; Fix the 'Encode' implementation of 'LinkedList'; Further split 'DecodeError' into 'BoolDecodeError', 'CharDecodeError', 'CStringDecodeError', 'NonZeroDecodeError', 'CollectionDecodeError', 'SystemTimeDecodeError', 'EnumDecodeError', and 'ItemDecodeError'; Honour custom discriminant types; Add 'DecodeBorrowed' trait (implement appropriately); Implement 'Decode' for 'Cow'; Refactor derive macros; Update lints; Rename test modules from 'test' to 'tests'; Restructure some trait implementations; Add 'proc-macro' feature flag; Add 'GenericEncodeError' and 'GenericDecodeError' error types for derived traits; Add 'PrimitiveDiscriminant' trait; Lock 'Arc' implementations behind atomic widths; Add '?Sized' clauses to some 'Encode' implementations; Update readme; Fix doc entry for 'SizedStr::new'; Update atomic tests; Make 'SizedEncode' a safe trait; Do not automatically implement 'Encode' when deriving 'SizedEncode'; Add 'copy_from_slice' method to 'SizedSlice'; Add 'each_ref' and 'each_mut' methods to 'SizedSlice'; Add more benchmarks; Remove Ciborium benchmarks; Rename project to *Librum*; Rename 'bzipper' crate to 'librum'; Rename 'bzipper_macros' crate to 'librum-macros'; Rename 'bzipper_benchmarks' crate to 'librum-benchmarks';

This commit is contained in:
Gabriel Bjørnager Jensen 2024-11-24 12:49:13 +01:00
parent 74b8d2caa2
commit 0160d295bd
78 changed files with 4630 additions and 2540 deletions

View file

@ -1,5 +1,5 @@
[workspace]
members = ["bzipper", "bzipper_benchmarks", "bzipper_macros"]
members = ["librum", "librum-benchmarks", "librum-macros"]
resolver = "2"
[workspace.package]
@ -7,14 +7,14 @@ authors = ["Gabriel Bjørnager Jensen"]
description = "Binary (de)serialiser."
readme = "README.md"
homepage = "https://achernar.dk/index.php?p=bzipper"
repository = "https://mandelbrot.dk/bzipper/"
repository = "https://mandelbrot.dk/librum/"
license = "LGPL-3.0-or-later"
keywords = ["api", "encoding", "io", "network", "no-std"]
categories = ["encoding", "network-programming", "parsing"]
[workspace.lints.clippy]
as_ptr_cast_mut = "forbid"
as_underscore = "warn"
as_underscore = "forbid"
assertions_on_result_states = "warn"
bool_to_int_with_if = "warn"
borrow_as_ptr = "forbid"
@ -90,8 +90,6 @@ mutex_integer = "deny"
needless_bitwise_bool = "deny"
needless_collect = "warn"
needless_continue = "warn"
needless_pass_by_ref_mut = "warn"
needless_pass_by_value = "deny"
needless_raw_string_hashes = "warn"
needless_raw_strings = "warn"
no_effect_underscore_binding = "deny"
@ -111,7 +109,6 @@ read_zero_byte_vec = "deny"
redundant_clone = "deny"
redundant_closure_for_method_calls = "warn"
redundant_else = "warn"
redundant_pub_crate = "warn"
redundant_type_annotations = "warn"
ref_as_ptr = "deny"
ref_binding_to_reference = "warn"
@ -142,7 +139,6 @@ unnested_or_patterns = "warn"
unused_async = "warn"
unused_peekable = "warn"
unused_rounding = "warn"
unused_self = "warn"
use_self = "deny"
used_underscore_binding = "deny"
useless_let_if_seq = "warn"