tgoskits 组件层次依赖分析
本文档覆盖 137 个 crate(与 docs/crates/README.md / gen_crate_docs 一致),按仓库内直接路径依赖自底向上分层。
由 scripts/analyze_tgoskits_deps.py 生成。
1. 统计概览
| 指标 | 数值 |
|---|---|
| 仓库内 crate | 149 |
| 内部有向边 | 533 |
| 最大层级 | 16 |
| SCC 数 | 148 |
| Lock 总包块 | 923 |
| Lock 内工作区包(与扫描交集) | 132 |
| Lock 外部依赖条目 | 791 |
1.1 分类
| 分类 | 数 |
|---|---|
| ArceOS 层 | 30 |
| Axvisor 层 | 2 |
| StarryOS 层 | 2 |
| 其他 | 1 |
| 工具层 | 2 |
| 平台层 | 2 |
| 测试层 | 17 |
| 组件层 | 93 |
2. 依赖图(按分类子图)
A --> B 表示 A 依赖 B。
3. 层级总览
4. 层级表
| 层级 | 层名 | 分类 | crate | 版本 | 路径 |
|---|---|---|---|---|---|
| 0 | 基础层(无仓库内直接依赖) | ArceOS 层 | bwbench-client | 0.3.0 | os/arceos/tools/bwbench_client |
| 0 | 基础层(无仓库内直接依赖) | ArceOS 层 | deptool | 0.3.0 | os/arceos/tools/deptool |
| 0 | 基础层(无仓库内直接依赖) | ArceOS 层 | mingo | 0.8.0 | os/arceos/tools/raspi4/chainloader |
| 0 | 基础层(无仓库内直接依赖) | 其他 | tgmath | 0.3.0 | examples/tgmath |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | aarch64_sysreg | 0.3.1 | components/aarch64_sysreg |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | ax-arm-pl011 | 0.3.0 | components/arm_pl011 |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | ax-arm-pl031 | 0.4.1 | components/arm_pl031 |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | ax-cap-access | 0.3.0 | components/cap_access |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | ax-config-gen | 0.4.1 | components/axconfig-gen/axconfig-gen |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | ax-cpumask | 0.3.0 | components/cpumask |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | ax-crate-interface | 0.5.0 | components/crate_interface |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | ax-crate-interface-lite | 0.3.0 | components/crate_interface/crate_interface_lite |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | ax-ctor-bare-macros | 0.4.1 | components/ctor_bare/ctor_bare_macros |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | ax-driver-base | 0.3.4 | components/axdriver_crates/axdriver_base |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | ax-driver-pci | 0.3.4 | components/axdriver_crates/axdriver_pci |
| 0 | 基础层(无仓库内直接 依赖) | 组件层 | ax-errno | 0.4.2 | components/axerrno |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | ax-handler-table | 0.3.2 | components/handler_table |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | ax-int-ratio | 0.3.2 | components/int_ratio |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | ax-lazyinit | 0.4.2 | components/ax-lazyinit |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | ax-linked-list-r4l | 0.5.0 | components/linked_list_r4l |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | ax-memory-addr | 0.6.1 | components/axmm_crates/memory_addr |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | ax-percpu-macros | 0.4.3 | components/percpu/percpu_macros |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | ax-riscv-plic | 0.4.0 | components/riscv_plic |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | ax-timer-list | 0.3.0 | components/timer_list |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | axbacktrace | 0.3.2 | components/axbacktrace |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | axpoll | 0.3.2 | components/axpoll |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | axvisor_api_proc | 0.5.0 | components/axvisor_api/axvisor_api_proc |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | bitmap-allocator | 0.4.1 | components/bitmap-allocator |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | cargo-axplat | 0.4.5 | components/axplat_crates/cargo-axplat |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | range-alloc-arceos | 0.3.4 | components/range-alloc-arceos |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | riscv-h | 0.4.0 | components/riscv-h |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | rsext4 | 0.3.0 | components/rsext4 |
| 0 | 基础层(无仓库内直接依赖) | 组件层 | smoltcp | 0.14.0 | components/starry-smoltcp |
| 1 | 堆叠层 | 组件层 | ax-allocator | 0.4.0 | components/axallocator |
| 1 | 堆叠层 | 组件层 | ax-config-macros | 0.4.1 | components/axconfig-gen/axconfig-macros |
| 1 | 堆叠层 | 组件层 | ax-ctor-bare | 0.4.1 | components/ctor_bare/ctor_bare |
| 1 | 堆叠层 | 组件层 | ax-driver-block | 0.3.4 | components/axdriver_crates/axdriver_block |
| 1 | 堆叠层 | 组件层 | ax-driver-display | 0.3.4 | components/axdriver_crates/axdriver_display |
| 1 | 堆叠层 | 组件层 | ax-driver-input | 0.3.4 | components/axdriver_crates/axdriver_input |
| 1 | 堆叠层 | 组件层 | ax-driver-vsock | 0.3.4 | components/axdriver_crates/axdriver_vsock |
| 1 | 堆叠层 | 组件层 | ax-fs-vfs | 0.3.2 | components/axfs_crates/axfs_vfs |
| 1 | 堆叠层 | 组件层 | ax-io | 0.5.0 | components/axio |
| 1 | 堆叠层 | 组件层 | ax-kernel-guard | 0.3.3 | components/kernel_guard |
| 1 | 堆叠层 | 组件层 | ax-memory-set | 0.6.1 | components/axmm_crates/memory_set |
| 1 | 堆叠层 | 组件层 | ax-page-table-entry | 0.8.1 | components/page_table_multiarch/page_table_entry |
| 1 | 堆叠层 | 组件层 | ax-plat-macros | 0.3.0 | components/axplat_crates/axplat-macros |
| 1 | 堆叠层 | 组件层 | ax-sched | 0.5.1 | components/axsched |
| 1 | 堆叠层 | 组件层 | axfs-ng-vfs | 0.3.1 | components/axfs-ng-vfs |
| 1 | 堆叠层 | 组件层 | axhvc | 0.4.0 | components/axhvc |
| 1 | 堆叠层 | 组件层 | axklib | 0.5.0 | components/axklib |
| 1 | 堆叠层 | 组件层 | axvmconfig | 0.4.2 | components/axvmconfig |
| 1 | 堆叠层 | 组件层 | define-simple-traits | 0.3.0 | components/crate_interface/test_crates/define-simple-traits |
| 1 | 堆叠层 | 组件层 | define-weak-traits | 0.3.0 | components/crate_interface/test_crates/define-weak-traits |
| 1 | 堆叠层 | 组件层 | fxmac_rs | 0.4.1 | components/fxmac_rs |
| 1 | 堆叠层 | 组件层 | smoltcp-fuzz | 0.2.1 | components/starry-smoltcp/fuzz |
| 1 | 堆叠层 | 组件层 | starry-vm | 0.5.0 | components/starry-vm |
| 2 | 堆叠层 | ArceOS 层 | ax-config | 0.5.0 | os/arceos/modules/axconfig |
| 2 | 堆叠层 | 工具层 | axbuild | 0.4.0 | scripts/axbuild |
| 2 | 堆叠层 | 组件层 | ax-driver-net | 0.3.4 | components/axdriver_crates/axdriver_net |
| 2 | 堆叠层 | 组件层 | ax-fs-devfs | 0.3.2 | components/axfs_crates/axfs_devfs |
| 2 | 堆叠层 | 组件层 | ax-fs-ramfs | 0.3.2 | components/axfs_crates/axfs_ramfs |
| 2 | 堆叠层 | 组件层 | ax-kspin | 0.3.1 | components/kspin |
| 2 | 堆叠层 | 组件层 | ax-page-table-multiarch | 0.8.1 | components/page_table_multiarch/page_table_multiarch |
| 2 | 堆叠层 | 组件层 | ax-percpu | 0.4.3 | components/percpu/percpu |
| 2 | 堆叠层 | 组件层 | impl-simple-traits | 0.3.0 | components/crate_interface/test_crates/impl-simple-traits |
| 2 | 堆叠层 | 组件层 | impl-weak-partial | 0.3.0 | components/crate_interface/test_crates/impl-weak-partial |
| 2 | 堆叠层 | 组件层 | impl-weak-traits | 0.3.0 | components/crate_interface/test_crates/impl-weak-traits |
| 3 | 堆叠层 | ArceOS 层 | ax-alloc | 0.5.0 | os/arceos/modules/axalloc |
| 3 | 堆叠层 | ArceOS 层 | ax-log | 0.5.0 | os/arceos/modules/axlog |
| 3 | 堆叠层 | 工具层 | tg-xtask | 0.5.0 | xtask |
| 3 | 堆叠层 | 组件层 | ax-cpu | 0.5.0 | components/axcpu |
| 3 | 堆叠层 | 组件层 | ax-driver-virtio | 0.3.4 | components/axdriver_crates/axdriver_virtio |
| 3 | 堆叠层 | 组件层 | ax-plat | 0.5.1 | components/axplat_crates/axplat |
| 3 |