{"id":15890576,"url":"https://github.com/dimfeld/rust-envoption","last_synced_at":"2025-03-20T11:36:15.858Z","repository":{"id":57625440,"uuid":"72796803","full_name":"dimfeld/rust-envoption","owner":"dimfeld","description":"Simple helper functions for environment variables","archived":false,"fork":false,"pushed_at":"2016-11-18T22:55:01.000Z","size":19,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-07T07:06:57.723Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimfeld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-03T23:42:24.000Z","updated_at":"2018-12-13T10:10:36.000Z","dependencies_parsed_at":"2022-08-26T22:21:26.786Z","dependency_job_id":null,"html_url":"https://github.com/dimfeld/rust-envoption","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Frust-envoption","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Frust-envoption/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Frust-envoption/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Frust-envoption/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimfeld","download_url":"https://codeload.github.com/dimfeld/rust-envoption/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221753106,"owners_count":16875086,"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-06T07:06:48.979Z","updated_at":"2024-10-28T00:41:40.666Z","avatar_url":"https://github.com/dimfeld.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EnvOption\n\n[![crates.io](https://img.shields.io/crates/v/envoption.svg)](https://crates.io/crates/envoption)\n\nSimple functions for parsing environment variables when reading config.\n\n* `require` - Parse an environment variable or return an error if it doesn't exist.\n* `optional` - Same as above, but return an `Option\u003cT\u003e` set to `None` if the variable doesn't exist.\n* `with_default` - As above, but return a default value if the variable doesn't exist.\n\n[Documentation](https://docs.rs/envoption/)\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any\nadditional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimfeld%2Frust-envoption","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimfeld%2Frust-envoption","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimfeld%2Frust-envoption/lists"}