{"id":63905,"library":"genv","title":"Genv","description":"Global static variable initialized from environment variables.","status":"active","version":"0.1.18","language":"rust","source_language":null,"source_url":"https://github.com/i18n-site/rust","tags":["environment","global","static","configuration"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ngenv = \"0.1.18\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add genv","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"genv","correct":"use genv::genv;"}],"quickstart":{"code":"use genv::genv;\n\ngenv! {\n    static MY_VAR: String = \"MY_VAR\";\n}\n\nfn main() {\n    println!(\"{}\", MY_VAR);\n}","lang":"rust","description":"Define a global static variable from an environment variable."},"warnings":[{"fix":"Ensure the environment variable is set before accessing the static.","message":"The macro generates code that panics if the environment variable is not set.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'configur':12 'environ':7,9 'genv':1 'global':2,10 'initi':5 'static':3,11 'variabl':4,8","created_at":"2026-06-17T16:49:19.020974+00:00","updated_at":"2026-06-17T16:49:19.020974+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/i18n-site/rust/tree/main/genv","github":"https://github.com/i18n-site/rust","docs":"https://docs.rs/genv/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["config"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}