From 97e36fafc61cdfb012dbeeae91ff7695ed495fc3 Mon Sep 17 00:00:00 2001 From: Mathieu Tarral Date: Wed, 21 Feb 2024 01:05:30 +0100 Subject: [PATCH] cargo: fmt --- Cargo.toml | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 03fc1170..8e7b87be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,14 @@ crate-type = ["cdylib", "lib"] [features] # Xen driver -xen = ["xenctrl", "xenstore-rs", "xenforeignmemory", "xenevtchn", "xenvmevent-sys", "libc"] +xen = [ + "xenctrl", + "xenstore-rs", + "xenforeignmemory", + "xenevtchn", + "xenvmevent-sys", + "libc", +] # KVM driver kvm = ["kvmi"] # VirtualBox driver @@ -34,17 +41,24 @@ nix = "^0.23.0" enum-iterator = "0.7.0" thiserror = "1.0" libc = { version = "0.2.58", optional = true } -xenctrl = { version = "=0.4.7", optional = true } +xenctrl = { version = "=0.6.0", optional = true } xenstore-rs = { version = "=0.3.2", optional = true } xenforeignmemory = { version = "=0.2.3", optional = true } xenevtchn = { version = "=0.1.6", optional = true } xenvmevent-sys = { version = "=0.1.3", optional = true } kvmi = { version = "0.4.0", optional = true } fdp = { version = "=0.2.5", optional = true } -winapi = { version = "0.3", features = ["tlhelp32", "winnt", "handleapi", "securitybaseapi"], optional = true } +winapi = { version = "0.3", features = [ + "tlhelp32", + "winnt", + "handleapi", + "securitybaseapi", +], optional = true } widestring = { version = "0.4", optional = true } ntapi = { version = "0.3", optional = true } -vid-sys = { version = "=0.3.0", features = ["deprecated-apis"], optional = true } +vid-sys = { version = "=0.3.0", features = [ + "deprecated-apis", +], optional = true } memflow = { version = "0.1.5", optional = true } [dev-dependencies] @@ -78,8 +92,16 @@ section = "libs" priority = "optional" # add generated libmicrovmi.h header assets = [ - ["target/release/libmicrovmi.so", "usr/lib/libmicrovmi.so", "644"], - ["target/release/capi/libmicrovmi.h", "usr/include/libmicrovmi.h", "644"], + [ + "target/release/libmicrovmi.so", + "usr/lib/libmicrovmi.so", + "644", + ], + [ + "target/release/capi/libmicrovmi.h", + "usr/include/libmicrovmi.h", + "644", + ], ] [package.metadata.release] @@ -89,6 +111,4 @@ assets = [ disable-publish = true [workspace] -members = [ - "python" -] +members = ["python"]