I did two things:
- I made a function for getting the window config (
WindowOptions) for creating the window - I was annoyed by the long compile time (9s, for every small change) so I made a dummy crate gpui_dylib that just re-exports gpui but is with crate_type=“dylib” (dynamic library, .dll on windows, .so on linux) so the the linker does not statically link gpui into the final program, but rather “against” it. compile time is now 5s, which still makes me wonder, but it’s atleast better because especially when making visual changes this is still an improvement. (credits to bevy, they do the same, that’s where I have this trick from)