mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 12:34:31 +00:00
13b958b967
A raw disk image can be compressed as a seekable zstd and attached transaprently to a VM as a block device. TESTED=can ro mount and read seekable compressed debian rootfs BUG=b:377945783 Change-Id: Iba1950dbfc0ba99b0581e842964848d5a447b824 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/6024317 Commit-Queue: Zihan Chen <zihanchen@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Auto-Submit: Zihan Chen <zihanchen@google.com>
44 lines
1.1 KiB
TOML
44 lines
1.1 KiB
TOML
[package]
|
|
name = "disk"
|
|
version = "0.1.0"
|
|
authors = ["The ChromiumOS Authors"]
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
path = "src/disk.rs"
|
|
|
|
[features]
|
|
android-sparse = []
|
|
composite-disk = ["crc32fast", "protos", "protobuf", "uuid"]
|
|
qcow = []
|
|
zstd-disk = ["zstd"]
|
|
|
|
[dependencies]
|
|
anyhow = "*"
|
|
async-trait = "0.1.36"
|
|
base = { path = "../base" }
|
|
cfg-if = "1.0.0"
|
|
crc32fast = { version = "1.2.1", optional = true }
|
|
cros_async = { path = "../cros_async" }
|
|
data_model = { path = "../common/data_model" }
|
|
libc = "0.2"
|
|
protobuf = { version = "3.2", optional = true }
|
|
protos = { path = "../protos", features = ["composite-disk"], optional = true }
|
|
remain = "0.2"
|
|
serde = { version = "1", features = ["derive"] }
|
|
sync = { path = "../common/sync" }
|
|
thiserror = "1"
|
|
uuid = { version = "1", features = ["v4"], optional = true }
|
|
vm_memory = { path = "../vm_memory" }
|
|
zerocopy = { version = "0.7", features = ["derive"] }
|
|
zstd = { version = "0.13", optional = true }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
winapi = "0.3"
|
|
|
|
[dependencies.futures]
|
|
version = "0.3"
|
|
default-features = false
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|