wundergraph
wundergraph copied to clipboard
Compilation time is too slow (more than 40s)
Example -> https://github.com/Farkal/test-wundergraph
Seems linked with rustc -> https://github.com/rust-lang/rust/issues/68796
It seems like you could easily half the compilation time by not having a lib.rs and a main.rs in the same crate. I assume this setup results in rustc building the crate twice. Without that a cargo check is from me less then 10 seconds, a cargo build less then 20 seconds when having only a lib.rs. So the right strategy here seems to be having two crates, one for the wundergraph definition, and one for the final binary.
Did you try with main in /bin ? (I did it and don't see any change but perhaps it work for you) It's still not easy to dev large app :/