Roman Proskuryakov
a3f4d8f41e
Update minimal Rust version from 1.31 to 1.51
2021-03-28 09:49:34 +03:00
Roman Proskuryakov
f7cb3e575f
Fix fmt
2021-03-28 09:48:34 +03:00
Emil Fresk
3de878b09e
Cleanup
2021-03-25 19:42:21 +01:00
Emil Fresk
305de719f6
Fixed warnings
2021-03-25 17:52:15 +01:00
Emil Fresk
8ba71d4b14
Merge branch 'master' into const_generics
2021-03-25 17:45:10 +01:00
Emil Fresk
6dcedb89f3
Fixes for min const generics
2021-03-25 16:51:38 +01:00
Per Lindgren
f962e3a45f
Initial conversion to const generics
...
vec passes tests
vec passes tests with docs as well (besides one with FromIter)
vec passes tests with docs as well (besides one with FromIter)
exposing full API
passing all current tests
starting with string
string test passes mostly
string test passes
ufmt passes
TODO removed
binary_heap wip
binary_heap passes tests
sealed passes
spsc wip
spsc wip2
split wip3
spcs and split passes --lib tests
spcs and split passes --lib tests
spcs and split passes --lib tests
spcs and split passes all tests (doc + lib)
indexmap wip
indexmap passes --lib test
indexmap passes all tests (lib + doc)
indexset passes all tests (lib + doc)
indexset passes all tests (lib + doc)
linear map wip
linear map all test (lib + doc) passes, drop not tested, into_iter(mut self) not implemented
history buffer all test pass (doc + lib), Copy instead of clone atm
serde does not work
pool works, serde still not
serde wip
serde wip
serde wip
serde wip
2021-03-25 16:31:58 +01:00
samlich
6ba462eb93
String: add as_mut_vec
2021-03-25 16:30:45 +01:00
samlich
0364e05766
Vec: add set_len
2021-03-25 16:30:45 +01:00
Andres Vahter
9e08514d39
histbuf: fix style
2021-03-25 16:30:45 +01:00
Andres Vahter
26dcfa3ae6
histbuf: replace slow modulo operatins
...
on cortex m0 `%` is extremely costly
2021-03-25 16:30:45 +01:00
Andres Vahter
0ab806d5cd
readme: add instructions for tests
2021-03-25 16:30:45 +01:00
Willem
1790c4f30f
indexmap: expose PowerOfTwo, Bucket and Pos
...
This change allows the create custom structs with size arguments outside
the heapless crate itself.
2021-03-25 16:30:45 +01:00
Bryan Kadzban
87917e059b
Make Producer<..., SingleCore> Send, like Consumer
...
I assume there's no reason that only multi-core Producers are marked
Send, while Consumers are not (they're pretty symmetrical).
2021-03-25 16:30:45 +01:00
Emil Fresk
357a312dba
Preparing for v0.5.5
2021-03-25 16:30:45 +01:00
Jorge Aparicio
b0129f5408
1.36.0 compatibility
2021-03-25 16:30:45 +01:00
Jorge Aparicio
b9d7128e1e
x86: put Sync impl behind a Cargo feature
2021-03-25 16:30:45 +01:00
Jorge Aparicio
596a1f03f1
fix warnings
2021-03-25 16:30:45 +01:00
Jorge Aparicio
e4580da8a8
x86_64: "practically" thread-safe Pool
2021-03-25 16:30:45 +01:00
Emil Fresk
b3877665f8
Merge pull request #196 from AfoHT/removetravis
...
Remove traces of Travis
2021-03-02 16:06:25 +01:00
Emil Fresk
96f38a6f73
Merge pull request #194 from AfoHT/release_0.6.1
...
Release v0.6.1
v0.6.1
2021-03-02 15:51:48 +01:00
Henrik Tjäder
5212d7ebb5
Remove traces of Travis
2021-03-02 15:50:01 +01:00
Emil Fresk
e67c9859e0
Release v0.6.1
2021-03-02 15:46:39 +01:00
Emil Fresk
304cd02cd7
Merge pull request #195 from AfoHT/clone_drop_fix
...
Fix the clone drop issue
2021-03-02 15:45:15 +01:00
Emil Fresk
4ac126e54c
Fix the clone drop issue
2021-03-02 15:39:02 +01:00
Emil Fresk
4499eda03d
Merge pull request #192 from AfoHT/updategenericarray
...
Update generic-array and as-slice to security patched versions
2021-03-02 15:01:02 +01:00
Henrik Tjäder
c464710c81
Update as-slice to patched version
2021-03-02 14:52:59 +01:00
Henrik Tjäder
47906b7981
Changes to version 0.14.4 of generic-array
...
Resolves RUSTSEC-2020-0145
2021-03-02 14:15:44 +01:00
Emil Fresk
7586332e3d
Remove travis
2021-02-08 08:57:46 +01:00
Emil Fresk
b107f928b6
Fmt
2021-02-08 08:54:59 +01:00
Emil Fresk
97af6fe8ea
Merge pull request #159 from rjsberry/box-forget
...
Implement Box::forget for the singleton pool
2021-02-08 08:49:49 +01:00
Emil Fresk
4afa223fbe
Merge pull request #189 from nickray/ga-14
...
Bump generic-array to v0.14.2 (MSRV remains the same)
v0.6.0
2021-02-03 09:36:14 +01:00
nicolas-solokeys
d60b0e2c39
Bump generic-array to v0.14.2 (MSRV remains the same)
2021-02-02 20:57:33 +01:00
Emil Fresk
ae7ce354a8
Merge pull request #188 from AfoHT/ghafix
...
Remove GHA ci-failure job
2021-01-20 09:37:14 +01:00
Henrik Tjäder
8c513b7fc1
Remove GHA ci-failure job
2021-01-19 20:43:54 +01:00
Emil Fresk
868aebfbad
Merge pull request #187 from Lotterleben/indexDoc
...
IndexMap, IndexSet: hint to FnvIndex...: Extend explanation, add examples & links
2020-12-17 16:13:54 +01:00
Emil Fresk
fdd7b48ef5
Merge pull request #186 from AfoHT/gha
...
First GitHub Actions test
2020-12-17 16:13:00 +01:00
Lotte Steenbrink
61b85596cf
IndexMap, IndexSet: hint to FnvIndex... in the docs, copy examples to Fnv... docs, add direct links
2020-12-16 10:23:01 +01:00
Henrik Tjäder
430a8d4379
Limit tests to one thread
2020-12-10 17:54:52 +00:00
Henrik Tjäder
2862779617
First GitHub Actions test
2020-12-10 17:54:52 +00:00
Emil Fresk
71188c3202
Merge pull request #185 from AfoHT/cargofmt
...
Cargo format
2020-12-03 20:50:48 +01:00
Henrik Tjäder
e1177dfd5b
Run cargo fmt
2020-12-03 19:23:44 +00:00
Emil Fresk
70687d8ace
Merge pull request #182 from almusil/expose_len_for_consumer_producer
...
Queue: Expose len and capacity for Consumer and Producer
2020-11-30 15:55:04 +01:00
Ales Musil
5823e4785a
Queue: Expose len and capacity for Consumer and Producer
...
It is usefull to know in advance the space that is
occupied by the items in queue.
2020-11-03 11:29:17 +01:00
bors[bot]
9ff3a5fa89
Merge #178
...
178: Version bump dependency 'as-slice' -> 0.1.4 r=korken89 a=ToddG
This fixes the issue I was having targeting AVR.
See: https://github.com/japaric/heapless/issues/177#issuecomment-697341580
## REPRO
```
(base) ~/temp/break/abc $ cargo build
Updating crates.io index
Compiling compiler_builtins v0.1.35
Compiling core v0.0.0 (/home/todd/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core)
Compiling typenum v1.12.0
Compiling version_check v0.9.2
Compiling byteorder v1.3.4
Compiling heapless v0.5.6 (/home/todd/temp/heapless)
Compiling generic-array v0.14.4
Compiling rustc-std-workspace-core v1.99.0 (/home/todd/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core)
Compiling stable_deref_trait v1.2.0
Compiling hash32 v0.1.1
Compiling generic-array v0.12.3
Compiling generic-array v0.13.2
Compiling as-slice v0.1.4
Compiling abc v0.1.0 (/home/todd/temp/break/abc)
Finished dev [unoptimized + debuginfo] target(s) in 26.46s
```
Co-authored-by: Todd Greenwood <pub+github@zwrob.com>
2020-09-23 13:01:31 +00:00
Todd Greenwood
b97a1762b3
Version bump dependency 'as-slice' -> 0.1.4
2020-09-23 05:51:43 -07:00
bors[bot]
bd3c938379
Merge #175
...
175: Preparing v0.5.6 release r=korken89 a=korken89
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
v0.5.6
2020-09-22 18:51:06 +00:00
Emil Fresk
77f31428b5
Preparing v0.5.6 release
2020-09-18 15:32:26 +02:00
bors[bot]
7685445020
Merge #170
...
170: Buffer methods for Vec and as_mut_vec for String r=japaric a=samlich
This adds `set_len` to `Vec`, identical to the `std` version, with the documentation copied from `std`. This is useful for using it as a buffer by writing to the uninitialized portion and then setting the length to include those bytes.
It also adds `as_mut_vec` to `String` (also from `std`), which enables using `String` as a buffer in the same manner.
Co-authored-by: samlich <1349989+samlich@users.noreply.github.com>
2020-07-31 18:31:44 +00:00
samlich
90d652464a
String: add as_mut_vec
2020-07-29 21:29:05 +00:00