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
bluss
515a18cc88
Merge pull request #187 from conradludgate/into-inner-take
...
take and into_inner_unchecked functions
2021-05-31 23:43:55 +02:00
Conrad Ludgate
0fdf39f15d
debug-assert
2021-05-30 20:34:17 +01:00
Conrad Ludgate
16c8e4d40d
tests + docs
2021-05-29 13:01:14 +01:00
bluss
dfceb6d624
Merge pull request #186 from a1phyr/use_truncate_in_clone_from
...
Use `truncate` in `clone_from`
2021-05-29 09:03:40 +02:00
Conrad Ludgate
6dc46b3a1c
update take
2021-05-26 20:08:02 +01:00
Conrad Ludgate
8778483b12
feat: API additions
2021-05-25 21:57:59 +01:00
Benoît du Garreau
6be5ed4bc2
Use truncate in clone_from
2021-05-24 22:09:34 +02:00
bluss
7b290b7aa5
DOC: Mention author @oxalica in changelog for retain opt
2021-03-30 23:31:09 +02:00
bluss
bf4ee7e5f9
DOC: Update 0.7.0 changelog with forgotten item #174
2021-03-30 23:17:50 +02:00
bluss
5685049fbe
0.7.0
2021-03-29 22:10:04 +02:00
bluss
b0dfc877c1
Merge pull request #183 from bluss/revert-new
...
Add new_const() for const construction and revert new to old version
2021-03-29 21:57:12 +02:00
bluss
b7f3aa9fce
FIX: Add new_const() for const construction and revert new to old version
...
The new() function is significantly faster, it optimizes better at the
moment/in current rust. For this reason, provide a const fn constructor,
but not as the default `new`.
2021-03-29 21:52:39 +02:00
bluss
6b9faa7785
Merge pull request #174 from niklasf/optimize-retain
...
Mirror optimization of std::Vec::retain (rust-lang/rust#81126 )
2021-03-29 19:37:01 +02:00
bluss
b82a6d4977
FIX: Update .retain() optimization for const generics
2021-03-29 17:43:01 +02:00
Niklas Fiekas
c094906a13
Fix mutable reborrow
...
Co-authored-by: bluss <bluss@users.noreply.github.com >
2021-03-29 17:40:46 +02:00
Niklas Fiekas
345c6b4970
Mirror optimization of std::Vec::retain ( rust-lang/rust#81126 )
2021-03-29 17:40:46 +02:00
bluss
198a403194
0.6.1
2021-03-29 17:36:54 +02:00
bluss
57e140065f
FIX: Minor code style change in the char module
...
Just use the simple inherent pointer methods here.
2021-03-29 17:31:37 +02:00
bluss
0aab340c43
MAINT: Remove unused file custom.css
...
(This is a remainder from pre-docs.rs doc generation.)
2021-03-29 17:31:26 +02:00
bluss
366c5da73a
Merge pull request #181 from rodrimati1992/master
...
Made ArrayVec::new and ArrayString::new const fns
2021-03-29 17:23:48 +02:00
bluss
5303f6911b
MAINT: remove unstable-const-fn testing from ci
2021-03-28 22:51:01 +02:00
bluss
b24baf1b5d
DOC: Tweak formatting and wording of unstable-const-fn feature
2021-03-28 22:47:22 +02:00
rodrimati1992
165414e0d9
Added tests for construction in const context
...
Updated the capacity panic test
2021-03-28 14:49:45 -03:00
rodrimati1992
5ad4687b1b
Made ArrayVec::new and ArrayString::new const fns
...
Added utils module with a `MaybeUninit` helper type to construct `[MaybeUninit<T>; N]`
Removed all uses of the "unstable-const-fn" feature, and documented it as being deprecated.
Changed `assert_capacity_limit` macro to work in const contexts.
2021-03-28 14:48:27 -03:00
bluss
9ac0b2057f
Merge pull request #180 from Xaeroxe/limit
...
Minor fix to macro definition
2021-03-27 14:23:39 +01:00
Jacob Kiesel
0bc7ffc9fd
Minor fix to macro definition
2021-03-26 12:34:16 -06:00
bluss
c318a3ddc0
Merge pull request #179 from bluss/rust-1.51-ci
...
Update CI to use experimental/continue on error only for nigthly features
2021-03-25 18:25:45 +01:00
bluss
2626b5575a
TEST: Update CI to use experimental/continue on error only for nigthly features
2021-03-25 18:20:37 +01:00