1213 Commits

Author SHA1 Message Date
Soso
bbe988d87f
Merge pull request #614 from vishy11/master
Add zeroization support for heapless data structures
2025-09-24 17:26:58 +00:00
Zeeshan Ali Khan
0b027b1ff8 Implements zeroization support across all heapless data structures to securely clear sensitive data from memory:
- When the zeroize feature is enabled, the LenType sealed trait now has Zeroize as a supertrait
- This simplifies the bound for deriving Zeroize for VecInner and other types
- Added tests to verify VecView also implements Zeroize correctly

This feature is essential for security-sensitive applications needing to prevent data leaks from memory dumps.

Note: Zeroize initially worked on Vector purely via derivation, however was not complete without proper bound checks. Without these checks, the deref implementation of Zeroize was used instead, which led to incomplete zeroization of the Vector's contents.
2025-09-24 13:06:10 -04:00
Zeeshan Ali Khan
d29f95cd68
Merge pull request #607 from zeenix/serde-core
Switch from `serde` to `serde_core`
2025-09-16 16:04:13 +00:00
Zeeshan Ali Khan
284955a2d7
Switch from serde to serde_core
This new split of `serde` crate, enables faster compilation by allowing
non-derive needing parts (such as this library) to be compiled in
parallel to `serde_derive` crate.
2025-09-16 14:57:55 +02:00
Zeeshan Ali Khan
ceb3fc06ba
Merge pull request #606 from Mortano/union-repr
Fix memory layout of UnionNode<T> in pool module
2025-09-08 13:54:41 +00:00
Mortano
ca2368dd7f Update CHANGELOG.md to more concise description
Co-authored-by: Soso <51865119+sgued@users.noreply.github.com>
2025-09-08 15:51:33 +02:00
Pascal
66dab53263 Added missing CHANGELOG entry 2025-09-08 15:51:33 +02:00
Pascal
c70d081ec2 Fixed memory layout of UnionNode in pool module 2025-09-08 15:51:33 +02:00
Zeeshan Ali Khan
ae6e2ab64e
Merge pull request #591 from dysonltd/impl_try_from_for_deque
Implements TryFrom for Deque from array
2025-09-08 13:47:50 +00:00
William Hicklin
75dbe63466 Implements TryFrom for Deque from array 2025-09-08 13:12:41 +01:00
Zeeshan Ali Khan
f974fc129c
Merge pull request #604 from phycrax/impl-defmt-format-capacityerr
Implement defmt::Format for CapacityError
2025-09-03 15:02:22 +00:00
Süha Ünüvar
381269b3b9
add missing dots 2025-09-03 22:42:42 +08:00
Süha Ünüvar
0b21ca3e0d Implement defmt::Format for CapacityError 2025-09-03 11:49:38 +08:00
Zeeshan Ali Khan
6279f8a41e
Merge pull request #602 from sgued/capacity-error-default
Implement default for capacity error
2025-08-27 14:47:25 +00:00
Sosthène Guédon
e6e615a6de Implement default for capacity error
Fix https://github.com/rust-embedded/heapless/issues/601
2025-08-27 11:57:31 +02:00
Markus Reiter
7876b717e2
Merge pull request #600 from qbradley/dup
Remove duplicate documentation line
2025-08-27 09:28:24 +00:00
Quetzal Bradley
26bae14ea2 Remove duplicate documentation line 2025-08-27 00:04:56 +00:00
Zeeshan Ali Khan
681e7ab97e
Merge pull request #595 from zeenix/msrv-decl-check
Make MSRV explicit & check accidental bump in the CI
2025-08-21 12:01:52 +00:00
Zeeshan Ali Khan
5fda686479
Fix a broken link 2025-08-21 13:56:28 +02:00
Zeeshan Ali Khan
9c349ecf44
Specify MSRV policy in the README 2025-08-21 12:14:26 +02:00
Zeeshan Ali Khan
d564a1e6f1
Run a job against MSRV
From the comment above the job being changed here, it seems that this
job was supposed to be run with MSRV Rust but it uses the latest stable
instead. Let's make it work as it was intended.

This would hopefully catch us unintentionally bumping the MSRV.
2025-08-20 21:17:48 +02:00
Zeeshan Ali Khan
628b52f1b5
Declare MSRV in Cargo.toml
Let's make our MSRV explicit.
2025-08-20 21:17:48 +02:00
Zeeshan Ali Khan
45fca5cbaf
Formatting fixes to Cargo.toml 2025-08-20 21:05:50 +02:00
Zeeshan Ali Khan
372a0e6710
Merge pull request #593 from hax0kartik/main
Fix failing testcase on VxWorks
2025-08-20 10:00:53 +00:00
Soso
19188229ac
Merge pull request #574 from Nitrokey/release-091
Prepare release 0.9.1
v0.9.1
2025-08-20 09:21:46 +00:00
Kartik Agarwala
85afd426d8 Fix failing testcase for VxWorks
Reduce the number of slots that are created from 4096 to 1024 for VxWorks
as too many slots can cause a stack overflow
2025-08-19 17:25:49 +00:00
Sosthène Guédon
0a764cd4ba
Prepare release 0.9.1
This is a breaking change, 0.9.0 should be yanked. See
https://github.com/rust-embedded/heapless/issues/568
2025-08-19 12:48:41 +02:00
Soso
3b0283fb76
Merge pull request #590 from sgued/spsc-demonomorphize
De-monomorphize spsc consumer and producer
2025-08-18 14:46:42 +00:00
Sosthène Guédon
c1c0d19f01 Keep lines below 100 chars 2025-08-18 15:43:00 +02:00
Sosthène Guédon
e9da36a1de Make the docs for QueueView::split_const actually use QueueView 2025-08-18 11:45:49 +02:00
Sosthène Guédon
2f1744351b De-monomorphize spsc consumer, producer and iterators
This needs a workaround for the `const` use case however
2025-08-18 11:45:49 +02:00
Soso
331aac897a
Merge pull request #587 from sgued/fix-docs
Fix broken tests and update CI to test more features
2025-08-18 09:43:10 +00:00
Sosthène Guédon
17021296bc Add alloc in CI tests 2025-08-18 10:06:35 +02:00
Sosthène Guédon
a13946d523 Fix broken tests and docs 2025-08-18 10:06:35 +02:00
Sosthène Guédon
b94d0b4526 Enable more features in tests 2025-08-18 10:06:35 +02:00
Soso
692e8e013c
Merge pull request #584 from riley-williams/string-insertion
String insertion
2025-08-14 19:01:01 +00:00
Zeeshan Ali Khan
bcd71e57fc
Merge pull request #588 from zeenix/better-names
Better names for method returning mutable references
2025-08-14 18:37:42 +00:00
Zeeshan Ali Khan
267a4d5b9d
Better names for method returning mutable references
I believe these names are better because they are more consistent with
the naming of their non-mutable siblings and also with the general
conventions in the Rust world.
2025-08-14 17:32:33 +02:00
Riley Williams
451a98b14b Update insert to encode directly into the destination buffer 2025-08-13 20:03:59 -04:00
Riley Williams
8247cf2f8b Update changelog 2025-08-13 12:07:50 -04:00
Riley Williams
55c5bb47a3 Adds insert and insert_str methods to String 2025-08-13 11:56:55 +02:00
Zeeshan Ali Khan
0c9508d72e
Merge pull request #580 from zeenix/add-debug
Add missing `Debug` derive to `vec::IntoIter`
2025-08-13 09:49:38 +00:00
Zeeshan Ali Khan
a290cec514
Add missing Debug derive to vec::IntoIter 2025-08-13 11:45:38 +02:00
Zeeshan Ali Khan
779e608eb6
Merge pull request #581 from zeenix/fix-docs
Minor fixes to `pool` docs
2025-08-11 12:45:10 +00:00
Zeeshan Ali Khan
dab4430309
Update pool docs
64-bit pools are supported since #458.
2025-08-08 18:27:47 +02:00
Zeeshan Ali Khan
2a8bc61696
Minor fixes to pool::boxed docs 2025-08-08 18:27:46 +02:00
Alex Martens
2db884445a
Merge pull request #585 from riley-williams/clippy-fix
Apply clippy fixes
2025-07-15 14:30:20 +00:00
Riley Williams
090f7cad3c Update changelog 2025-07-15 10:08:43 -04:00
Riley Williams
ab441e9425 Apply clippy fixes 2025-07-15 10:07:26 -04:00
Markus Reiter
6b17767190
Merge pull request #569 from Nitrokey/default-len-type
Make LenType opt-in
2025-05-16 07:48:04 +00:00