You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I may be going about this wrong, but I'm working on a Yew application with some configuration values that need to change based on environment (e.g., GraphQL server URLs). While Rust doesn't have the notion of an "environment" in the same way that JavaScript does, using from_filename I can approximate that and keep the config neatly split into multiple files. However, because this is WebAssembly, I need the values to be read in during compilation. dotenv_macro only supports reading in a file named .env via the dotenv! macro. It'd be quite helpful if there were a corresponding from_filename or from_filename_override! macro.
The text was updated successfully, but these errors were encountered:
I may be going about this wrong, but I'm working on a Yew application with some configuration values that need to change based on environment (e.g., GraphQL server URLs). While Rust doesn't have the notion of an "environment" in the same way that JavaScript does, using
from_filename
I can approximate that and keep the config neatly split into multiple files. However, because this is WebAssembly, I need the values to be read in during compilation. dotenv_macro only supports reading in a file named .env via thedotenv!
macro. It'd be quite helpful if there were a correspondingfrom_filename
orfrom_filename_override!
macro.The text was updated successfully, but these errors were encountered: