{"id":13502964,"url":"https://github.com/rubik/hydroconf","last_synced_at":"2026-03-04T21:34:26.949Z","repository":{"id":51204815,"uuid":"284645206","full_name":"rubik/hydroconf","owner":"rubik","description":"Effortless configuration management for Rust, inspired by Dynaconf.","archived":false,"fork":false,"pushed_at":"2023-10-12T06:10:18.000Z","size":76,"stargazers_count":52,"open_issues_count":3,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-08T18:29:23.633Z","etag":null,"topics":["12-factor","configuration","configuration-management"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubik.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-08-03T08:27:43.000Z","updated_at":"2025-12-07T01:48:19.000Z","dependencies_parsed_at":"2024-01-18T23:26:05.420Z","dependency_job_id":"5bbeed6b-9f44-47de-808d-72d2d80bbef7","html_url":"https://github.com/rubik/hydroconf","commit_stats":{"total_commits":36,"total_committers":1,"mean_commits":36.0,"dds":0.0,"last_synced_commit":"fac13fbe6268bee171b80c1812c7beba8f9c4718"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rubik/hydroconf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubik%2Fhydroconf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubik%2Fhydroconf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubik%2Fhydroconf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubik%2Fhydroconf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubik","download_url":"https://codeload.github.com/rubik/hydroconf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubik%2Fhydroconf/sbom","scorecard":{"id":788799,"data":{"date":"2025-08-11","repo":{"name":"github.com/rubik/hydroconf","commit":"fac13fbe6268bee171b80c1812c7beba8f9c4718"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: ISC License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T06:51:58.802Z","repository_id":51204815,"created_at":"2025-08-23T06:51:58.802Z","updated_at":"2025-08-23T06:51:58.802Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30093987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T20:42:30.420Z","status":"ssl_error","status_checked_at":"2026-03-04T20:42:30.057Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["12-factor","configuration","configuration-management"],"created_at":"2024-07-31T22:02:31.929Z","updated_at":"2026-03-04T21:34:26.296Z","avatar_url":"https://github.com/rubik.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg alt=\"Hydroconf logo\" src=\"https://github.com/rubik/hydroconf/raw/master/images/logo.png\" height=\"130\" /\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eHydroconf\u003c/h1\u003e\n  \u003cp\u003eEffortless configuration management for Rust. Keep your apps hydrated!\u003c/p\u003e\n  \u003ca target=\"_blank\" href=\"https://travis-ci.org/rubik/hydroconf\"\u003e\n    \u003cimg src=\"https://img.shields.io/travis/rubik/hydroconf?style=for-the-badge\" alt=\"Build\"\u003e\n  \u003c/a\u003e\n  \u003ca target=\"_blank\" href=\"https://coveralls.io/github/rubik/hydroconf\"\u003e\n    \u003cimg src=\"https://img.shields.io/coveralls/github/rubik/hydroconf?style=for-the-badge\" alt=\"Code Coverage\"\u003e\n  \u003c/a\u003e\n  \u003ca target=\"_blank\" href=\"https://crates.io/crates/hydroconf\"\u003e\n   \u003cimg src=\"https://img.shields.io/crates/d/hydroconf?style=for-the-badge\" alt=\"Downloads (all time)\"\u003e\n  \u003ca\u003e\n  \u003ca href=\"https://github.com/rubik/hydroconf/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/crates/l/hydroconf?style=for-the-badge\" alt=\"ISC License\"\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n\u003c/div\u003e\n\nHydroconf is a configuration management library for Rust, based on [config-rs]\nand heavily inspired by Python's [dynaconf].\n\n# Features\n* Inspired by the [12-factor] configuration principles\n* Effective separation of sensitive information (secrets)\n* Layered system for multi environments (e.g. development, staging, production,\n  etc.)\n* Sane defaults, with a 1-line configuration loading\n* Read from [JSON], [TOML], [YAML], [HJSON], [INI] files\n\nThe [config-rs] library is a great building block, but it does not provide a\ndefault mechanism to load configuration and merge secrets, while keeping the\ndifferent environments separated. Hydroconf fills this gap.\n\n[config-rs]: https://github.com/mehcode/config-rs\n[dynaconf]: https://github.com/rochacbruno/dynaconf\n[12-factor]: https://12factor.net/config\n[JSON]: https://github.com/serde-rs/json\n[TOML]: https://github.com/toml-lang/toml\n[YAML]: https://github.com/chyh1990/yaml-rust\n[HJSON]: https://github.com/hjson/hjson-rust\n[INI]: https://github.com/zonyitoo/rust-ini\n\n# Quickstart\n\nSuppose you have the following file structure:\n\n```\n├── config\n│   ├── .secrets.toml\n│   └── settings.toml\n└── your-executable\n```\n\n`settings.toml`:\n\n```toml\n[default]\npg.port = 5432\npg.host = 'localhost'\n\n[production]\npg.host = 'db-0'\n```\n\n`.secrets.toml`:\n\n```toml\n[default]\npg.password = 'a password'\n\n[production]\npg.password = 'a strong password'\n```\n\nThen, in your executable source (make sure to add `serde = { version = \"1.0\",\nfeatures = [\"derive\"] }` to your dependencies):\n\n```rust\nuse serde::Deserialize;\nuse hydroconf::Hydroconf;\n\n#[derive(Debug, Deserialize)]\nstruct Config {\n    pg: PostgresConfig,\n}\n\n#[derive(Debug, Deserialize)]\nstruct PostgresConfig {\n    host: String,\n    port: u16,\n    password: String,\n}\n\nfn main() {\n    let conf: Config = match Hydroconf::default().hydrate() {\n        Ok(c) =\u003e c,\n        Err(e) =\u003e {\n            println!(\"could not read configuration: {:#?}\", e);\n            std::process::exit(1);\n        }\n    };\n\n    println!(\"{:#?}\", conf);\n}\n```\n\nIf you compile and execute the program (making sure the executable is in the\nsame directory where the `config` directory is), you will see the following:\n\n```sh\n$ ./your-executable\nConfig {\n    pg: PostgresConfig {\n        host: \"localhost\",\n        port: 5432,\n        password: \"a password\"\n    }\n}\n```\n\nHydroconf will select the settings in the `[default]` table by default. If you\nset `ENV_FOR_HYDRO` to `production`, Hydroconf will overwrite them with the\nproduction ones:\n\n```sh\n$ ENV_FOR_HYDRO=production ./your-executable\nConfig {\n    pg: PostgresConfig {\n        host: \"db-0\",\n        port: 5432,\n        password: \"a strong password\"\n    }\n}\n```\n\nSettings can always be overridden with environment variables:\n\n```bash\n$ HYDRO_PG__PASSWORD=\"an even stronger password\" ./your-executable\nConfig {\n    pg: PostgresConfig {\n        host: \"localhost\",\n        port: 5432,\n        password: \"an even stronger password\"\n    }\n}\n```\n\nThe description of all Hydroconf configuration options and how the program\nconfiguration is loaded can be found in the\n[documentation](https://docs.rs/hydroconf).\n\n\u003cdiv\u003e\n  \u003csmall\u003e\n    Logo made by \u003ca href=\"https://www.flaticon.com/authors/freepik\" title=\"Freepik\"\u003eFreepik\u003c/a\u003e from \u003ca href=\"https://www.flaticon.com\" title=\"Flaticon\"\u003ewww.flaticon.com\u003c/a\u003e\n  \u003c/small\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubik%2Fhydroconf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubik%2Fhydroconf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubik%2Fhydroconf/lists"}