summaryrefslogtreecommitdiffstats
path: root/docs/src/contributing_local_development.md
diff options
context:
space:
mode:
authorFelix Ableitner <me@nutomic.com>2020-06-12 15:29:50 +0200
committerFelix Ableitner <me@nutomic.com>2020-06-12 15:29:50 +0200
commit5a6f39dae4ac00f6a8d322c862de995b09e56bd1 (patch)
treee9d7db0f98a47836cd9b9f6080e0ce39a524e567 /docs/src/contributing_local_development.md
parent1b0212377df2e56c4e950a4abbf8c594daabc73a (diff)
Various build optimizations
Diffstat (limited to 'docs/src/contributing_local_development.md')
-rw-r--r--docs/src/contributing_local_development.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/src/contributing_local_development.md b/docs/src/contributing_local_development.md
index f801caf3..066386f5 100644
--- a/docs/src/contributing_local_development.md
+++ b/docs/src/contributing_local_development.md
@@ -56,6 +56,12 @@ Then open [localhost:4444](http://localhost:4444) in your browser. It will auto-
any frontend files. For backend coding, you will have to rerun `cargo run`. You can use
`cargo check` as a faster way to find compilation errors.
+To speed up incremental builds, you can add the following to `~/.cargo/config`:
+```
+[target.x86_64-unknown-linux-gnu]
+rustflags = ["-Clink-arg=-fuse-ld=lld"]
+```
+
Note that this setup doesn't include image uploads or link previews (provided by pict-rs and
iframely respectively). If you want to test those, you should use the
[Docker development](contributing_docker_development.md).