const-ft
A macro for easy generation and wrapping of a const function under a const_fn feature gate.
Installation:
= { = "0.1" }
You can enable the feature by having a feature in the project enable the feature from the crate:
[]
= ["const-ft/const_fn"]
Usage:
const_ft!
Requirement:
By using the macro, your code changes from
pub const
to
extern crate const_ft;
const_ft!