config module
and from here i have two option
just make some const variables like
const database_url:String= std::env::vars("DATABASE_URL").unwrap();
or make a config struct and read env vars when constructing it
because this config will be used in a lot if places i think it should be constructed once
what is the best way for doing this?
edit: actualy first option is not possible
Обсуждают сегодня