{"id":19517781,"url":"https://github.com/shaybox/derive-config","last_synced_at":"2025-10-24T22:16:08.333Z","repository":{"id":220236851,"uuid":"751118191","full_name":"ShayBox/Derive-Config","owner":"ShayBox","description":"My simple configuration library","archived":false,"fork":false,"pushed_at":"2024-11-04T11:37:22.000Z","size":32,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T13:48:13.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://crates.io/crates/derive-config","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/ShayBox.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-01T00:47:45.000Z","updated_at":"2024-11-04T11:37:25.000Z","dependencies_parsed_at":"2024-02-06T04:31:57.077Z","dependency_job_id":"3c08cf32-c78a-45dc-9677-1e9b7a3ae533","html_url":"https://github.com/ShayBox/Derive-Config","commit_stats":null,"previous_names":["shaybox/config","shaybox/derive-config"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShayBox%2FDerive-Config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShayBox%2FDerive-Config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShayBox%2FDerive-Config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShayBox%2FDerive-Config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShayBox","download_url":"https://codeload.github.com/ShayBox/Derive-Config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250944145,"owners_count":21511703,"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-11-11T00:06:24.645Z","updated_at":"2025-10-24T22:16:08.200Z","avatar_url":"https://github.com/ShayBox.png","language":"Rust","readme":"# Derive Config\n\nMy simple configuration library\n\n```rust\nuse derive_config::DeriveTomlConfig;\nuse serde::{Deserialize, Serialize};\n\n#[derive(Debug, Default, DeriveTomlConfig, Deserialize, Serialize)]\nstruct ExampleConfig {\n    foo: String,\n}\n\nfn main() {\n    let mut config = ExampleConfig::load().unwrap_or_default();\n    println!(\"{}\", config.foo);\n\n    config.foo = String::from(if config.foo == \"bar\" { \"baz\" } else { \"bar\" });\n    config.save().expect(\"Failed to save\");\n    println!(\"{}\", config.foo);\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaybox%2Fderive-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaybox%2Fderive-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaybox%2Fderive-config/lists"}