diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-10-24 11:33:07 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-11-05 14:18:16 +0100 |
commit | 39c8faefb5e9bf1265cf754f43a17a4ac092d7a3 (patch) | |
tree | 94de4b8f674d9ad1a672bc0b1b250f3bce578e97 /subprojects | |
parent | 907d2bbb80d6180fa27a719536844fd096fa0157 (diff) |
rust: create a cargo workspace
Workspaces allows tracking dependencies for multiple crates at once,
by having a single Cargo.lock file at the top of the rust/ tree.
Because QEMU's Cargo.lock files have to be synchronized with the versions
of crates in subprojects/, using a workspace avoids the need to copy
over the Cargo.lock file when adding a new device (and thus a new crate)
under rust/hw/.
In addition, workspaces let cargo download and build dependencies just
once. While right now we have one leaf crate (hw/char/pl011), this
will not be the case once more devices are added.
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'subprojects')
0 files changed, 0 insertions, 0 deletions