rust: centralize config in workspace root

This commit bundles common config option in the workspace
root and applies them through <config>.workspace = true

Signed-off-by: Stefan Zabka <git@zabka.it>
Link: https://lore.kernel.org/r/20250502212748.124953-1-git@zabka.it
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Stefan Zabka 2025-05-02 23:27:48 +02:00 committed by Paolo Bonzini
parent 8dc4f98100
commit ffd5a60e9b
5 changed files with 32 additions and 21 deletions

View file

@ -7,6 +7,13 @@ members = [
"hw/timer/hpet", "hw/timer/hpet",
] ]
[workspace.package]
edition = "2021"
homepage = "https://www.qemu.org"
license = "GPL-2.0-or-later"
repository = "https://gitlab.com/qemu-project/qemu/"
rust-version = "1.63.0"
[workspace.lints.rust] [workspace.lints.rust]
unexpected_cfgs = { level = "deny", check-cfg = [ unexpected_cfgs = { level = "deny", check-cfg = [
'cfg(MESON)', 'cfg(HAVE_GLIB_WITH_ALIGNED_ALLOC)', 'cfg(MESON)', 'cfg(HAVE_GLIB_WITH_ALIGNED_ALLOC)',

View file

@ -1,15 +1,16 @@
[package] [package]
name = "pl011" name = "pl011"
version = "0.1.0" version = "0.1.0"
edition = "2021"
authors = ["Manos Pitsidianakis <manos.pitsidianakis@linaro.org>"] authors = ["Manos Pitsidianakis <manos.pitsidianakis@linaro.org>"]
license = "GPL-2.0-or-later"
description = "pl011 device model for QEMU" description = "pl011 device model for QEMU"
resolver = "2" resolver = "2"
publish = false publish = false
keywords = []
categories = [] edition.workspace = true
rust-version = "1.63.0" homepage.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
[lib] [lib]
crate-type = ["staticlib"] crate-type = ["staticlib"]

View file

@ -1,11 +1,14 @@
[package] [package]
name = "hpet" name = "hpet"
version = "0.1.0" version = "0.1.0"
edition = "2021"
authors = ["Zhao Liu <zhao1.liu@intel.com>"] authors = ["Zhao Liu <zhao1.liu@intel.com>"]
license = "GPL-2.0-or-later"
description = "IA-PC High Precision Event Timer emulation in Rust" description = "IA-PC High Precision Event Timer emulation in Rust"
rust-version = "1.63.0"
edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
[lib] [lib]
crate-type = ["staticlib"] crate-type = ["staticlib"]

View file

@ -1,15 +1,16 @@
[package] [package]
name = "qemu_api_macros" name = "qemu_api_macros"
version = "0.1.0" version = "0.1.0"
edition = "2021"
authors = ["Manos Pitsidianakis <manos.pitsidianakis@linaro.org>"] authors = ["Manos Pitsidianakis <manos.pitsidianakis@linaro.org>"]
license = "GPL-2.0-or-later"
description = "Rust bindings for QEMU - Utility macros" description = "Rust bindings for QEMU - Utility macros"
resolver = "2" resolver = "2"
publish = false publish = false
keywords = []
categories = [] edition.workspace = true
rust-version = "1.63.0" homepage.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
[lib] [lib]
proc-macro = true proc-macro = true

View file

@ -1,18 +1,17 @@
[package] [package]
name = "qemu_api" name = "qemu_api"
version = "0.1.0" version = "0.1.0"
edition = "2021"
authors = ["Manos Pitsidianakis <manos.pitsidianakis@linaro.org>"] authors = ["Manos Pitsidianakis <manos.pitsidianakis@linaro.org>"]
license = "GPL-2.0-or-later"
readme = "README.md"
homepage = "https://www.qemu.org"
description = "Rust bindings for QEMU" description = "Rust bindings for QEMU"
repository = "https://gitlab.com/qemu-project/qemu/" readme = "README.md"
resolver = "2" resolver = "2"
publish = false publish = false
keywords = []
categories = [] edition.workspace = true
rust-version = "1.63.0" homepage.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
[dependencies] [dependencies]
qemu_api_macros = { path = "../qemu-api-macros" } qemu_api_macros = { path = "../qemu-api-macros" }