Build_const: library for creating importable constants from build.rs or a script


#1

There is a strong desire for const fn, but until that point there should exist a workaround that is easy to use. That is the purpose of the build_const crate:

I think this is something that people might find useful, especially in the embedded space.


#2

I just released the crate with a few tests:

https://crates.io/crates/build_const


#3

Strange. The crates.io link to the repo points to https://github.com/build_const


#4

Thanks, should be fixed. Also put the docs.rs link and improved native docs