Skip to content

Commit 7c8ac4a

Browse files
committed
Cargo.toml: Switch kvm-bindings and kvm-ioctls urls to internal links
To apply the serde functions provided by the following links for kvm-bindings serialize/deserialize, switch both kvm-bindings and kvm-ioctls urls to internal branch links. rust-vmm/kvm-bindings#7 Signed-off-by: Cathy Zhang <[email protected]>
1 parent f0b7412 commit 7c8ac4a

File tree

4 files changed

+41
-8
lines changed

4 files changed

+41
-8
lines changed

arch/Cargo.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ default = []
88

99
[dependencies]
1010
byteorder = "1.3.2"
11-
kvm-bindings = "0.2.0"
12-
kvm-ioctls = "0.4.0"
1311
libc = "0.2.60"
1412

1513
acpi_tables = { path = "../acpi_tables", optional = true }
@@ -23,5 +21,14 @@ features = ["backend-mmap"]
2321
git = "https://github.com/rust-vmm/linux-loader"
2422
features = ["elf", "bzimage"]
2523

24+
[dependencies.kvm-bindings]
25+
git = "https://github.com/bjzhjing/kvm-bindings"
26+
branch = "serde-v2"
27+
features = ["with-serde", "fam-wrappers"]
28+
29+
[dependencies.kvm-ioctls]
30+
git = "https://github.com/bjzhjing/kvm-ioctls"
31+
branch = "switch-kvm-bindings-url"
32+
2633
[dev-dependencies]
2734
rand = "0.7.0"

devices/Cargo.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,20 @@ authors = ["The Chromium OS Authors"]
66
[dependencies]
77
byteorder = "1.3.2"
88
epoll = ">=4.0.1"
9-
kvm-bindings = "0.2.0"
10-
kvm-ioctls = "0.4.0"
119
libc = "0.2.60"
1210
log = "0.4.8"
1311
vm-memory = { git = "https://github.com/rust-vmm/vm-memory" }
1412
vmm-sys-util = ">=0.3.1"
1513

14+
[dependencies.kvm-bindings]
15+
git = "https://github.com/bjzhjing/kvm-bindings"
16+
branch = "serde-v2"
17+
features = ["with-serde", "fam-wrappers"]
18+
19+
[dependencies.kvm-ioctls]
20+
git = "https://github.com/bjzhjing/kvm-ioctls"
21+
branch = "switch-kvm-bindings-url"
22+
1623
[dev-dependencies]
1724
tempfile = "3.1.0"
1825

vfio/Cargo.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ authors = ["The Cloud Hypervisor Authors"]
66
[dependencies]
77
byteorder = "1.3.2"
88
devices = { path = "../devices" }
9-
kvm-bindings = "0.2.0"
10-
kvm-ioctls = "0.4.0"
119
libc = "0.2.60"
1210
log = "0.4.8"
1311
pci = { path = "../pci" }
@@ -19,3 +17,12 @@ vmm-sys-util = ">=0.3.1"
1917
[dependencies.vm-memory]
2018
git = "https://github.com/rust-vmm/vm-memory"
2119
features = ["backend-mmap"]
20+
21+
[dependencies.kvm-bindings]
22+
git = "https://github.com/bjzhjing/kvm-bindings"
23+
branch = "serde-v2"
24+
features = ["with-serde", "fam-wrappers"]
25+
26+
[dependencies.kvm-ioctls]
27+
git = "https://github.com/bjzhjing/kvm-ioctls"
28+
branch = "switch-kvm-bindings-url"

vmm/Cargo.toml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ anyhow = "1.0"
1717
arch = { path = "../arch" }
1818
devices = { path = "../devices" }
1919
epoll = ">=4.0.1"
20-
kvm-bindings = "0.2.0"
21-
kvm-ioctls = "0.4.0"
2220
lazy_static = "1.4.0"
2321
libc = "0.2.62"
2422
log = "0.4.8"
@@ -43,3 +41,17 @@ features = ["elf", "bzimage"]
4341
[dependencies.vm-memory]
4442
git = "https://github.com/rust-vmm/vm-memory"
4543
features = ["backend-mmap"]
44+
45+
[dependencies.kvm-bindings]
46+
git = "https://github.com/bjzhjing/kvm-bindings"
47+
branch = "serde-v2"
48+
features = ["with-serde", "fam-wrappers"]
49+
50+
[dependencies.kvm-ioctls]
51+
git = "https://github.com/bjzhjing/kvm-ioctls"
52+
branch = "switch-kvm-bindings-url"
53+
54+
[dependencies.vmm-serde]
55+
git = "https://github.com/jiangliu/vmm-serde"
56+
branch = "v1"
57+
features = ["serde_derive_ffi"]

0 commit comments

Comments
 (0)