722 Commits

Author SHA1 Message Date
Dario Nieuwenhuis
ccd3801c30
Merge pull request #399 from newAM/string-from-utf8
String: add from_utf8
2023-10-30 22:54:32 +00:00
Alex Martens
4a300b5c5f String: add from_utf8 2023-10-30 15:03:58 -07:00
Dario Nieuwenhuis
db324a3ae0
Merge pull request #398 from newAM/add-merge-group
CI: add build.yml to merge group
2023-10-30 21:33:59 +00:00
Alex Martens
60b2938cec CI: add build.yml to merge group 2023-10-30 14:26:00 -07:00
Dario Nieuwenhuis
6e9b0436e6
Merge pull request #397 from newAM/impl-try-from-string
string: replace From<&str> with TryFrom<&str>
2023-10-30 21:24:09 +00:00
Alex Martens
11603de25f string: replace From<&str> with TryFrom<&str> 2023-10-30 14:20:44 -07:00
Dario Nieuwenhuis
7e6bff31a7
Merge pull request #328 from Dirbaio/portable-atomic
Use `portable-atomic` instead of `atomic-polyfill`.
2023-10-30 21:17:47 +00:00
Dario Nieuwenhuis
f9ae8639e9
Merge pull request #396 from newAM/bump-edition
edition: 2018 -> 2021
2023-10-30 21:17:38 +00:00
Alex Martens
35a20c0297 edition: 2018 -> 2021 2023-10-30 14:11:15 -07:00
Dario Nieuwenhuis
8f6dc813d6 Use portable-atomic instead of atomic-polyfill. 2023-10-30 22:00:34 +01:00
Alex Martens
90942787f7
Merge pull request #394 from rust-embedded/update-readme
README: add team ownership
2023-10-21 03:16:15 +00:00
Alex Martens
1fd7183c96
Merge pull request #393 from rust-embedded/ufmt-0.2
ufmt: 0.1 -> 0.2
2023-10-21 03:15:40 +00:00
Alex Martens
b38f6ffc3a README: add team ownership 2023-10-21 09:34:53 +09:00
Dario Nieuwenhuis
63b4b6397b
Merge pull request #392 from rust-embedded/rm-actions-rs
CI: actions-rs -> dtolnay
2023-10-20 23:57:33 +00:00
Alex Martens
ffc396cb79 ufmt: 0.1 -> 0.2 2023-10-21 08:57:28 +09:00
Alex Martens
1decffb3b6 CI: actions-rs -> dtolnay 2023-10-21 08:46:24 +09:00
Alex Martens
7d3282b838
Merge pull request #350 from rjsberry/fix-aarch64-llsc
Fix pool (mis)compile on AArch64
2023-10-20 23:33:08 +00:00
Richard Berry
8cdd497fa5 Fix pool (mis)compile on AArch64
The LLSC probe in `build.rs` checks for the presence of the
`clrex` instruction and assumes the target also has both `ldrex`
and `strex`.

In AArch64 `clrex` is a known mnemonic but `ldrex` and `strex`
are not. This caused the `arm_llsc` feature (and subsequently the
oiik module) to be included in the crate for AArc64 which is invalid.
2023-10-21 08:26:53 +09:00
Dario Nieuwenhuis
357f82cb62
Merge pull request #389 from rust-embedded/remove-spin
Minor cleanups
2023-10-20 22:34:40 +00:00
Alex Martens
4efc8df95e
Merge pull request #390 from rust-embedded/update-gha
Update GHA
2023-10-20 22:31:21 +00:00
Dario Nieuwenhuis
b7a65ef3ae use more readable single-line syntax in Cargo.toml. 2023-10-21 00:27:12 +02:00
Alex Martens
5f8981bd5f Update GHA 2023-10-21 07:22:07 +09:00
Dario Nieuwenhuis
24bfda59cb thread scopes are stable now. 2023-10-21 00:00:21 +02:00
Dario Nieuwenhuis
11929c5bcb Remove unused dependency spin. 2023-10-20 23:56:56 +02:00
Dario Nieuwenhuis
1797fb247d
Merge pull request #386 from newAM/add-coc
Add code of conduct
2023-10-20 21:44:02 +00:00
Alex Martens
f3fb36ae04 Add code of conduct 2023-10-20 23:43:41 +02:00
Dario Nieuwenhuis
52188b369f
Merge pull request #384 from newAM/update-url
Update repository URL
2023-10-20 21:43:16 +00:00
Alex Martens
07a961182b Update repository URL 2023-10-20 23:43:03 +02:00
Dario Nieuwenhuis
40468da658
Merge pull request #388 from newAM/fix-linear-map-drop
Fix dropping_references warning
2023-10-20 21:39:11 +00:00
Dario Nieuwenhuis
a4e8f82160 Fix tsan tests.
from [this](https://doc.rust-lang.org/beta/unstable-book/compiler-flags/sanitizer.html#threadsanitizer)

> To work correctly ThreadSanitizer needs to be "aware" of all synchronization operations in a program. It generally achieves that through \[...\] and compile time instrumentation (e.g. atomic operations). Using it without instrumenting all the program code can lead to false positive reports.

and the example uses -Zbuild-std ... of course, std has to be instrumented. Adding -Zbuild-std fixes it, indeed.
2023-10-20 23:35:23 +02:00
Dario Nieuwenhuis
199a8d8819 enable github merge queue. 2023-10-20 23:08:04 +02:00
Dario Nieuwenhuis
4d0f2e2016 Merge branch 'fix-testcfail' into fix-linear-map-drop 2023-10-20 23:04:34 +02:00
Alex Martens
3d876e2bf2 Fix dropping_references warning 2023-10-20 06:44:45 -07:00
Alex Martens
e18c7520f8 Update UI tests 2023-10-20 06:09:07 -07:00
bors[bot]
644653bf3b
Merge #339
339: Add polyfills for ESP32S2 r=korken89 a=Flole998



Co-authored-by: Flole998 <Flole998@users.noreply.github.com>
2023-01-23 17:48:16 +00:00
Flole998
02935035b1 Add polyfills for ESP32S2 2023-01-23 14:34:40 +00:00
bors[bot]
217456aeed
Merge #338
338: export all IndexMap iterators r=korken89 a=jeandudey

Exports all the iterator types of `IndexMap`.

I wonder if it'd make sense to have a module structure such as the one in `alloc::collections`, e.g.: `heapless::indexmap` and re-export `heapless::indexmap::IndexMap` on the crate root, to have all the iterator types inside the `indexmap` module but still public.

Co-authored-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-01-22 21:17:58 +00:00
Jean-Pierre De Jesus DIAZ
9fe93fd6d1
export all IndexMap iterators
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-01-20 13:45:17 +01:00
bors[bot]
cd23629904
Merge #337
337: Update spin dependency to newer version r=korken89 a=the-real-adammork

This updates `spin` to the newest version, this change helps us in one of our repos.

Co-authored-by: Adam Mork <adam@mobilecoin.com>
2023-01-13 08:37:58 +00:00
bors[bot]
8cc8cceef5
Merge #326
326: Recover StableDeref trait for pool::object::Object and pool::boxed::Box r=korken89 a=qwerty19106

I add ReadBuffer and WriteBuffer to pool::object::Object and pool::box::Box.
It allows to use embedded DMA of HAL crates, such as [stm32f4xx_hal::dma::Transfer](https://docs.rs/stm32f4xx-hal/latest/stm32f4xx_hal/dma/struct.Transfer.html).

Co-authored-by: Роман Кривенков <qwerty19106@gmail.com>
2023-01-13 08:27:09 +00:00
Роман Кривенков
8a57a69c9b Recover StableDeref trait for pool::object::Object and pool::boxed::Box 2023-01-12 11:05:41 +04:00
bors[bot]
f01eb295d4
Merge #327
327: Add HistoryBuffer::as_slices() r=korken89 a=hulthe

This method returns the contents of a HistoryBuffer as two ordered slices, similar to [Deque::as_slices()](https://docs.rs/heapless/0.7.16/heapless/struct.Deque.html#method.as_slices).

Co-authored-by: Joakim Hulthe <joakim@hulthe.net>
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2023-01-11 19:54:07 +00:00
Emil Fresk
61e6896cfc
Merge branch 'main' into histbuf_as_slices 2023-01-11 20:53:25 +01:00
bors[bot]
b3ddffbe2e
Merge #335
335: Implement retain for IndexSet/IndexMap. r=korken89 a=jeandudey

Needed to remove IndexMap/IndexSet elements while iterating over it.

Co-authored-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-01-11 19:45:27 +00:00
Joakim Hulthe
c35eaf742f
Add HistoryBuffer::as_slices to changelog 2023-01-11 16:17:09 +01:00
bors[bot]
d61ba3abd8
Merge #332
332: Export Iter from IndexSet and IndexMap r=korken89 a=jeandudey

Exports the `Iter` types for `IndexSet` and `IndexMap`.

My use case is having a trait generic over a `BTreeSet` and `IndexSet` which has a `type Iter`.

Co-authored-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-01-11 12:53:20 +00:00
Jean-Pierre De Jesus DIAZ
837f322515
export Iter from IndexSet and IndexMap 2023-01-11 13:42:03 +01:00
Joakim Hulthe
3b82dba21b
Add HistoryBuffer::as_slices()
Returns the contents of the buffer in two ordered slices.
2023-01-11 12:23:46 +01:00
Adam Mork
2726f63bdc
update spin dependency to newer version 2023-01-10 17:30:58 -08:00
bors[bot]
44a609fe75
Merge #331
331: Relax trait requirements on IndexMap/IndexSet. r=korken89 a=jeandudey

Some requirements are not necessary and the specification can be removed/simplified. This makes these types a bit more ergonomic when using them in a trait or function definition as not all traits need to be specified for some cases.

Co-authored-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-01-10 14:07:18 +00:00