614 Commits

Author SHA1 Message Date
Emil Fresk
1c56672469
Merge pull request #283 from japaric/rm-scoped_threadpool
use std:🧵:scope instead of scoped_threadpool
2022-05-01 09:39:06 +02:00
John Gallagher
8fd2907115 Add note to CHANGELOG 2022-04-29 12:42:52 -04:00
Jorge Aparicio
57ac20eeb7 ubuntu-specific(?) suppressions 2022-04-29 16:16:24 +02:00
Jorge Aparicio
1e1d801b07 fix typo 2022-04-29 15:29:15 +02:00
Jorge Aparicio
3d3277f6d3 only build tests that require thread::scope on nightly 2022-04-29 15:21:58 +02:00
Jorge Aparicio
477c53b25d use std:🧵:scope instead of scoped_threadpool
as it's easier to deal with TSAN false positives in the former API

as surfaced in PR 280 the current supression rules don't handle newer versions of the
scoped_threadpool crate

trying to update the supression rules related to scoped_threadpool in PR #282 revealed that the
supression rules are masking (hiding) real data races:
https://github.com/japaric/heapless/pull/282#issuecomment-1113173358

std:🧵:scope requires less supression rules and does not mask real data races -- for instance,
the data race in the linked issue comment is not masked when using std:🧵:scope

tradeoffs:
- pro: one less dev dependency
- pro: supressions file is simpler
- cons: std:🧵:scope is only available on recent nightlies
2022-04-29 15:20:55 +02:00
John Gallagher
713abb8bd6 Fix undefined behavior in Vec::swap_remove_unchecked() 2022-04-28 17:42:30 -04:00
John Gallagher
f7eb54477c Fix undefined behavior in Vec::truncate() 2022-04-28 17:29:20 -04:00
John Gallagher
d304960424 Fix undefined behavior in Hole::move_to() 2022-04-28 17:26:02 -04:00
Robert Forsman
84600244d9 Merge remote-tracking branch 'jeremysalwen/master' 2022-04-13 15:35:13 -04:00
Robert Forsman
ef94d68a04 make my code look more like jeremysalwen 2022-04-13 15:32:52 -04:00
Robert Forsman
ff4cdab2ab release 0.1.8 of atomic-polyfill now supports AVR 2022-04-12 16:27:28 -04:00
Robert Forsman
cde5da25e4 rely on packages that use us to patch crates.io for AVR 2022-04-12 14:34:05 -04:00
Jeremy Salwen
8aa68d77d7 Add support for AVR.
In order to support AVR, the following changes were made:

 - AVR was added to the list of architectures supported by atomic-polyfill.
 - SortedLinkedList was modified to account for the fact that usize is
   differently sized on different architectures (16 bits on AVR).
2022-03-31 19:25:39 -04:00
Robert Forsman
75f330caa2 add support for the Arduino Mega 2560 board 2022-03-29 17:20:45 -04:00
gramar
8b3c7f238a Add intoiter for Indexmap 2022-03-23 13:38:15 +01:00
Robert Forsman
d890acbef2 first draft at support for AVR/Arduino 2022-03-22 17:27:45 -04:00
VersBinarii
c7bc3c8166 Implement FromIterator for String 2022-03-15 15:36:10 +01:00
Emil Fresk
9fb9cd7045
Merge pull request #269 from quartiq/fix-pool-example
pool: fix example
2022-02-14 16:43:38 +01:00
Robert Jördens
668033f991 add changelog entry 2022-02-14 14:19:15 +01:00
Robert Jördens
6ffbcb84f1 pool: fix example
* Pool trait and exception use missing
2022-02-11 10:28:40 +01:00
Emil Fresk
3b2bc421a0 Remove deploy CI, docs.rs works well 2022-01-21 12:04:30 +01:00
Emil Fresk
98b7dd41f8 Release 0.7.10 v0.7.10 2022-01-21 12:03:14 +01:00
Emil Fresk
4a204da35d
Merge pull request #267 from TDHolmes/allow-non-x86-hosts
assume native compilation if target_os is not "none" to allow non-x86 hosts to run tests
2022-01-21 11:46:23 +01:00
Tyler Holmes
5cf74504da
Merge branch 'master' into allow-non-x86-hosts 2022-01-20 09:59:22 -08:00
Tyler Holmes
db3e2b98ed
Update CHANGELOG.md 2022-01-20 09:58:43 -08:00
Emil Fresk
70cecc4147
Merge pull request #265 from TDHolmes/cas-fixup
Add cas support for risc-v via atomic-polyfill and fix mpmc/pool documentation
2022-01-19 14:59:12 +01:00
Tyler Holmes
bc9e208089 differentiate full vs CAS polyfill 2022-01-17 11:32:13 -08:00
Tyler Holmes
a68ce63fbe changelog 2022-01-17 11:32:12 -08:00
Tyler Holmes
58e020a287 have docs.rs document the optional features 2022-01-17 11:31:40 -08:00
Tyler Holmes
a469645439 fix documentation 2022-01-17 11:31:40 -08:00
Tyler Holmes
63c0370d69 add riscv cas atomic support and cleanup the #cfg's for it 2022-01-17 11:31:40 -08:00
Emil Fresk
7546c64e79
Merge pull request #266 from finnbear/feature/historybuf_ordered_iterator
Feature/historybuf `OldestOrdered` iterator
2022-01-17 08:11:52 +01:00
Tyler Holmes
2bee731ed1 assume native compilation if target_os is not "none" to allow non-x86 hosts to run tests 2022-01-16 14:56:00 -08:00
Finn Bear
4d0a160638
Merge branch 'master' into feature/historybuf_ordered_iterator 2022-01-15 23:34:01 -08:00
Finn Bear
60da0951f3 Changelog. 2022-01-15 23:32:03 -08:00
Finn Bear
55a1ec9ea3 Cleanup tests. 2022-01-15 16:58:10 -08:00
Finn Bear
4132b5115c Fix termination behavior and add comprehensive test cases. 2022-01-15 16:41:33 -08:00
Finn Bear
77adbab007 Fix panic if buffer was empty. 2022-01-15 15:48:05 -08:00
Emil Fresk
e33646c189 Add changelog enforcer 2022-01-10 08:27:52 +01:00
Emil Fresk
0eff6364fb
Merge pull request #254 from eivindbergem/master
Implemented sealed traits according to Rust API Guidelines
2022-01-10 08:27:02 +01:00
Emil Fresk
180db255c7
Merge pull request #261 from haata/zero_capacity_vec
Relax Vec bounds to allow for zero-length Vecs
2022-01-10 08:26:03 +01:00
Jacob Alexander
0b92953ef1 Adding is_empty and is_full tests for zero capacity 2021-12-29 12:01:45 -08:00
Logan Dimond
7f53e745ca add BinaryHeap::into_vec 2021-12-28 14:46:26 -05:00
Jacob Alexander
bc2cd1be70 Relax Vec bounds to allow for zero-length Vecs
Use when building generated code where it's possible to have a zero
length array/vector (e.g. wire-format). See #252

- Added vec::tests::zero_capacity test
- Added sealed::greater_than_eq_0
2021-12-28 11:11:20 -08:00
Eivind Alexander Bergem
df0a0af884 Implemented sealed traits according to Rust API Guidelines 2021-12-16 16:16:30 +01:00
Emil Fresk
f3af76d607
Merge pull request #260 from japaric/fix-index-structs
Fix bounds in IndexMap and IndexSet, IndexSet::new() is now const
v0.7.9
2021-12-16 10:57:58 +01:00
Emil Fresk
318da23c43 Fix bounds in IndexMap and IndexSet, IndexSet::new() is now const 2021-12-16 10:37:23 +01:00
Emil Fresk
e3c536b3c2
Merge pull request #255 from robinkrahl/vec-try-from
Implement TryFrom<&[T]> for Vec<T, N>
2021-11-24 16:11:29 +01:00
Robin Krahl
a9756bd652
Implement TryFrom<&[T]> for Vec<T, N>
There already is the Vec::from_slice method that does the same, but
implementing the TryFrom trait makes it easier to write code that works
both with heapless::Vec and std::vec::Vec.
2021-11-23 12:54:55 +01:00