{"id":17835697,"url":"https://github.com/rob2309/env-cast-rs","last_synced_at":"2025-04-02T13:11:48.465Z","repository":{"id":57625470,"uuid":"459465801","full_name":"Rob2309/env-cast-rs","owner":"Rob2309","description":"Macro to parse an environment variable into a numeric type at compile time","archived":false,"fork":false,"pushed_at":"2022-12-30T09:29:58.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T04:50:16.393Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rob2309.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-15T07:05:50.000Z","updated_at":"2022-02-15T07:09:19.000Z","dependencies_parsed_at":"2023-01-31T11:01:40.705Z","dependency_job_id":null,"html_url":"https://github.com/Rob2309/env-cast-rs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rob2309%2Fenv-cast-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rob2309%2Fenv-cast-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rob2309%2Fenv-cast-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rob2309%2Fenv-cast-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rob2309","download_url":"https://codeload.github.com/Rob2309/env-cast-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246819785,"owners_count":20839095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-27T20:24:26.615Z","updated_at":"2025-04-02T13:11:48.446Z","avatar_url":"https://github.com/Rob2309.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# env-cast\n\n![MIT license](https://img.shields.io/crates/l/env-cast?style=for-the-badge)\n[![crates.io version](https://img.shields.io/crates/v/env-cast?style=for-the-badge)](https://crates.io/crates/env-cast)\n[![CI](https://img.shields.io/github/actions/workflow/status/rob2309/env-cast-rs/ci.yaml?label=CI\u0026style=for-the-badge)](https://github.com/Rob2309/env-cast-rs/actions/workflows/ci.yaml)\n[![docs](https://img.shields.io/docsrs/env-cast?style=for-the-badge)](https://docs.rs/env-cast)\n\n`env_cast!` reads an environment variable just like `env!(\"XXX\")`, but parses it into a specific type.\n\nSupported types are currently\n`i8, u8, i16, u16, i32, u32, i64, u64, f32, f64`.\n\n## Example\n```rust\nuse env_cast::env_cast;\nlet PKG_MAJOR: u32 = env_cast!(\"CARGO_PKG_VERSION_MAJOR\" as u32);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frob2309%2Fenv-cast-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frob2309%2Fenv-cast-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frob2309%2Fenv-cast-rs/lists"}