MCPcopy Index your code
hub / github.com/arcnmx/qapi-rs

github.com/arcnmx/qapi-rs @v0.15.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.15.0 ↗ · + Follow
220 symbols 359 edges 17 files 5 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

qapi-rs

release-badge docs-badge license-badge

A rust library for interfacing with QEMU QAPI sockets.

Documentation

See the documentation for up to date information, as well as the reference documentation for both the QEMU Machine Protocol and Guest Agent APIs.

There are two features (qga and qmp) which enable their respective functionality. They can be enabled in your Cargo.toml:

[dependencies]
qapi = { version = "0.15", features = [ "qmp" ] }

Examples

Short examples are available for both QMP and Guest Agent. Async/nonblocking examples using tokio are also available.

Extension points exported contracts — how you extend this code

QmpCommand (Interface)
(no doc) [2 implementers]
qmp/src/lib.rs
QgaCommand (Interface)
(no doc) [2 implementers]
qga/src/lib.rs
Command (Interface)
(no doc) [2 implementers]
spec/src/lib.rs
QemuRepo (Interface)
(no doc) [1 implementers]
parser/src/lib.rs
Event (Interface)
(no doc)
spec/src/lib.rs
Enum (Interface)
(no doc)
spec/src/lib.rs

Core symbols most depended-on inside this repo

as_ref
called by 16
parser/src/lib.rs
stream
called by 10
qapi/src/futures/tokio.rs
execute
called by 7
qapi/src/lib.rs
type_identifier
called by 7
codegen/src/lib.rs
typename
called by 7
codegen/src/lib.rs
is_empty
called by 6
parser/src/lib.rs
len
called by 5
parser/src/lib.rs
deserialize
called by 5
spec/src/lib.rs

Shape

Method 125
Class 46
Function 30
Enum 13
Interface 6

Languages

Rust100%

Modules by API surface

parser/src/lib.rs62 symbols
spec/src/lib.rs32 symbols
qapi/src/lib.rs32 symbols
qapi/src/futures/mod.rs29 symbols
codegen/src/lib.rs16 symbols
qapi/src/futures/tokio.rs14 symbols
qmp/src/lib.rs9 symbols
qapi/src/futures/codec.rs8 symbols
qga/src/lib.rs7 symbols
qmp/build.rs2 symbols
qga/build.rs2 symbols
qapi/src/futures/tower.rs2 symbols

For agents

$ claude mcp add qapi-rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact