document worker and disable it by default

This commit is contained in:
Damien Elmes 2020-12-11 21:04:06 +10:00
parent 6faaecbb5a
commit b80f33d14d
2 changed files with 21 additions and 4 deletions

View file

@ -4,10 +4,6 @@ common --experimental_repository_cache_hardlinks
# specify python path on Windows for pyo3 compile
build:windows --action_env="PYTHON_SYS_EXECUTABLE=c:\\python\\python.exe"
# worker config
build --@io_bazel_rules_rust//worker:use_worker=True
build:windows --worker_quit_after_build
# runfiles are off by default on Windows, and we need them
build --enable_runfiles

View file

@ -120,6 +120,27 @@ If you're in one of those folders, you can use the short form:
bazel run format
```
## Development speedups
If you're frequently switching between Anki versions, you can create
a user.bazelrc file in the top level folder with the following, which will
cache build products and downloads:
```
build --disk_cache=~/bazel/ankidisk --repository_cache=~/bazel/ankirepo
```
If you're frequently modifying the Rust parts of Anki, you can place the
following in your user.bazelrc file to enable incremental compilation:
```
build --@io_bazel_rules_rust//worker:use_worker=True
build:windows --worker_quit_after_build
```
The worker support is experimental, so you may need to remove it in future
updates.
## Audio
Audio playing requires `mpv` or `mplayer` to be in your system path.