76 Commits

Author SHA1 Message Date
Felix Stegmaier
512ce719ed Fix missing_docs in const_fn macro 2018-05-19 12:25:30 +02:00
Felix
23b301362b WIP const_fn macro 2018-05-19 01:23:10 +02:00
Jorge Aparicio
ffc7849f27 avoid using NLL 2018-05-03 03:35:46 +02:00
Jorge Aparicio
22ef801d6a cargo fmt 2018-04-28 05:49:05 +02:00
Jorge Aparicio
66585909ef re-export generic_array::ArrayLength 2018-04-27 04:53:05 +02:00
Jorge Aparicio
f58f7abfed port IndexMap and IndexSet 2018-04-23 19:40:36 +02:00
Jorge Aparicio
c1892739f7 drop untagged-option dependency, and depend on generic-array 2018-04-22 00:41:13 +02:00
bors[bot]
a8d404fbe8 Merge #26
26: Ringbuffer iterators macro r=japaric a=XOSplicer

Resolves #6 

Refactor the ring_buffer::{Iter,IterMut} implementations to use a macro, so there is less duplicate code.
Inspired by the[ slice iterator macro in lib core](https://github.com/rust-lang/rust/blob/master/src/libcore/slice/mod.rs).

I have never worked with macros to generate const / mut implementations.
So this might be a little rough.

`#![allow(stable_features)]` is needed for current rust nightly, since otherwise `conservative_impl_trait` would throw a warning. Removing the feature flag would not be backwards compatible with earlier nightly versions.

Co-authored-by: Felix <stegmaier.felix@gmail.com>
2018-04-19 19:46:33 +00:00
Jorge Aparicio
ad13b81a21 implement BinaryHeap 2018-04-18 02:47:18 +02:00
Jorge Aparicio
9fc5f71799 elide bounds check in Vec.deref{,_mut} 2018-04-13 16:21:21 +02:00
Felix
8e51a6138f #![allow(stable_features)]
#![feature(conservative_impl_trait)] has been stabelized in Rust 1.26, #![deny(warnings)]  would therefore break the build when a stable feature is explicitly used
2018-04-09 22:15:27 +02:00
Jorge Aparicio
d1e51cb43f add LinearMap 2018-03-11 22:35:27 +01:00
Mike Hommey
b086fa992b Remove unused features 2018-03-04 07:19:01 +09:00
Jorge Aparicio
95893d4155 v0.2.2 2018-03-01 20:38:38 +01:00
Jorge Aparicio
0dd522268c fix warnings 2018-03-01 19:40:39 +01:00
Per Lindgren
faad961e9c add String 2018-03-01 19:00:55 +01:00
Jorge Aparicio
30ea33c349 relax the lifetime constraint of RingBuffer.split
also

- add a "`split` freezes the ring buffer" compile fail test
- hide compile-fail doc tests
- add scoped threads tests
2017-11-09 02:27:01 +01:00
Jorge Aparicio
37c8b5b637 create our own AtomicUsize
which works on thumbv6m-none-eabi and probably other targets with max-atomic-width = 0
2017-11-08 22:12:24 +01:00
Jorge Aparicio
978f0ee2de add a compiler barrier 2017-11-08 00:50:26 +01:00
Jorge Aparicio
55f891e64f use atomics where available
cc #5
2017-10-31 21:26:02 +01:00
Jorge Aparicio
da5757a71b add examples and cfail tests 2017-10-31 17:59:47 +01:00
Jorge Aparicio
e841c8a664 update the documentation 2017-10-31 16:48:11 +01:00
Jorge Aparicio
7e91814cf8 support arrays of any size, don't require an initialization value, ..
single producer single consumer support for ring buffer
2017-10-03 16:04:27 +02:00
Jorge Aparicio
f515ed9ead v0.1.0 2017-04-27 16:25:57 -05:00
Jorge Aparicio
2d8ff5b066 fix bug in Vec.push
the length of the vector wasn't being incremented
2017-03-17 12:07:23 -05:00
Jorge Aparicio
1d9cdb1ae1 initial commit 2017-03-05 00:30:10 -05:00