Architecture Overhauls

未关闭
#4 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
12/100
Issue 类型
重构
描述清晰度
需要澄清
活跃度
活跃
技术栈
rust
领域
build-system

调研方向

This issue lists broad architecture goals rather than a bounded change, and names no files or tests to start from. First read the existing architecture documentation and inspect the build graph, cache, and compiler backend entry points; choose one item only after its scope is defined. Done cannot be assessed until a specific goal and acceptance criteria are agreed.

由索引模型根据 Issue 内容生成。

描述

This is a list of things I want to overhaul about rustd's architecture.

  • Instead of worker per workspace, aggregate all workspaces into a single build graph and optimize that. That way we can get cross-workspace sharing.
  • Shared build graph for test/clippy - this is a work in progress - would allow us to do clippy/test without paying a full recompile of the tip crates
  • Pick one of cranelift / llvm / llvm-tpde instead of supporting both. llvm o2 fast emit is close to cranelift. simpler to support
  • More disk caches for the analysis frontend. stress test disk caches all around
  • Ideally compile the entire tree with rustd and/or hybrid approach - if there's rustc artifacts we can reuse, reuse them and then rewire them with rustd.

General things we should have

  • fuzzing
  • replicated / normalized perf vs rustc directly
  • support for all rust point versions (1.98, 1.97, 1.96, etc) and nightlies? preventative rust maintenance
  • broader target support - funny arm variants, wasm variants, etc

General things todo:

  • human post processing of docs/language/code
  • proper release pipeline
  • proper downloads/artifacts page
  • proper docs
  • proper crater run infrastructure
  • blog post / how it works

Existing architecture bits

  • supports query overlays for fast worktree edits - however is a bit nerfed until the aggregate all workspaces thing is in
  • supports s3 / disk caches - ideal for CI - goal is incremental CI
  • supports splicing and hotpatching - two really fast linker shortcuts
主要语言
Rust
星标
248
派生
13
平均合并
7 小时 52 分钟
30 天内合并 PR
5

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DioxusLabs/rustd 的其他 Issue

查看 DioxusLabs/rustd 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。