Does rust have a way to make a compile-time value configurable? Instead of "known at compile-time", it would be "known at startup", but provide the same performance as known at compile-time. Does this exist?
To add some context, I have a project involving a table data structure, and I'd appreciate the benefit of knowing the table dimensions at compile-time, but I won't because I'm writing a library to be consumed and reused where table dimensions will vary between use cases. Because my library needs to compile into a NIF for elixir, it needs to be compiled, but the elixir programs that users will write will likely know the table dimensions at compile-time, but this needs to be passed into rust-land at startup. I would think this would be possible.