{"id":16702748,"url":"https://github.com/jasperav/env_parser","last_synced_at":"2025-03-14T07:46:48.932Z","repository":{"id":57625471,"uuid":"304926148","full_name":"Jasperav/env_parser","owner":"Jasperav","description":"Parses an env file which can be used to map properties in Rust code","archived":false,"fork":false,"pushed_at":"2024-01-03T10:51:46.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T07:51:57.068Z","etag":null,"topics":["env","parser","rust"],"latest_commit_sha":null,"homepage":"","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/Jasperav.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":"2020-10-17T16:55:48.000Z","updated_at":"2023-10-26T17:52:50.000Z","dependencies_parsed_at":"2022-08-31T07:24:15.999Z","dependency_job_id":null,"html_url":"https://github.com/Jasperav/env_parser","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/Jasperav%2Fenv_parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jasperav%2Fenv_parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jasperav%2Fenv_parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jasperav%2Fenv_parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jasperav","download_url":"https://codeload.github.com/Jasperav/env_parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243544665,"owners_count":20308168,"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":["env","parser","rust"],"created_at":"2024-10-12T19:06:00.434Z","updated_at":"2025-03-14T07:46:48.906Z","avatar_url":"https://github.com/Jasperav.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Env parser\n\n[![Latest Version](https://img.shields.io/crates/v/env_parser.svg)](https://crates.io/crates/env_parser)\n[![Build Status](https://img.shields.io/github/workflow/status/jasperav/env_parser/CI/master)](https://github.com/jasperav/env_parser/actions)\n\nThis crate will parse an `.env` file. By implementing the `Transformer` trait, you can \ncustomize the behaviour after processing key value pair in the env file. Comments are preserved and \ncan be used on top of the Rust mapped property.\n\nFor convenience there is a feature `to_lazy_static` that will automatically map key value pairs into a `lazy_static` block.\n\nCheck `assert_test.rs` and `assert_test_lazy.rs` for examples.\n\n## Usage\n\nAdd the following to your Cargo.toml...\n\n```toml\n[dependencies]\nenv_parser = \"*\"\n```\n\nIdeally, create `build.rs` file and call the `env_parser` reader from the build file, so that your mapped Rust file\nis always in sync with your `.env` file.\n\n#### License\n\n\u003csup\u003e\nLicensed under either of \u003ca href=\"LICENSE-APACHE\"\u003eApache License, Version\n2.0\u003c/a\u003e or \u003ca href=\"LICENSE-MIT\"\u003eMIT license\u003c/a\u003e at your option.\n\u003c/sup\u003e\n\n\u003cbr\u003e\n\n\u003csub\u003e\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in this crate by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n\u003c/sub\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasperav%2Fenv_parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasperav%2Fenv_parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasperav%2Fenv_parser/lists"}