{"id":15697260,"url":"https://github.com/freyskeyd/environment","last_synced_at":"2025-06-17T16:36:08.054Z","repository":{"id":57625416,"uuid":"106683564","full_name":"Freyskeyd/environment","owner":"Freyskeyd","description":null,"archived":false,"fork":false,"pushed_at":"2017-11-20T12:29:06.000Z","size":17,"stargazers_count":6,"open_issues_count":7,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-06T23:36:46.702Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Freyskeyd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-12T11:24:30.000Z","updated_at":"2019-08-27T20:16:13.000Z","dependencies_parsed_at":"2022-08-26T22:20:24.474Z","dependency_job_id":null,"html_url":"https://github.com/Freyskeyd/environment","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Freyskeyd/environment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freyskeyd%2Fenvironment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freyskeyd%2Fenvironment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freyskeyd%2Fenvironment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freyskeyd%2Fenvironment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Freyskeyd","download_url":"https://codeload.github.com/Freyskeyd/environment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freyskeyd%2Fenvironment/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260399818,"owners_count":23003252,"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-03T19:14:56.761Z","updated_at":"2025-06-17T16:36:03.032Z","avatar_url":"https://github.com/Freyskeyd.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Environment\n\n\u003e **Handle environment variable context** - This crate helps you to deal with environment variables.\n\n[![Build Status](https://travis-ci.org/Freyskeyd/environment.svg)](https://travis-ci.org/Freyskeyd/environment) [![Documentation](https://img.shields.io/badge/docs-master-blue.svg)][Documentation]\n\n## Install\n\nJust add it to your `Cargo.toml`:\n\n```toml\n[dependencies]\nenvironment = \"0.1\"\n```\n\n## Example\n\nHere's a trivial example:\n\n```rust\nextern crate environment;\n\nuse std::process::Command;\n\nfn main() {\n    let env = Environment::inherit().insert(\"foo\", \"bar\");\n\n\n    let mut c = Command::new(\"printenv\");\n\n    let output = c.env_clear()\n        .envs(env.compile())\n        .output()\n        .expect(\"failed to execute command\");\n\n    let output = String::from_utf8_lossy(\u0026output.stdout);\n\n    assert!(output.contains(\"foo=bar\"));\n\n}\n```\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\nsubmitted for inclusion in the work by you, as defined in the Apache-2.0\nlicense, shall be dual licensed as above, without any additional terms or\nconditions.\n\n[Documentation]: https://docs.rs/environment\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreyskeyd%2Fenvironment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreyskeyd%2Fenvironment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreyskeyd%2Fenvironment/lists"}