{"id":33933155,"url":"https://github.com/hucsmn/qbsdiff","last_synced_at":"2026-04-09T00:02:04.590Z","repository":{"id":62443168,"uuid":"215751962","full_name":"hucsmn/qbsdiff","owner":"hucsmn","description":"fast and memory saving bsdiff 4.x compatible delta compressor and patcher","archived":false,"fork":false,"pushed_at":"2025-12-01T02:54:29.000Z","size":13882,"stargazers_count":44,"open_issues_count":4,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-02T10:48:09.408Z","etag":null,"topics":["bsdiff","delta-compression","suffix-array"],"latest_commit_sha":null,"homepage":null,"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/hucsmn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2019-10-17T09:17:55.000Z","updated_at":"2025-12-27T00:41:41.000Z","dependencies_parsed_at":"2025-04-11T08:42:23.480Z","dependency_job_id":"90b29ebf-6007-4ad2-8c91-fb175795896a","html_url":"https://github.com/hucsmn/qbsdiff","commit_stats":{"total_commits":85,"total_committers":3,"mean_commits":"28.333333333333332","dds":"0.10588235294117643","last_synced_commit":"be7d633fad9d6f954a42e898baad5613515fa241"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/hucsmn/qbsdiff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hucsmn%2Fqbsdiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hucsmn%2Fqbsdiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hucsmn%2Fqbsdiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hucsmn%2Fqbsdiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hucsmn","download_url":"https://codeload.github.com/hucsmn/qbsdiff/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hucsmn%2Fqbsdiff/sbom","scorecard":{"id":472020,"data":{"date":"2025-08-11","repo":{"name":"github.com/hucsmn/qbsdiff","commit":"d5d26c218113ae2d695da0ba6bd8ab0473eff40a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"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":"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":"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":2,"reason":"Found 6/26 approved changesets -- score normalized to 2","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":"Binary-Artifacts","score":0,"reason":"binaries present in source code","details":["Warn: binary detected: assets/bin/bsdiff:1","Warn: binary detected: assets/bin/bsdiff.exe:1","Warn: binary detected: assets/bin/bsdiff.macos:1","Warn: binary detected: assets/bin/bspatch:1","Warn: binary detected: assets/bin/bspatch.exe:1","Warn: binary detected: assets/bin/bspatch.macos:1","Warn: binary detected: assets/pathological/qemu-m68k.s:1","Warn: binary detected: assets/pathological/qemu-m68k.t:1","Warn: binary detected: assets/samples/libgudev.s:1","Warn: binary detected: assets/samples/libgudev.t:1","Warn: binary detected: assets/samples/rg.s:1","Warn: binary detected: assets/samples/rg.t:1","Warn: binary detected: assets/samples/yay.s:1","Warn: binary detected: assets/samples/yay.t:1"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.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":"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: MIT 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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.4.0 not signed: https://api.github.com/repos/hucsmn/qbsdiff/releases/49785931","Warn: release artifact v1.4.0 does not have provenance: https://api.github.com/repos/hucsmn/qbsdiff/releases/49785931"],"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":"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/test.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/hucsmn/qbsdiff/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/hucsmn/qbsdiff/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/hucsmn/qbsdiff/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/hucsmn/qbsdiff/test.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 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-19T14:10:50.860Z","repository_id":62443168,"created_at":"2025-08-19T14:10:50.860Z","updated_at":"2025-08-19T14:10:50.860Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31579058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"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":["bsdiff","delta-compression","suffix-array"],"created_at":"2025-12-12T13:02:44.088Z","updated_at":"2026-04-09T00:02:04.571Z","avatar_url":"https://github.com/hucsmn.png","language":"Rust","readme":"qbsdiff\n=======\n\n[![crates](https://img.shields.io/badge/crates-1.4.4-blue)](https://crates.io/crates/qbsdiff)\n[![docs](https://img.shields.io/badge/docs-1.4.4-blue)](https://docs.rs/qbsdiff)\n[![dependency status](https://deps.rs/repo/github/hucsmn/qbsdiff/status.svg)](https://deps.rs/repo/github/hucsmn/qbsdiff)\n\n\nFast and memory saving bsdiff 4.x compatible delta compressor and patcher.\n\nAdd dependency to `Cargo.toml`:\n```toml\n[dependencies]\nqbsdiff = \"1.4\"\n```\n\nBuild commands\n--------------\n\nBuild `qbsdiff` and `qbspatch` commands:\n```shell\n$ cargo build --release --bins --features cmd\n$ cd target/release\n$ ./qbsdiff --help\n$ ./qbspatch --help\n```\nInstall commands to `$CARGO_HOME/bin`:\n```shell\n$ cargo install qbsdiff --features cmd\n```\n\nExamples\n--------\n\nProduce the target stream by applying `patch` to `source`:\n```rust\nuse std::io;\nuse qbsdiff::Bspatch;\n\nfn bspatch(source: \u0026[u8], patch: \u0026[u8]) -\u003e io::Result\u003cVec\u003cu8\u003e\u003e {\n    let patcher = Bspatch::new(patch)?;\n    let mut target = Vec::new();\n    // To preallocate target:\n    //Vec::with_capacity(patcher.hint_target_size() as usize);\n    patcher.apply(source, io::Cursor::new(\u0026mut target))?;\n    Ok(target)\n}\n```\n\n\nProduce the patch data by comparing `source` with `target`:\n```rust\nuse std::io;\nuse qbsdiff::Bsdiff;\n\nfn bsdiff(source: \u0026[u8], target: \u0026[u8]) -\u003e io::Result\u003cVec\u003cu8\u003e\u003e {\n    let mut patch = Vec::new();\n    Bsdiff::new(source, target)\n        .compare(io::Cursor::new(\u0026mut patch))?;\n    Ok(patch)\n}\n```\n\nNote that `qbsdiff` would not generate exactly the same patch file as `bsdiff`.\nOnly the patch file format is promised to be compatible.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhucsmn%2Fqbsdiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhucsmn%2Fqbsdiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhucsmn%2Fqbsdiff/lists"}