From 58d2ece88a17030668e09e4aade7bb2ed27dcaac Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 3 Jul 2021 22:11:03 +0300 Subject: internal: overhaul code generation * Keep codegen adjacent to the relevant crates. * Remove codgen deps from xtask, speeding-up from-source installation. This regresses the release process a bit, as it now needs to run the tests (and, by extension, compile the code). --- docs/dev/architecture.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs') diff --git a/docs/dev/architecture.md b/docs/dev/architecture.md index 721c555ab63..663d6392274 100644 --- a/docs/dev/architecture.md +++ b/docs/dev/architecture.md @@ -325,6 +325,8 @@ In particular, we generate: * Documentation tests for assists +See the `sourcegen` crate for details. + **Architecture Invariant:** we avoid bootstrapping. For codegen we need to parse Rust code. Using rust-analyzer for that would work and would be fun, but it would also complicate the build process a lot. -- cgit 1.4.1-3-g733a5