mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 20:33:54 -06:00

Similar to the existing BqlCell, introduce a custom interior mutability primitive that resembles RefCell but accounts for QEMU's threading model. Borrowing the RefCell requires proving that the BQL is held, and attempting to access without the BQL is a runtime panic. Almost all of the code was taken from Rust's standard library, while removing unstable features and probably-unnecessary functionality that amounts to 60% of the original code. A lot of what's left is documentation, as well as unit tests in the form of doctests. These are not yet integrated in "make check" but can be run with "cargo test --doc". Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
28 lines
572 B
TOML
28 lines
572 B
TOML
[package]
|
|
name = "qemu_api"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
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"
|
|
repository = "https://gitlab.com/qemu-project/qemu/"
|
|
resolver = "2"
|
|
publish = false
|
|
keywords = []
|
|
categories = []
|
|
|
|
[dependencies]
|
|
qemu_api_macros = { path = "../qemu-api-macros" }
|
|
|
|
[build-dependencies]
|
|
version_check = "~0.9"
|
|
|
|
[features]
|
|
default = ["debug_cell"]
|
|
allocator = []
|
|
debug_cell = []
|
|
|
|
[lints]
|
|
workspace = true
|