306 Commits

Author SHA1 Message Date
Jorge Aparicio
10e88349ae Slab can now be constructed in const context 2020-02-19 15:15:48 +01:00
Jorge Aparicio
a87854268b WIP Slab 2020-02-19 12:03:46 +01:00
bors[bot]
1d6c207917
Merge #142
142: Extend the ARMv7-A `Pool` support to the bare-metal `armv7a-` targets. r=japaric a=japaric

The built-in rustc targets ended with names that start with `armv7a-` so #140
does not cover them though the intention was to support them; this commit fixes
that

Co-authored-by: Jorge Aparicio <jorge.aparicio@ferrous-systems.com>
v0.5.3
2020-01-27 11:11:01 +00:00
Jorge Aparicio
7de6f7907d Extend the ARMv7-A Pool support to the bare-metal armv7a- targets.
The built-in rustc targets ended with names that start with `armv7a-` so #140
does not cover them though the intention was to support them; this commit fixes
that
2020-01-27 12:08:15 +01:00
Jorge Aparicio
f32038d3bb v0.5.2 v0.5.2 2020-01-15 11:57:49 +01:00
bors[bot]
b6bd3af38d
Merge #140
140: extend singleton pool! support to ARMv7-A r=japaric a=japaric



Co-authored-by: Jorge Aparicio <jorge.aparicio@ferrous-systems.com>
2020-01-15 10:49:57 +00:00
Jorge Aparicio
646c56545d extend singleton pool! support to ARMv7-A 2020-01-15 11:47:55 +01:00
bors[bot]
f9689ffdbe
Merge #137
137: run cargo fmt r=japaric a=japaric



Co-authored-by: Jorge Aparicio <jorge@japaric.io>
2019-12-18 11:42:26 +00:00
Jorge Aparicio
cb8179a30e run cargo fmt 2019-12-18 12:41:17 +01:00
bors[bot]
3fdd3e8635
Merge #135
135: remove spsc / pool / mpmc modules on targets w/o atomic / CAS support r=japaric a=japaric

closes #123

Co-authored-by: Jorge Aparicio <jorge@japaric.io>
2019-12-18 11:02:40 +00:00
Jorge Aparicio
ef331612ee test the riscv32imc-unknown-none-elf target 2019-12-18 12:01:53 +01:00
Jorge Aparicio
44c66a7484 remove spsc / pool / mpmc modules on targets w/o atomic / CAS support
closes #123
2019-12-18 12:01:53 +01:00
bors[bot]
909251de32
Merge #120
120: Allow for manual opt-out of CAS features r=japaric a=jamesmunns

I've been working on a bare metal platform lately that does not have CAS (specifically ARMv4 bare metal), and this is not caught by the CPU detection logic in the build.rs. This PR adds a flag that allows for manual specification to avoid CAS features.

Co-authored-by: James Munns <james.munns@ferrous-systems.com>
2019-12-18 10:52:17 +00:00
James Munns
434b7b5e9c Fix bad merge 2019-12-17 18:08:09 +01:00
James Munns
d5789b73ad Merge remote-tracking branch 'origin/master' into manual-cas-disable 2019-12-17 17:05:03 +01:00
James Munns
cbc1c5d781 Change feature gating 2019-12-17 17:01:09 +01:00
bors[bot]
fe1e56c1e9
Merge #133
133: port compile fail tests to trybuild r=japaric a=japaric

closes #127

Co-authored-by: Jorge Aparicio <jorge@japaric.io>
2019-12-17 15:37:24 +00:00
Jorge Aparicio
1184bf43bc update UI text 2019-12-17 16:36:39 +01:00
Jorge Aparicio
2274a56f02 move cfail tests into their own Cargo project 2019-12-17 16:25:41 +01:00
Jorge Aparicio
e5892d1c90 dev dependencies are x86 only 2019-12-17 16:12:50 +01:00
Jorge Aparicio
a0b7209547 update compile-error text to match 1.37.0 2019-12-17 16:11:13 +01:00
James Munns
410bc9c77e Invert feature flag logic 2019-12-17 15:00:51 +01:00
Jorge Aparicio
2416323c40 remove stray mod cfail 2019-12-17 14:35:03 +01:00
Jorge Aparicio
906b0679ca port compile fail tests to trybuild
closes #127
2019-12-17 14:11:09 +01:00
bors[bot]
5e42f0de54
Merge #126
126: Add DoubleEndedIterator to queue iterators r=japaric a=david-sawatzke

The implementation is pretty straightforward and it's useful

Co-authored-by: David Sawatzke <david-sawatzke@users.noreply.github.com>
Co-authored-by: Jorge Aparicio <jorge@japaric.io>
2019-12-17 11:48:19 +00:00
Jorge Aparicio
6658509412
Merge branch 'master' into master 2019-12-17 11:47:30 +00:00
Jorge Aparicio
57277455a5
test DoubleEndedIterator a bit more 2019-12-17 11:44:36 +00:00
bors[bot]
06431e7397
Merge #125
125: Deserialize maps as maps r=japaric a=dflemstr

The maps are already being serialized as maps, and serde_json will detect
that despite us claiming that maps are seqs, it falls back to parsing them
as maps; however, serde-json-core does not have that fallback logic, so it
makes more sense to give the correct hint here (especially when this is
merged: https://github.com/japaric/serde-json-core/pull/23)

Co-authored-by: David Flemström <david.flemstrom@gmail.com>
2019-12-17 11:29:41 +00:00
bors[bot]
c4db58c8cb
Merge #132
132: PR #121 plus regression test r=japaric a=japaric



Co-authored-by: konstantin <konstantin.kuznecov@gmx.de>
Co-authored-by: Jorge Aparicio <jorge@japaric.io>
2019-12-17 10:48:19 +00:00
Jorge Aparicio
90c90ec418 add test to PR #121 2019-12-17 11:46:46 +01:00
konstantin
baa5e620d4 bugfix in mpmc.dequeue 2019-12-17 11:46:46 +01:00
bors[bot]
5e2054286a
Merge #129
129: Fix improper handling of overflow in `len_usize` (fix #128) r=japaric a=david-sawatzke

This will lead to implausibly large lengths, nearly endless iterators
and possibly unsound behaviour through the Drop implementation

Switches the `truncate` method to refer to the common defintion of
simply chopping of the test bits. (Implemented by `as`, which is defined
to do this).

Adds a new `saturate` method to replace the previous `truncate` method

Co-authored-by: David Sawatzke <david-sawatzke@users.noreply.github.com>
2019-12-17 10:44:06 +00:00
bors[bot]
a6949b5439
Merge #131
131: remove unnecessary parentheses r=japaric a=harrysarson

This commit handles a new rustc warning currently in nightly.

I think this is why #129 failed. 🙂 

Co-authored-by: Harry Sarson <harry.sarson@hotmail.co.uk>
2019-12-17 10:40:23 +00:00
Harry Sarson
17180a1a55
remove unnecessary parentheses
This commit handles a new rustc warning currently in nightly
2019-12-16 11:43:26 +00:00
David Sawatzke
fedcf84cb4 Fix improper handling of overflow in len_usize (fix #128)
This will lead to implausibly large lengths, nearly endless iterators
and possibly unsound behaviour through the Drop implementation

Switches the `truncate` method to refer to the common defintion of
simply chopping of the test bits. (Implemented by `as`, which is defined
to do this).

Adds a new `saturate` method to replace the previous `truncate` method
2019-11-29 10:56:10 +01:00
David Sawatzke
621c1d2f98 Add DoubleEndedIterator to queue iterators 2019-11-27 21:51:39 +01:00
David Flemström
c8ef15f23f Deserialize maps as maps
The maps are already being serialized as maps, and serde_json will detect
that despite us claiming that maps are seqs, it falls back to parsing them
as maps; however, serde-json-core does not have that fallback logic, so it
makes more sense to give the correct hint here (especially when this is
merged: https://github.com/japaric/serde-json-core/pull/23)
2019-11-18 22:23:07 +01:00
James Munns
620ee9a510 Allow for manual opt-out of CAS features 2019-10-02 17:09:05 +02:00
bors[bot]
5ffd0df2cc
Merge #118
118: Prepared for 0.5.1 release r=japaric a=korken89

r? @japaric

Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
v0.5.1
2019-08-29 13:48:38 +00:00
Emil Fresk
7c93606372 Prepared for 0.5.1 release 2019-08-29 15:42:47 +02:00
bors[bot]
e8aa152993
Merge #117
117: Added peek_mut for the binary heap r=japaric a=korken89

As discussed in https://github.com/japaric/heapless/issues/109, please have a look and lets bike-shed the API.

Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2019-08-28 17:03:41 +00:00
Emil Fresk
fde6afe6cc Added peek_mut based on the std-lib 2019-08-28 16:22:03 +02:00
bors[bot]
03b890f161
Merge #110
110: Add Queue::peek. r=japaric a=jmgao



Co-authored-by: Josh Gao <josh@jmgao.dev>
2019-08-28 13:49:27 +00:00
Josh Gao
eae66b9b87 Add Queue::peek. 2019-08-21 20:27:03 -07:00
bors[bot]
9e2e5ae03f
Merge #113
113: Added armv8 support r=japaric a=korken89

Added flags for armv8m

Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2019-08-21 12:37:41 +00:00
Emil Fresk
902460cd18 Added armv8 base to CI 2019-08-11 18:51:16 +02:00
Emil Fresk
14cef0fbc3 Added distinction between armv8 base and main 2019-08-11 18:45:41 +02:00
Emil Fresk
24ffc4a399 Added armv8 support 2019-08-11 18:18:00 +02:00
Jorge Aparicio
109cb273f2 update doc URL in crate metadata 2019-07-12 01:21:58 +02:00
Jorge Aparicio
cda0c20b16 v0.5.0
closes #105
v0.5.0
2019-07-12 01:20:18 +02:00