Add note about Rust not building automatically (#3255)

This commit is contained in:
Dustin J. Mitchell 2024-01-21 22:13:46 -05:00 committed by GitHub
parent bacb79302a
commit 4af0636b52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,3 +27,16 @@ Taskwarrior's interface to TaskChampion has a few layers:
All of these symbols are placed in the C++ namespace, `tc::ffi`.
* C++ wrappers for the types from `taskchampion-lib` are defined in [`src/tc`](../../src/tc), ensuring memory safety (with `unique_ptr`) and adding methods corresponding to the Rust API's methods.
The wrapper types are in the C++ namespace, `tc`.
## WARNING About Dependency Tracking
CMake cannot detect changes to Rust files in under the `taskchampion/` directory.
Running `make` after these files are changed will not incorporate the changes into the resulting executables.
To force re-compilation of the Rust dependencies:
```
rm -rf src/tc/rust/x86_64-unknown-linux-gnu/debug/libtc_rust.a
make
```
You may need to adjust the `x86_64-unknown-linux-gnu` part of that command depending on what system you are using for development.