{"id":16489936,"url":"https://github.com/crowdagger/yaml_extras","last_synced_at":"2026-05-30T23:31:27.910Z","repository":{"id":190270570,"uuid":"682285266","full_name":"crowdagger/yaml_extras","owner":"crowdagger","description":"Restructure a YAML internal representations so that dotted keys map to inner fields ","archived":false,"fork":false,"pushed_at":"2023-09-05T01:30:50.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-24T17:48:17.340Z","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":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crowdagger.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"lise_henry"}},"created_at":"2023-08-23T21:01:00.000Z","updated_at":"2025-08-25T17:14:33.000Z","dependencies_parsed_at":"2023-08-24T02:55:27.558Z","dependency_job_id":"791cd599-aec5-4acb-9c39-59de15c0f87d","html_url":"https://github.com/crowdagger/yaml_extras","commit_stats":null,"previous_names":["lise-henry/yaml_restructure_dots","lise-henry/yaml_extras","crowdagger/yaml_extras"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/crowdagger/yaml_extras","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crowdagger%2Fyaml_extras","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crowdagger%2Fyaml_extras/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crowdagger%2Fyaml_extras/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crowdagger%2Fyaml_extras/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crowdagger","download_url":"https://codeload.github.com/crowdagger/yaml_extras/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crowdagger%2Fyaml_extras/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33714033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-11T13:45:53.390Z","updated_at":"2026-05-30T23:31:27.893Z","avatar_url":"https://github.com/crowdagger.png","language":"Rust","funding_links":["https://github.com/sponsors/lise_henry"],"categories":[],"sub_categories":[],"readme":"# yaml_extras\n\nMisc yaml-related utility functions.\n\n## Restructure\n\nIf you use YAML for a configuration file, you might want to allow to use\nboth things like:\n\n```yaml\ncompiler:\n    command: cargo build\n```\n\nand:\n\n```yaml\ncompiler.command: cargo build\n```\n\n(Or not. I know *I* needed that. Whatever.)\n\nThe functions `restructure_map` and `restructure_from_str` allow just that,\nconverting dotted keys to inner fiels:\n\n```rust\n        let s1 = r#\"\ncompiler:\n    command: cargo build\n\"#;\n\n        let s2 = r#\"\ncompiler.command: cargo build\n\"#;\n        let v1: serde_yaml::Value = serde_yaml::from_str(s1).unwrap();\n        let v2 = yaml_extras::restructure_from_str(\u0026s2, true).unwrap();\n        assert_eq!(v1, v2);\n```\n\nLicense: MPL-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrowdagger%2Fyaml_extras","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrowdagger%2Fyaml_extras","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrowdagger%2Fyaml_extras/lists"}