{"id":18497799,"url":"https://github.com/containers/ocidir-rs","last_synced_at":"2025-07-18T04:37:53.987Z","repository":{"id":242285944,"uuid":"809163716","full_name":"containers/ocidir-rs","owner":"containers","description":"Low level Rust library for working with OCI (opencontainers) directories","archived":false,"fork":false,"pushed_at":"2025-07-09T23:07:30.000Z","size":85,"stargazers_count":10,"open_issues_count":4,"forks_count":4,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-07-10T08:57:57.951Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/containers.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-01T22:07:20.000Z","updated_at":"2025-07-01T16:27:12.000Z","dependencies_parsed_at":"2024-06-02T14:58:37.465Z","dependency_job_id":"1b47a454-c3c9-4810-928d-f2ad962452c9","html_url":"https://github.com/containers/ocidir-rs","commit_stats":null,"previous_names":["cgwalters/ocidir-rs","containers/ocidir-rs"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/containers/ocidir-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2Focidir-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2Focidir-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2Focidir-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2Focidir-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/containers","download_url":"https://codeload.github.com/containers/ocidir-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2Focidir-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264574329,"owners_count":23630657,"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-06T13:35:54.038Z","updated_at":"2025-07-18T04:37:53.957Z","avatar_url":"https://github.com/containers.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ocidir\n\n[![Crates.io][crates-badge]][crates-url]\n\n[crates-badge]: https://img.shields.io/crates/v/ocidir.svg\n[crates-url]: https://crates.io/crates/ocidir\n[![docs.rs](https://docs.rs/ocidir/badge.svg)](https://docs.rs/ocidir)\n\n# Read and write to OCI image layout directories\n\nThis library contains medium and low-level APIs for working with\n[OCI images], which are basically a directory with blobs and JSON files\nfor metadata.\n\n## Dependency on cap-std\n\nThis library makes use of [cap-std] to operate in a capability-oriented\nfashion. In practice, the code in this project is well tested and would\nnot traverse outside its own path root. However, using capabilities\nis a generally good idea when operating in the container ecosystem,\nin particular when actively processing tar streams.\n\n## Examples\n\nTo access an existing OCI directory:\n\n```rust,no_run\n# use ocidir::cap_std;\n# use anyhow::{anyhow, Result};\n# fn main() -\u003e anyhow::Result\u003c()\u003e {\nlet d = cap_std::fs::Dir::open_ambient_dir(\"/path/to/ocidir\", cap_std::ambient_authority())?;\nlet d = ocidir::OciDir::open(d)?;\nprintln!(\"{:?}\", d.read_index()?);\n# Ok(())\n# }\n```\n\n[cap-std]: https://docs.rs/cap-std/\n[OCI images]: https://github.com/opencontainers/image-spec\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontainers%2Focidir-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontainers%2Focidir-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontainers%2Focidir-rs/lists"}