1160 Commits

Author SHA1 Message Date
Alex Martens
f83c254cf1 Cargo.toml: add alloc to docs.rs build 2025-04-06 17:31:16 -07:00
Alex Martens
4c40b606f5 src/vec: address pull-request feedback 2025-04-06 17:31:11 -07:00
Markus Reiter
b6c073923d
Merge pull request #340 from xgroleau/feat/add-bytes-support
Add support for `Bytes`
2025-04-06 19:44:15 +00:00
Markus Reiter
0b1e1a50ba
Add bytes feature. 2025-04-06 21:42:37 +02:00
Markus Reiter
6d52751ad1
Add changelog entry. 2025-04-06 21:36:11 +02:00
Markus Reiter
5ce8ccd7b1
Implement bytes::Buf for Vec. 2025-04-06 21:31:06 +02:00
xgroleau🐢
1ea90099b8
Added support for Bytes 2025-04-06 21:31:06 +02:00
Dario Nieuwenhuis
53a0f54ed8
Merge pull request #460 from lmbollen/ufmt-udisplay-string
Add `uDisplay` for `String` and inline `ufmt` functions
2025-04-06 17:32:53 +00:00
Markus Reiter
5785761b98
Make ufmt feature optional. 2025-04-06 19:30:40 +02:00
Lucas Bollen
d51cc11618
Add inline annotations to wrapping function calls in ufmt
This should make the compiler inline the function calls to increase performance.
2025-04-06 19:29:42 +02:00
Lucas Bollen
b21563dfa7
Add the uDisplay trait for String incl test.
Did not add `uDisplay` for `Vec` because there is no trivial implementation.

# Conflicts:
#	Cargo.toml
#	src/ufmt.rs
2025-04-06 19:28:42 +02:00
Markus Reiter
d2463de75b
Merge pull request #525 from pamburus/feature/indexmap/get-index
feat(indexmap): added `get_index`, `get_index_mut` and `get_index_of`
2025-04-06 00:25:28 +00:00
Markus Reiter
df33331075
Fix formatting. 2025-04-06 02:24:02 +02:00
Pavel Ivanov
894937c219
feat(indexmap): added get_index, get_index_mut and get_index_of 2025-04-06 02:23:10 +02:00
Markus Reiter
db6a4433ad
Merge pull request #503 from YuhanLiin/indexmap-partialeq
Relax indexmap PartialEq bounds so value doesn't need to be Eq
2025-04-05 23:19:05 +00:00
Markus Reiter
1052f4d783
Also relax bounds on PartialEq for LinearMap. 2025-04-06 01:16:49 +02:00
Markus Reiter
6c6ba16921
Relax indexmap PartialEq bounds even more. 2025-04-06 01:12:17 +02:00
Markus Reiter
f5e1ca71d6
Fix formatting. 2025-04-06 01:12:17 +02:00
Yuhan Lin
acbfe7d1ff
Update CHANGELOG.md
Co-authored-by: Markus Reiter <me@reitermark.us>
2025-04-06 01:12:17 +02:00
YuhanLiin
6d84c41ca8
Fix test 2025-04-06 01:12:17 +02:00
YuhanLiin
42c5248e92
Add equality test 2025-04-06 01:12:17 +02:00
YuhanLiin
a18a0d5fb2
Update CHANGELOG 2025-04-06 01:12:17 +02:00
YuhanLiin
54a681cf88
Relax indexmap PartialEq bounds so value doesn't need to be Eq 2025-04-06 01:12:17 +02:00
Markus Reiter
877db4253f
Merge pull request #546 from newAM/defmt-1
defmt: 0.3 -> 1
2025-04-05 22:47:44 +00:00
Markus Reiter
0c6728cc53
Merge pull request #526 from pamburus/feature/indexmap/truncate
feat(indexmap): added `truncate`
2025-04-05 22:22:47 +00:00
Markus Reiter
1e7f5b8d0c
Make example easier to follow. 2025-04-06 00:20:03 +02:00
Markus Reiter
455faace03
Fix formatting. 2025-04-06 00:20:03 +02:00
Pavel Ivanov
59bacfda0c
feat(indexmap): added truncate 2025-04-06 00:20:03 +02:00
Markus Reiter
6067119ed3
Rename defmt-1 feature to defmt. 2025-04-05 23:46:31 +02:00
Alex Martens
12086b194b defmt: 0.3 -> 1 2025-04-05 23:40:46 +02:00
Markus Reiter
4b78bc1bb9
Merge pull request #500 from Nitrokey/vec-drain-generic
Implement `Vec::drain`, `as_(mut_)view` on the `*Inner` types, generic over `Storage`
2025-04-05 21:29:45 +00:00
Sosthène Guédon
b01fcfb662
Add workaround for compiler ICE 2025-03-31 15:51:00 +02:00
Sosthène Guédon
db7e873422
Fix clippy warning 2025-03-31 15:51:00 +02:00
Sosthène Guédon
2496cddc78
Fix doc issue on String and LinearMap 2025-03-31 15:51:00 +02:00
Sosthène Guédon
3e7c9aa7fe
Genericise drain function over storage 2025-03-31 15:51:00 +02:00
Sosthène Guédon
7759201dd4
Genericise as_(mut_)view 2025-03-31 15:50:52 +02:00
Alex Martens
1a33fec858
Merge pull request #545 from reitermarkus/linear-map-borrow
Add test for borrowed `LinearMap` key.
2025-03-31 13:41:28 +00:00
Markus Reiter
ee67d71224
Merge pull request #536 from newAM/binary-heap-safety
BinaryHeap: fix missing safety doc
2025-03-31 07:28:48 +00:00
Alex Martens
7f2cdeefdc BinaryHeap: fix missing safety doc 2025-03-28 07:41:38 -07:00
Markus Reiter
628eed6cd5
Add test for borrowed LinearMap key. 2025-03-28 10:52:19 +01:00
Alex Martens
64fee10a3b
Merge pull request #533 from newAM/fix-clippy-result-unit-error
Remove allow(clippy::result_unit_err)
2025-03-28 09:39:03 +00:00
Alex Martens
8566b6c5ab Remove allow(clippy::result_unit_err)
Unit error types do not implement core::error::Error which leads to some
ergonomic issues.
2025-03-27 19:52:13 -07:00
Alex Martens
4e31d3e604
Merge pull request #534 from newAM/linear-map-clippy
LinearMap: remove allow(clippy::map_identity)
2025-03-26 08:27:10 +00:00
Alex Martens
9ab477c4a8
Merge pull request #537 from newAM/fix-lib-example
lib.rs: remove unwrap from example
2025-03-26 08:15:34 +00:00
Alex Martens
3fcc87d23b
Merge pull request #544 from pvdrz/clippy-pedantic-fixes
Fix warnings for some `clippy::pedantic` lints
2025-03-26 00:04:35 +00:00
Christian Poveda
2c6c169bf0
Fix clippy::ref_as_ptr warnings 2025-03-25 14:36:45 -05:00
Christian Poveda
6db54e57dc
Fix clippy::if_not_else warnings 2025-03-25 14:36:44 -05:00
Christian Poveda
739dbc4c3c
Fix clippy::semicolon_if_nothing_returned warnings 2025-03-25 14:36:44 -05:00
Christian Poveda
1635b7292a
Fix clippy::doc_markdown warnings 2025-03-25 14:36:43 -05:00
Christian Poveda
cc010b3be1
Fix clippy::ptr_as_ptr warnings 2025-03-25 14:35:48 -05:00