diff options
author | Brian Cully <bjc@kublai.com> | 2019-07-29 10:48:05 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2019-07-29 10:48:05 -0400 |
commit | b0c6c4f9a45cf2b965acd3d10499e9df54929b36 (patch) | |
tree | c006650bfb2ff4e233241eb3d5d326cb222daa80 /README.md | |
parent | 9a34921b3310a32644ba1ba2e72b028f27d4a2b2 (diff) | |
download | clint-b0c6c4f9a45cf2b965acd3d10499e9df54929b36.tar.gz clint-b0c6c4f9a45cf2b965acd3d10499e9df54929b36.zip |
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`.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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. |