]> git.ipfire.org Git - thirdparty/qemu.git/commit
rust: create a cargo workspace
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Oct 2024 09:33:07 +0000 (11:33 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Nov 2024 13:18:16 +0000 (14:18 +0100)
commit39c8faefb5e9bf1265cf754f43a17a4ac092d7a3
tree94de4b8f674d9ad1a672bc0b1b250f3bce578e97
parent907d2bbb80d6180fa27a719536844fd096fa0157
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>
rust/Cargo.lock [moved from rust/hw/char/pl011/Cargo.lock with 100% similarity]
rust/Cargo.toml [new file with mode: 0644]
rust/hw/char/pl011/Cargo.toml
rust/qemu-api-macros/Cargo.lock [deleted file]
rust/qemu-api-macros/Cargo.toml
rust/qemu-api/Cargo.lock [deleted file]
rust/qemu-api/Cargo.toml