Use a procedural macro that reads the config value and generates the const L using the value specified before compilation.
Discussion
Ah thanks, I wasn't entirely sure from a brief read whether proc macros could do it or not, I will research it more, thanks.