pub fn is_dev() -> bool
Check if --dev or -d argument was passed on cargo run
--dev
-d
cargo run
This will run in production mode
This will run in development mode
cargo run -- --dev cargo run -- -d