868 Commits

Author SHA1 Message Date
Nikita Rushmanov
b6869995e7 Serde implementations on HistoryBuffer 2024-07-01 00:13:35 +02:00
Dario Nieuwenhuis
8170f58f67
Merge pull request #477 from MrGunflame/deque-get
Add `Deque::{get, get_mut, get_unchecked, get_unchecked_mut}`
2024-06-30 22:00:33 +00:00
Dario Nieuwenhuis
0234ca6074 deque: add get_mut test. 2024-06-30 23:59:13 +02:00
Dario Nieuwenhuis
66fb0242e3 deque: avoid expensive modulo operation. 2024-06-30 23:58:58 +02:00
Dario Nieuwenhuis
662941d8e4
Merge pull request #483 from Nitrokey/mpmc-drop
Fix memory leak of `MpMcQueue`
2024-06-30 21:50:08 +00:00
Dario Nieuwenhuis
d1c47c30e6
Merge pull request #486 from Dirbaio/vecview-dedup
vec: remove code duplication due to VecView.
2024-06-30 21:48:09 +00:00
Dario Nieuwenhuis
bd030359e9 storage: expand docs for trait with an example of where it's used. 2024-06-29 02:09:03 +02:00
Dario Nieuwenhuis
1a08c7ac27 vec: generalize defmt, ufmt, ser impls to cover VecView. 2024-06-29 02:09:03 +02:00
Dario Nieuwenhuis
400732b1b1 vec: optimize for size a bit by preventing monomorphizing extend_from_slice. 2024-06-28 12:40:28 +02:00
Dario Nieuwenhuis
e9f8bac7ec vec: remove code duplication due to VecView. 2024-06-28 12:40:28 +02:00
Sosthène Guédon
7cfdb8482e
Fix memory leak of MpMcQueue 2024-06-27 14:41:59 +02:00
MrGunflame
96631acb68
Add Deque::{get, get_mut, get_unchecked, get_unchecked_mut} 2024-06-07 17:16:37 +02:00
Markus Reiter
1f25e658ca
Merge pull request #465 from Nitrokey/vecview-drop
VecView: fix memory leak of drop
2024-05-24 11:27:24 +00:00
Markus Reiter
c118d70d20
Merge pull request #474 from XOSplicer/linear-map-into-iter
Implement IntoIterator for LinearMap
2024-05-23 17:50:36 +00:00
Felix Stegmaier
d4f7db3149
Update CHANGELOG 2024-05-23 13:22:49 +02:00
Felix Stegmaier
a5f7a67f60
Update linear_map into_iter test 2024-05-23 13:20:03 +02:00
Sosthène Guédon
fc133a9f48
Rename VecDrop to VecBuffer
This represent more clearly the role of the trait now that it's not used
to work around drop specialization.
2024-05-23 09:16:15 +02:00
Sosthène Guédon
ec6700a96b
Fix memory leak on VecView drop
Drop must also be implemented on `VecView` for the cases wher the `VecView` is owned
even if it is `!Sized`.

This can happen when it is boxed.
2024-05-23 09:16:15 +02:00
Markus Reiter
804fa58ee7
Merge pull request #451 from reitermarkus/vec-vecview-macros
Use macros to implement traits for `Vec` and `VecView`.
2024-05-23 05:07:03 +00:00
Felix Stegmaier
f3c6698dec
Implement IntoIterator for LinearMap 2024-05-22 13:58:10 +02:00
Markus Reiter
329d733ab8
Merge pull request #462 from reitermarkus/fix-mpmc-large
Fix `MpMcQueue` with `mpmc_large` feature.
2024-05-20 21:38:13 +00:00
Dario Nieuwenhuis
07c072c759
Merge pull request #469 from newAM/issue-464
Fix CI
2024-05-07 13:03:45 +00:00
Alex Martens
6e98625a8b Fix CI 2024-05-06 18:43:35 -07:00
Markus Reiter
62908ca823
Fix MpMcQueue with mpmc_large feature. 2024-02-29 22:26:15 +01:00
Dario Nieuwenhuis
6cd26cc342
Merge pull request #458 from reitermarkus/treiber-64
Implement `pool` for any 32/64-bit architecture that supports the corresponding atomics.
2024-02-28 20:26:58 +00:00
Markus Reiter
9cfeed6a4c
Use macros to implement traits for Vec and VecView. 2024-02-28 21:19:24 +01:00
Markus Reiter
d4cc41e585
Use portable-atomic when necessary. 2024-02-28 21:16:51 +01:00
Markus Reiter
60d969f329
Update change log. 2024-02-27 20:02:09 +01:00
Markus Reiter
6ac107ca82
Improve documentation for Treiber stack. 2024-02-27 20:02:09 +01:00
Markus Reiter
b26099a15c
Implement pool for any 32/64-bit architecture that supports the corresponding atomics. 2024-02-27 20:02:09 +01:00
Markus Reiter
483862b3e8
Merge pull request #456 from reitermarkus/fix-pool-macro-warnings
Fix pool macro warnings.
2024-02-27 17:19:02 +00:00
Markus Reiter
5e15c4f03f
Revert to using wrong case for static variable name. 2024-02-27 17:57:51 +01:00
Markus Reiter
5592534dd3
Remove unneeded allow attributes for pool macros. 2024-02-27 17:57:20 +01:00
Dario Nieuwenhuis
f3aa0df15a
Merge pull request #455 from reitermarkus/fix-ci
Fix CI.
2024-02-25 22:03:46 +00:00
Markus Reiter
7bb2f71b55
Use static_assertions instead of trybuild. 2024-02-19 10:43:20 +01:00
Markus Reiter
6dbefb4a5c
Fix CI. 2024-02-19 10:43:03 +01:00
Markus Reiter
c593fa55cd
Merge pull request #425 from Nitrokey/vec-dyn-alias
Vec: add a "View" that can mutate the vec and erase the const generic.
2024-02-07 17:28:13 +00:00
Sosthène Guédon
cdfe308055
Fix documentation of as_(mut_)view 2024-02-07 17:15:52 +01:00
Sosthène Guédon
0010f40143
Remove nonsense documentation line 2024-02-07 17:15:51 +01:00
Sosthène Guédon
24fedd3b8c
Fix typos 2024-02-07 17:15:50 +01:00
Sosthène Guédon
1c399dbdbf
Remove comment questionnig Eq implementation 2024-02-07 17:15:36 +01:00
Sosthène Guédon
bc1853eeba
Document rustdoc issue workaround 2024-02-07 17:15:36 +01:00
Sosthène Guédon
71d857ad17
Document uses of unsafe in VecDrop 2024-02-07 17:15:36 +01:00
Sosthène Guédon
2408e71638
Make drop_with_len unsafe 2024-02-07 17:15:36 +01:00
Sosthène Guédon
b95e1d2dea
VecView: Add spare_capacity_mut 2024-02-07 17:15:36 +01:00
Sosthène Guédon
5cb9feacf8
Fix docs reference to removed module 2024-02-07 17:15:36 +01:00
Sosthène Guédon
15ba0a79a3
Fix doc warnings 2024-02-07 17:15:36 +01:00
Sosthène Guédon
af8cf129f6
Fix cfail tests 2024-02-07 17:15:35 +01:00
Sosthène Guédon
2fe9669b91
Add link 2024-02-07 17:15:35 +01:00
Sosthène Guédon
113c3cc568
Fix docs 2024-02-07 17:15:35 +01:00