{"id":21220704,"url":"https://github.com/ydrmaster/dtb-walker","last_synced_at":"2025-06-10T11:35:24.618Z","repository":{"id":38268771,"uuid":"497960648","full_name":"YdrMaster/dtb-walker","owner":"YdrMaster","description":"遍历设备树二进制对象","archived":false,"fork":false,"pushed_at":"2023-12-15T06:00:29.000Z","size":63,"stargazers_count":12,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T09:05:56.098Z","etag":null,"topics":["device-tree","dtb","no-std"],"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/YdrMaster.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}},"created_at":"2022-05-30T13:43:14.000Z","updated_at":"2024-12-20T03:16:03.000Z","dependencies_parsed_at":"2022-07-12T17:21:51.102Z","dependency_job_id":"c22bf345-7906-4ba4-94d1-a90554391cb9","html_url":"https://github.com/YdrMaster/dtb-walker","commit_stats":{"total_commits":33,"total_committers":2,"mean_commits":16.5,"dds":"0.030303030303030276","last_synced_commit":"e9f86dcee033f57399191806aedf41a20c3d03b5"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YdrMaster%2Fdtb-walker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YdrMaster%2Fdtb-walker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YdrMaster%2Fdtb-walker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YdrMaster%2Fdtb-walker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YdrMaster","download_url":"https://codeload.github.com/YdrMaster/dtb-walker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YdrMaster%2Fdtb-walker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259067761,"owners_count":22800389,"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":["device-tree","dtb","no-std"],"created_at":"2024-11-20T22:13:49.826Z","updated_at":"2025-06-10T11:35:24.557Z","avatar_url":"https://github.com/YdrMaster.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# 深度优先遍历设备树二进制对象\n\n[![CI](https://github.com/YdrMaster/dtb-walker/actions/workflows/workflow.yml/badge.svg?branch=main)](https://github.com/YdrMaster/dtb-walker/actions)\n[![Latest version](https://img.shields.io/crates/v/dtb-walker.svg)](https://crates.io/crates/dtb-walker)\n[![issue](https://img.shields.io/github/issues/YdrMaster/dtb-walker)](https://github.com/YdrMaster/dtb-walker/issues)\n[![Documentation](https://docs.rs/dtb-walker/badge.svg)](https://docs.rs/dtb-walker)\n![license](https://img.shields.io/github/license/YdrMaster/dtb-walker)\n\n- [An English README](docs/README_EN.md)\n- [更新日志](CHANGELOG.md)\n\nDTB 深度优先遍历的薄封装。\n\n测试示例：\n\n```cmd\ncargo run --release --example qemu-virt\n```\n\n设备树定义根据 [devicetree-specification-v0.4-rc1](https://github.com/devicetree-org/devicetree-specification/releases/tag/v0.4-rc1)，DTB v17。\n\n特性：\n\n- [x] stable rust\n- [x] 警告视为错误（包括 clippy）\n- [x] 零开销抽象\n  - [x] `no_std`\n  - [x] 不需要 `alloc`\n  - [x] 可选是否检查首部正确性\n  - [x] 提前终止遍历\n  - [x] 标记跳过的节点不解析\n- [x] 内置标准属性解析\n  - [x] `compatible`\n  - [x] `model`\n  - [x] `phandle`\n  - [x] `status`\n  - [x] `#address-cells`\n  - [x] `#size-cells`\n  - [x] `reg`\n  - [x] `virtual-reg`\n  - [ ] `ranges`\n  - [ ] `dma-ranges`\n  - [x] `dma-coherent`\n  - [ ] `name (deprecated)`\n  - [ ] `device_type (deprecated)`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fydrmaster%2Fdtb-walker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fydrmaster%2Fdtb-walker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fydrmaster%2Fdtb-walker/lists"}