Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | WIP: stalled out trying to implement const-fn feature.stable-support | Brian Cully | 2019-08-06 | 1 | -0/+4 |
| | | | | | | | | | | | | | Unfortunately, to maintain API compatibility, `replace` needs to be a regular borrow, so we need interior mutability with `UnsafeCell`. Simultaneously, `HandlerArray` needs to be `const fn` so it can be used where `lazy_static` isn't available, which means it needs to initialize its array in one go without the help of `MaybeUninit`. To do that, `Handler` must be `Copy`, but since it contains an `UnsafeCell` now, it cannot be copy. And thus we are boned. There are times when I think the premise of rust is admirable, but implementation is impossible. | ||||
* | WIP: Add `const-fn` feature to attempt support for stable toolchain. | Brian Cully | 2019-07-29 | 1 | -1/+1 |
| | | | | | To get this to work, either `FnMut` traits need to be allowed in `const fn` in stable, or `Handler::new` needs to be non-`const`. | ||||
* | Update to 0.2.0: Add HandlerArray type.v0.2.0 | Brian Cully | 2019-06-03 | 1 | -201/+17 |
| | | | | | | | | | | | | | | * Create HandlerArray as a safe wrapper around Handler. * Add Cargo features for HandlerArray size. * Move Handler into sub-module. * Add CriticalSection sub-module for architecture dependent support of interrupt-free contexts. * Add build rules to pull in cortex-m support for CriticalSection automatically. | ||||
* | Working handler code.v0.1.0 | Brian Cully | 2019-05-10 | 1 | -0/+209 |