mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Every recompile takes 50 seconds. Even cargo's incremental build look like work. #577
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @insub on GitHub (Jan 27, 2020).
Subject of the issue
Every recompile takes 50 seconds (cargo build --features sqlite) , so every time I change the code, even if it's only one file, I have to wait 50s to preview it, Is it normal to consume this time?
BTW, the cargo's incremental build look like work.
Is there a better(fast) development way? (i'm a javascript coder, i don't have compiled language work experience)
Your environment
MacOS, 10.15.3
v1.13.1
Steps to reproduce
cargo build --features sqlite
......
Finished dev [unoptimized + debuginfo] target(s) in 53.89s
@dani-garcia commented on GitHub (Jan 28, 2020):
Yes, building rust code is slow. If you only want to check if the code compiles and not actually run it, you can use
cargo check --features sqlite, which should be considerably faster.@insub commented on GitHub (Jan 28, 2020):
Does this mean that if I modify a api or view, I have to wait 50 seconds before actually preview it on the browser? (cargo run --features sqlite)
After I modify the code, I hope to preview it on the client. Is there any way to make code changes work faster?
@dani-garcia commented on GitHub (Jan 28, 2020):
If you modify the API, yes you'd have to wait and there's no faster way.
If you change the HTML templates, you can enable the following options:
and with that any changes to the templates are applied immediately (for emails they apply to the next ones sent, for the admin page, after a page reload).
@insub commented on GitHub (Jan 29, 2020):
@dani-garcia ok, thk!