PRQL project structure
Author: aljazerzenCreated Jul 26, 2023Updated Sep 19, 2026
Labelsplanning
Followup for https://github.com/PRQL/prql/pull/3000#discussion_r1272280056
I propose that we restructure the repo, so it reflects the whole project not just the prql-compiler.
This more of a issue about the structure of the PRQL project, and not the files and directories.
I see the project structured like this:
PRQL/
website & documentation/
prql-compiler/
pq/
prql-vscode/Our main repo does correspond to the prql-compiler, but the language as a whole, so having crates/ in the root tells me that these crates are essential to the language. Which is not true - they are just a reference implementation of the compiler, which could be implemented some other way.
If we wanted to follow advice in https://matklad.github.io/2021/08/22/large-rust-workspaces.html, we'd have something like this:
prql/
web/
prql-compiler/
crates/
ast/
parser/
frontend/
backend-sql/Source: PRQL/prql