{"id":13672000,"url":"https://github.com/saschagrunert/indextree","last_synced_at":"2026-04-02T12:00:35.740Z","repository":{"id":14733008,"uuid":"76960961","full_name":"saschagrunert/indextree","owner":"saschagrunert","description":"Arena based tree 🌲 structure by using indices instead of reference counted pointers","archived":false,"fork":false,"pushed_at":"2026-03-24T09:32:11.000Z","size":6489,"stargazers_count":779,"open_issues_count":0,"forks_count":60,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-03-25T10:28:16.366Z","etag":null,"topics":["arena","data-structrues","rust","tree-structure"],"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/saschagrunert.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-12-20T13:57:28.000Z","updated_at":"2026-03-24T09:28:42.000Z","dependencies_parsed_at":"2024-04-03T12:45:17.016Z","dependency_job_id":"0a4d1ccc-4649-40d8-9d41-ec24f376bb6c","html_url":"https://github.com/saschagrunert/indextree","commit_stats":{"total_commits":179,"total_committers":32,"mean_commits":5.59375,"dds":0.8491620111731844,"last_synced_commit":"47c0f89843b0d1747a9eaf9e041b61cb07783ca4"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/saschagrunert/indextree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saschagrunert%2Findextree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saschagrunert%2Findextree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saschagrunert%2Findextree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saschagrunert%2Findextree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saschagrunert","download_url":"https://codeload.github.com/saschagrunert/indextree/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saschagrunert%2Findextree/sbom","scorecard":{"id":801080,"data":{"date":"2025-08-11","repo":{"name":"github.com/saschagrunert/indextree","commit":"d75af59d932916a8d0a8568cb2532234004d790c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":3,"reason":"Found 3/9 approved changesets -- score normalized to 3","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":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":"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":"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":9,"reason":"dependency not pinned by hash detected -- score normalized to 9","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:84: update your workflow using https://app.stepsecurity.io/secureworkflow/saschagrunert/indextree/test.yml/main?enable=pin","Info:  14 out of  14 GitHub-owned GitHubAction dependencies pinned","Info:   6 out of   7 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":"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":"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":"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":-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 'main'"],"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 30 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-23T10:29:50.223Z","repository_id":14733008,"created_at":"2025-08-23T10:29:50.224Z","updated_at":"2025-08-23T10:29:50.224Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31305971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T09:48:21.550Z","status":"ssl_error","status_checked_at":"2026-04-02T09:48:19.196Z","response_time":89,"last_error":"SSL_read: 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":["arena","data-structrues","rust","tree-structure"],"created_at":"2024-08-02T09:01:23.740Z","updated_at":"2026-04-02T12:00:35.734Z","avatar_url":"https://github.com/saschagrunert.png","language":"Rust","readme":"# indextree\n\n[![GitHub Actions](https://github.com/saschagrunert/indextree/actions/workflows/test.yml/badge.svg)](https://github.com/saschagrunert/indextree/actions/workflows/test.yml)\n[![Coverage](https://codecov.io/gh/saschagrunert/indextree/branch/main/graph/badge.svg)](https://codecov.io/gh/saschagrunert/indextree)\n[![Dependency Status](https://deps.rs/repo/github/saschagrunert/indextree/status.svg)](https://deps.rs/repo/github/saschagrunert/indextree)\n[![Doc indextree](https://img.shields.io/badge/main-indextree-blue.svg)](https://saschagrunert.github.io/indextree/doc/indextree)\n[![License MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/saschagrunert/indextree/blob/main/LICENSE)\n[![Crates.io](https://img.shields.io/crates/v/indextree.svg)](https://crates.io/crates/indextree)\n[![doc.rs](https://docs.rs/indextree/badge.svg)](https://docs.rs/indextree)\n\n## Arena based tree structure with multithreading support\n\nThis arena tree structure is using just a single `Vec` and numerical identifiers\n(indices in the vector) instead of reference counted pointers. This means there\nis no `RefCell` and mutability is handled in a way much more idiomatic to Rust\nthrough unique (\u0026mut) access to the arena. The tree can be sent or shared across\nthreads like a `Vec`. This enables general multiprocessing support like\nparallel tree traversals.\n\n### Features\n\n| Feature    | Default | Description                                                        |\n| ---------- | ------- | ------------------------------------------------------------------ |\n| `std`      | yes     | Standard library support. Disable for `no_std` (requires `alloc`). |\n| `macros`   | yes     | `tree!` macro for declarative tree construction.                   |\n| `deser`    | no      | Serde serialization and deserialization.                           |\n| `par_iter` | no      | Parallel iteration via rayon.                                      |\n\n### Example usage\n\n```rust\nuse indextree::Arena;\n\n// Create a new arena\nlet arena = \u0026mut Arena::new();\n\n// Add some new nodes to the arena\nlet a = arena.new_node(1);\nlet b = arena.new_node(2);\n\n// Append b to a\na.append(b, arena);\nassert_eq!(b.ancestors(arena).count(), 2);\n```\n\n### Building trees with the `tree!` macro\n\nThe optional `macros` feature (enabled by default) provides a `tree!` macro\nfor declarative tree construction:\n\n```rust\nuse indextree::{Arena, macros::tree};\n\nlet arena = \u0026mut Arena::new();\nlet root = tree!(arena, \"root\" =\u003e {\n    \"child_1\" =\u003e {\n        \"grandchild_1\",\n        \"grandchild_2\",\n    },\n    \"child_2\",\n    \"child_3\",\n});\n\nassert_eq!(root.child_count(arena), 3);\nassert_eq!(root.descendants(arena).count(), 6);\n```\n\n### Building a file system tree\n\n```rust\nuse indextree::Arena;\n\nlet arena = \u0026mut Arena::new();\nlet root = arena.new_node(\"/\");\nlet etc = root.append_value(\"etc/\", arena);\nlet usr = root.append_value(\"usr/\", arena);\n\netc.append_value(\"hosts\", arena);\netc.append_value(\"resolv.conf\", arena);\n\nlet bin = usr.append_value(\"bin/\", arena);\nbin.append_value(\"rustc\", arena);\n\n// Traverse and collect paths\nlet descendants: Vec\u003c_\u003e = root\n    .descendants(arena)\n    .map(|id| *arena[id].get())\n    .collect();\nassert_eq!(\n    descendants,\n    vec![\"/\", \"etc/\", \"hosts\", \"resolv.conf\", \"usr/\", \"bin/\", \"rustc\"]\n);\n```\n\n### Parallel iteration\n\nWith the `par_iter` feature, trees can be traversed in parallel using\n[rayon](https://crates.io/crates/rayon):\n\n```rust,ignore\nuse indextree::Arena;\nuse rayon::prelude::*;\n\nlet arena = \u0026mut Arena::new();\nlet root = arena.new_node(0);\nfor i in 1..=1000 {\n    root.append_value(i, arena);\n}\n\nlet sum: i64 = arena.par_iter().map(|node| *node.get()).sum();\nassert_eq!(sum, 500500);\n```\n","funding_links":[],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaschagrunert%2Findextree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaschagrunert%2Findextree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaschagrunert%2Findextree/lists"}