I need help to read database connection string from .env file
Are you thinking of the the dotenv crate? It lets you set
ROCKET_DATABASES and other environment variables in a file named
Not really, my application is Dockerized, I want to be able to pass the Database connection string in when running the app rather than setting it in Rocket.toml
Tae a look at Figment. Its documentation is pretty clear on how to read a config value from an environment variable. Plus it's from the creator of Rocket, so I assume that Rocket is using it as its config library.