Improve optional support for borsh serialization

- Do not allocate when deserializing ArrayString
- Serialize length as u32, not as u64, to be consistent with
  serialization of [T] and str
- Add tests
This commit is contained in:
Jan Špaček
2024-01-18 10:15:50 +01:00
committed by bluss
parent 4337b1bdd7
commit ae6cfd3baf
4 changed files with 93 additions and 16 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ jobs:
matrix:
include:
- rust: 1.51.0 # MSRV
features: serde
features: serde, borsh
experimental: false
- rust: stable
features:
@@ -28,7 +28,7 @@ jobs:
features: serde
experimental: false
- rust: nightly
features: serde, zeroize
features: serde, borsh, zeroize
experimental: false
steps: