Cargo Features
[dependencies]
qemu-plugin = { version = "9.0.0-v0", default-features = false, features = ["unix-weak-link", "plugin-api-v1", "plugin-api-v2", "plugin-api-v3", "num-traits"] }
- default = plugin-api-v2
-
The
plugin-api-v2
feature is set by default wheneverqemu-plugin
is added without
somewhere in the dependency tree.default-features = false - unix-weak-link
-
Define external symbols with weak definition
- plugin-api-v1
-
Use the V1 plugin API, which is defined for versions below 9.0.0
Enables plugin-api-v1 of qemu-plugin-sys
Affects
qemu-plugin::qemu_plugin_register_vcpu_tb_exec_inline
,qemu-plugin::qemu_plugin_register_vcpu_insn_exec_inline
,qemu-plugin::qemu_plugin_register_vcpu_mem_inline
,qemu-plugin::qemu_plugin_n_vcpus
,qemu-plugin::qemu_plugin_n_max_vcpus
,unix_weak_link::qemu_plugin_register_vcpu_tb_exec_inline
,unix_weak_link::qemu_plugin_register_vcpu_insn_exec_inline
,unix_weak_link::qemu_plugin_register_vcpu_mem_inline
,unix_weak_link::qemu_plugin_n_vcpus
,unix_weak_link::qemu_plugin_n_max_vcpus
… - plugin-api-v2 default
-
Use the V2 plugin API, which is defined for version 9.0.0
Enables plugin-api-v2 of qemu-plugin-sys
Affects
unix_weak_link::qemu_plugin_register_vcpu_tb_exec_inline_per_vcpu
,unix_weak_link::qemu_plugin_register_vcpu_insn_exec_inline_per_vcpu
,unix_weak_link::qemu_plugin_register_vcpu_mem_inline_per_vcpu
,unix_weak_link::qemu_plugin_num_vcpus
,qemu-plugin::PluginU64
,qemu-plugin::RegisterDescriptor
,qemu-plugin::Scoreboard
,qemu-plugin::qemu_plugin_register_vcpu_tb_exec_inline_per_vcpu
,qemu-plugin::qemu_plugin_register_vcpu_insn_exec_inline_per_vcpu
,qemu-plugin::qemu_plugin_register_vcpu_mem_inline_per_vcpu
,qemu-plugin::qemu_plugin_num_vcpus
,qemu-plugin::qemu_plugin_get_registers
,qemu-plugin::qemu_plugin_u64_add
,qemu-plugin::qemu_plugin_u64_get
,qemu-plugin::qemu_plugin_u64_set
,qemu-plugin::qemu_plugin_scoreboard_sum
,unix_weak_link::qemu_plugin_get_registers
,unix_weak_link::qemu_plugin_read_register
,unix_weak_link::qemu_plugin_scoreboard_new
,unix_weak_link::qemu_plugin_scoreboard_free
… - plugin-api-v3
-
Use the V2 plugin API, which is defined for versions above 9.0.0
Enables plugin-api-v3 of qemu-plugin-sys
Affects
qemu-plugin::PluginCondition
,qemu-plugin::qemu_plugin_register_vcpu_tb_exec_cond_cb
,qemu-plugin::qemu_plugin_register_vcpu_insn_exec_cond_cb
,qemu-plugin::PluginU64
,qemu-plugin::RegisterDescriptor
,qemu-plugin::Scoreboard
,qemu-plugin::qemu_plugin_register_vcpu_tb_exec_inline_per_vcpu
,qemu-plugin::qemu_plugin_register_vcpu_insn_exec_inline_per_vcpu
,qemu-plugin::qemu_plugin_register_vcpu_mem_inline_per_vcpu
,qemu-plugin::qemu_plugin_num_vcpus
,qemu-plugin::qemu_plugin_get_registers
,qemu-plugin::qemu_plugin_u64_add
,qemu-plugin::qemu_plugin_u64_get
,qemu-plugin::qemu_plugin_u64_set
,qemu-plugin::qemu_plugin_scoreboard_sum
,unix_weak_link::qemu_plugin_get_registers
,unix_weak_link::qemu_plugin_read_register
,unix_weak_link::qemu_plugin_scoreboard_new
,unix_weak_link::qemu_plugin_scoreboard_free
,unix_weak_link::qemu_plugin_scoreboard_find
… - num-traits
-
Enables num-traits