wub
77041876ee
Add len_u16 and len_u8 features.
2026-05-24 10:31:01 -07:00
Niklas Fiekas
1bc606d8c8
Fix warning about hidden elided lifetime in Drain
2026-05-03 14:24:03 +02:00
Sergey "Shnatsel" Davidoff
29daea95b9
Fix double-free for ZSTs with Drop in .extend()
2026-05-03 14:23:52 +02:00
Sergey "Shnatsel" Davidoff
0ff49b9614
add a test demonstrating double-free in extend() for ZSTs
2026-05-03 14:23:52 +02:00
Kornel
812c83a2b1
Use 16-bit lengths on 16-bit targets
2024-10-17 10:55:15 +02:00
Tobias Bucher
4ef0e89028
Add ArrayVec::spare_capacity_mut
...
This mirrors `Vec::spare_capacity_mut`. Description and example are
taken from this function, too.
CC #278
2024-10-16 21:18:15 +02:00
Ulrik Sverdrup
0aede877fe
0.7.6
2024-08-17 14:13:49 +02:00
Ulrik Sverdrup
909c766e90
Exclude AsRef<Path> for no-std builds
...
And test no-std in CI.
2024-08-17 15:12:44 +03:00
Ulrik Sverdrup
f3732a0b4c
0.7.5
2024-08-17 14:40:27 +03:00
Ulrik Sverdrup
b629f5220a
Update ci actions
2024-07-31 15:22:35 +02:00
Zoey Llewellyn Hewll
aadc8df8c7
implement AsRef<Path> for ArrayString
2024-07-30 21:14:50 +02:00
Dirk Stolle
b2886dcec0
DOC: Fix typos in changelog
...
[ci skip]
2024-07-30 21:13:52 +02:00
Ulrik Sverdrup
274fb2d531
Test MSRV with old versions
2024-07-30 21:12:33 +02:00
Ulrik Sverdrup
201d23a485
Set rust-version in Cargo.toml
2024-07-30 21:12:33 +02:00
Ulrik Sverdrup
cee33ee1e8
Remove disabled and now-redundant tests
2024-07-30 17:34:36 +02:00
ltdk
3a75e11edc
Add as_slice & as_mut_slice methods to IntoIter
2024-03-26 09:06:53 +01:00
Ulrik Sverdrup
f243d433ef
Remove borsch from msrv builder
...
Is not supported at msrv anyway (msrv applies to defaults)
2024-03-12 21:49:34 +01:00
Ulrik Sverdrup
5a2edb68b9
Update changelog
2024-03-11 22:54:20 +01:00
Jan Špaček
ae6cfd3baf
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
2024-03-07 21:11:18 +01:00
Mateusz Kowalczyk
4337b1bdd7
Optional support for borsh serialization
2024-03-07 21:11:18 +01:00
YuhanLiin
7a1722ed0f
Update release notes
2024-03-07 21:06:22 +01:00
YuhanLiin
9f45cc26c3
Make as_ptr and as_mut_ptr on ArrayString public
2024-03-07 21:06:22 +01:00
JakkuSakura
1cd7b9d859
feat: put len before xs
2024-03-07 21:05:54 +01:00
Ulrik Sverdrup
27401fbc22
Fix miri error in extend_zst
...
Miri reported this here:
Undefined Behavior: memory access failed: alloc42975 has size 4, so
pointer at offset 5 is out-of-bounds
specifically for the ptr.write() where ptr is a pointer to ZST.
Somewhat confusing that miri complains about the write, maybe a new
feature.
2024-03-07 20:44:32 +01:00
Ulrik Sverdrup
2c92a59bed
0.7.4
2023-06-17 21:58:14 +02:00
bluss
2cd12ef4be
Merge pull request #240 from elichai/zeroize
...
Optionally implement Zeroize on ArrayVec/ArrayString
2023-06-15 11:03:37 +02:00
Elichai Turkel
71200c01b9
Add Zeroize and benches to the CI matrix
2023-06-14 15:05:11 +03:00
Elichai Turkel
bb9279e2a6
Optionally implement Zeroize on ArrayVec/ArrayString
2023-06-13 22:03:50 +03:00
Ulrik Sverdrup
4ab6d63958
0.7.3
2023-06-12 21:39:49 +02:00
bluss
671274484b
Merge pull request #236 from kornelski/track_caller
...
track_caller for capacity overflow panics
2023-05-05 21:24:17 +02:00
Kornel
dc33f756d0
track_caller for capacity overflow panics
2023-04-10 22:45:30 +01:00
bluss
0e131fd781
Merge pull request #230 from msrd0/string-borrowmut
...
Add missing `BorrowMut` implementation for `ArrayString`
2022-11-12 10:04:16 +01:00
bluss
0637cb7997
Merge pull request #226 from clubby789/sb-fixes
...
Fix stacked borrows violations
2022-11-12 10:03:42 +01:00
clubby789
c9ff579405
Fix stacked borrows violations
...
Use offsets from a single pointer instead of multiple pointers into an array.
Also removed an integer-pointer cast
2022-11-12 09:46:43 +01:00
bluss
a927f7cf03
Merge pull request #215 from RalfJung/miri
...
update Miri CI config
2022-11-12 09:45:13 +01:00
Dominic
9dd3f3c67b
Add missing BorrowMut for ArrayString
2022-11-09 17:08:42 +01:00
Ralf Jung
c65c66e855
update Miri CI config
2022-03-08 15:49:57 -05:00
bluss
67ec907a98
0.7.2
2021-10-28 18:53:54 +02:00
bluss
a4690c9389
Merge pull request #194 from bhgomes/const-fns
...
Upgrade length/capacity-related functions to const-fn
2021-10-27 19:56:40 +02:00
bluss
4c8149a875
Merge pull request #200 from niklasf/follow-vec-retain
...
Follow optimization of std::Vec::retain (rust-lang/rust#88060 )
2021-10-27 19:53:35 +02:00
Niklas Fiekas
bc21f19e70
Follow optimization of std::Vec::retain ( rust-lang/rust#88060 )
2021-10-08 10:38:58 +02:00
bluss
e209a5076a
Merge pull request #197 from c410-f3r/str
...
Add `zero_filled` constructor
2021-08-14 22:05:43 +02:00
bluss
1e74077b72
Doc/wording edit for zero_filled
2021-08-14 13:37:00 +02:00
Caio
e98cb1c81a
Typo
2021-08-13 20:06:03 -03:00
Caio
f5acafa0b3
Add zero_filled constructor
2021-08-13 20:04:44 -03:00
Brandon H. Gomes
17c5dd051e
upgrade len/capacity-related functions to const-fn
2021-08-01 13:54:17 -04:00
Brandon H. Gomes
481f93084e
add remaining_capacity to ArrayString
2021-08-01 13:53:21 -04:00
bluss
e5b3c9bc6c
Merge pull request #189 from clarfonthey/as_mut_str
...
Add ArrayString::as_mut_str
2021-06-20 23:41:01 +02:00
ltdk
c4917813b8
Add ArrayString::as_mut_str
2021-06-20 15:35:54 -04:00
bluss
0c866b32f0
0.7.1
2021-06-05 15:13:37 +02:00