{"id":33934296,"url":"https://github.com/rakaly/eu4save","last_synced_at":"2026-04-02T02:18:02.223Z","repository":{"id":40687475,"uuid":"286273234","full_name":"rakaly/eu4save","owner":"rakaly","description":"Library to ergonomically work with EU4 saves (ironman + mp)","archived":false,"fork":false,"pushed_at":"2025-12-23T04:18:55.000Z","size":492,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-24T19:24:04.871Z","etag":null,"topics":["eu4","ironman","paradox"],"latest_commit_sha":null,"homepage":"","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/rakaly.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-08-09T16:22:13.000Z","updated_at":"2025-12-23T04:18:59.000Z","dependencies_parsed_at":"2025-12-09T17:04:55.362Z","dependency_job_id":null,"html_url":"https://github.com/rakaly/eu4save","commit_stats":{"total_commits":331,"total_committers":1,"mean_commits":331.0,"dds":0.0,"last_synced_commit":"3cda89e0205df5ab4e4d0dab5b0260a4ced49794"},"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"purl":"pkg:github/rakaly/eu4save","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakaly%2Feu4save","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakaly%2Feu4save/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakaly%2Feu4save/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakaly%2Feu4save/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rakaly","download_url":"https://codeload.github.com/rakaly/eu4save/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakaly%2Feu4save/sbom","scorecard":{"id":732103,"data":{"date":"2025-08-11","repo":{"name":"github.com/rakaly/eu4save","commit":"d938818c527e8344ed7db05e833141b0ce1ba882"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.3,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/rust.yml:1","Info: no jobLevel write permissions found"],"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 0/27 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":"Maintained","score":8,"reason":"10 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 8","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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/rakaly/eu4save/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/rakaly/eu4save/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/rakaly/eu4save/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/rakaly/eu4save/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:86: update your workflow using https://app.stepsecurity.io/secureworkflow/rakaly/eu4save/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:88: update your workflow using https://app.stepsecurity.io/secureworkflow/rakaly/eu4save/rust.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"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":10,"reason":"project is fuzzed","details":["Info: RustCargoFuzzer integration found: fuzz/fuzz_targets/fuzz_extract.rs:3"],"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.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt: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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 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"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: non-200 OK status code: 504 Gateway Timeout body: \"{\\\"message\\\": \\\"We couldn't respond to your request in time. Sorry about that. Please try resubmitting your request and contact us if the problem persists.\\\"}\\r\\n\"","details":null,"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"}}]},"last_synced_at":"2025-08-22T14:43:07.705Z","repository_id":40687475,"created_at":"2025-08-22T14:43:07.705Z","updated_at":"2025-08-22T14:43:07.705Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"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":["eu4","ironman","paradox"],"created_at":"2025-12-12T13:34:13.372Z","updated_at":"2026-04-02T02:18:02.215Z","avatar_url":"https://github.com/rakaly.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"![ci](https://github.com/rakaly/eu4save/workflows/ci/badge.svg) [![](https://docs.rs/eu4save/badge.svg)](https://docs.rs/eu4save) [![Version](https://img.shields.io/crates/v/eu4save.svg?style=flat-square)](https://crates.io/crates/eu4save)\n\n# EU4 Save\n\nEU4 Save is a library to ergonomically work with EU4 saves (ironman + mp).\n\n```rust\nuse eu4save::{Eu4File, Encoding, CountryTag, SegmentedResolver};\nlet data = std::fs::read(\"assets/saves/eng.txt.compressed.eu4\")?;\nlet file = Eu4File::from_slice(\u0026data)?;\nlet save = file.parse_save(\u0026SegmentedResolver)?;\nassert_eq!(file.encoding(), Encoding::TextZip);\nassert_eq!(save.meta.player, \"ENG\".parse()?);\n```\n\n## Querying\n\nEven once decoded, the data might be too low level. For example a country can\nhave an income ledger that looks like:\n\n```ignore\nincome = { 1.000 0 2.000 0.000 1.500 }\n```\n\nWhile the structure will decoded successfully into a vector, the context of\nwhat each index means is missing. What value represents the income from\ntrade?\n\nTo help solve questions like these, the `Query` API was created\n\n```rust\nuse eu4save::{Eu4Extractor, Encoding, CountryTag, query::Query};\n\nlet data = std::fs::read(\"assets/saves/eng.txt.compressed.eu4\")?;\nlet file = Eu4File::from_slice(\u0026data)?;\nlet save = file.parse_save(\u0026EnvTokens)?;\nlet save_query = Query::from_save(save);\nlet trade = save_query.country(\u0026\"ENG\".parse()?)\n    .map(|country| save_query.country_income_breakdown(country))\n    .map(|income| income.trade);\nassert_eq!(Some(17.982), trade);\n```\n\n## Ironman\n\nIronman saves are supported, but not by default, as the token resolver can't be distributed, per PDS counsel.\n\nYou may look to other projects EU4 ironman projects like ironmelt or paperman\nfor inspiration.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakaly%2Feu4save","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frakaly%2Feu4save","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakaly%2Feu4save/lists"}