{"id":33936120,"url":"https://github.com/fralalonde/strict-yaml-rust","last_synced_at":"2026-04-02T01:29:57.266Z","repository":{"id":39708094,"uuid":"140627103","full_name":"fralalonde/strict-yaml-rust","owner":"fralalonde","description":"A StrictYAML implementation for Rust","archived":false,"fork":false,"pushed_at":"2026-02-05T20:14:38.000Z","size":262,"stargazers_count":27,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-06T05:55:32.692Z","etag":null,"topics":["rust","strictyaml","yaml"],"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/fralalonde.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":"2018-07-11T21:02:05.000Z","updated_at":"2026-02-05T20:14:16.000Z","dependencies_parsed_at":"2022-08-24T01:31:24.653Z","dependency_job_id":null,"html_url":"https://github.com/fralalonde/strict-yaml-rust","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fralalonde/strict-yaml-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fralalonde%2Fstrict-yaml-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fralalonde%2Fstrict-yaml-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fralalonde%2Fstrict-yaml-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fralalonde%2Fstrict-yaml-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fralalonde","download_url":"https://codeload.github.com/fralalonde/strict-yaml-rust/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fralalonde%2Fstrict-yaml-rust/sbom","scorecard":{"id":408862,"data":{"date":"2025-08-11","repo":{"name":"github.com/fralalonde/strict-yaml-rust","commit":"cdfc6f1ac407ef94b0fbe3a4fdc24f9ebd5e01e5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 1/25 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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-APACHE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE-APACHE: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 6 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-18T22:06:58.884Z","repository_id":39708094,"created_at":"2025-08-18T22:06:58.884Z","updated_at":"2025-08-18T22:06:58.884Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:05:07.454Z","status":"ssl_error","status_checked_at":"2026-04-02T00:56:46.496Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["rust","strictyaml","yaml"],"created_at":"2025-12-12T14:04:35.571Z","updated_at":"2026-04-02T01:29:57.258Z","avatar_url":"https://github.com/fralalonde.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"strict-yaml-rust\n-----\nA [StrictYAML](http://hitchdev.com/strictyaml/) implementation for Rust \nobtained by savagely chopping off code from [yaml-rust](https://crates.io/crates/yaml-rust).\n\nNow with built-in `serde` support as an optional feature! (@puetzp)\n\n[![license](https://img.shields.io/crates/l/strict-yaml-rust.svg)](https://crates.io/crates/strict-yaml-rust/)\n[![version](https://img.shields.io/crates/v/strict-yaml-rust.svg)](https://crates.io/crates/strict-yaml-rust/)\n\n## What is StrictYAML?\n\nStrictYAML is a subset of the YAML format, removing troublesome parts of the specification:\n\n - No typing. StrictYAML only knows Strings, Arrays and Dicts (Maps)  \n - No duplicate keys\n - No tags\n - No anchors or refs\n - No \"flow\" style (embedded JSON)\n \nIn short, keeping only the parts of YAML that we all know and love.\n\nFor more details, see the original documentation and implementation:\n\n - http://hitchdev.com/strictyaml/\n - https://github.com/crdoconnor/strictyaml\n \n## Caveats\n\nMissing from this implementation is a \n[programmatic schema](https://hitchdev.com/strictyaml/using/alpha/howto/either-or-validation/), \nwhich would enable document validation and typed value parsing. \nSeems that you'll still have to parse integers and dates from strings, \nor [send a PR](https://github.com/fralalonde/strict-yaml-rust/pulls)!\n\n## Quick Start\n\nAdd the following to the Cargo.toml of your project:\n\n```toml\n[dependencies]\nstrict-yaml-rust = \"0.2\"\n```\n\nor\n\n```toml\n[dependencies.yaml-rust]\ngit = \"https://github.com/fralalonde/strict-yaml-rust.git\"\n```\n\nUse `StrictYamlLoader` to load the YAML documents, access it as Vec/HashMap and finally print it to `stdout` via `StrictYamlEmitter`:\n\n```rust\nuse strict_yaml_rust::{StrictYamlEmitter, StrictYamlLoader};\n\nfn main() {\n    let s = \"\nfoo:\n    - list1\n    - list2\nbar:\n    - 1\n    - 2.0\n\";\n    let docs = StrictYamlLoader::load_from_str(s).unwrap();\n\n    // Multi document support, doc is a yaml::Yaml\n    let doc = \u0026docs[0];\n\n    // Debug support\n    println!(\"{:?}\", doc);\n\n    // Index access for map \u0026 array\n    assert_eq!(doc[\"foo\"][0].as_str().unwrap(), \"list1\");\n    assert_eq!(doc[\"bar\"][1].as_str().unwrap(), \"2.0\");\n\n    // Chained key/array access is checked and won't panic,\n    // return BadValue if a key does not exist.\n    assert!(doc[\"INVALID_KEY\"][100].is_badvalue());\n\n    // Dump the YAML object\n    let mut out_str = String::new();\n\n    {\n        let mut emitter = StrictYamlEmitter::new(\u0026mut out_str);\n        emitter.dump(doc).unwrap(); // dump the YAML object to a String\n    }\n\n    println!(\"{}\", out_str);\n}\n```\n\nNote that `strict_yaml_rust::StrictYaml` implements `Index\u003c\u0026'a str\u003e` AND `Index\u003cusize\u003e`:\n\n* `Index\u003cusize\u003e` assumes the container is an Array\n* `Index\u003c\u0026'a str\u003e` assumes the container is a string to value Map\n* otherwise, `Yaml::BadValue` is returned\n\n## Features\n\n* Pure Rust\n* Ruby-like Array/Hash access API\n* Low-level StrictYAML events emission\n\n## Specification Compliance\n\nThis implementation aims to provide StrictYAML parser fully compatible with the StrictYAML specification. \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\nFork \u0026 PR on Github.\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any\nadditional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffralalonde%2Fstrict-yaml-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffralalonde%2Fstrict-yaml-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffralalonde%2Fstrict-yaml-rust/lists"}