From b0c6c4f9a45cf2b965acd3d10499e9df54929b36 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Mon, 29 Jul 2019 10:48:05 -0400 Subject: WIP: Add `const-fn` feature to attempt support for stable toolchain. 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`. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index c3c6de5..daf4e03 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,10 @@ configure the number of available slots, specify one of the following cargo features: `isr-8`, `isr-16`, `isr-32`, `isr-64`, `isr-128`, or `isr-256`. By default, 32 slots are available. +If you're using a nightly toolchain, you can enable an optimization +when calling handlers by turning on the `const-fn` feature. This will +save one conditional branch on every call. + # Example Code See the `examples` directory for some simple examples. -- cgit v1.2.3