mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-28 17:44:10 +00:00
4d93ead5fc
Add example/mkfs.rs to demonstorate how to use the library and make it easier to use it for debugging with existing e2fsprogs tools. BUG=b:329359333 TEST=cargo run --example mkfs -- --path ./foo.ext2 Change-Id: I98966d317f053794607b722f38493568d0d96ced Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5404439 Reviewed-by: Dennis Kempin <denniskempin@google.com> Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org> Reviewed-by: Takaya Saeki <takayas@chromium.org>
20 lines
365 B
TOML
20 lines
365 B
TOML
[package]
|
|
name = "ext2"
|
|
version = "0.1.0"
|
|
authors = ["The ChromiumOS Authors"]
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
anyhow = "*"
|
|
base = { path = "../base/" }
|
|
libc = "*"
|
|
uuid = { version = "*", features = ["v4"] }
|
|
zerocopy = "0.7.29" # >=0.7.29 is required for our 'AsBytes'
|
|
zerocopy-derive = "*"
|
|
|
|
[[example]]
|
|
name = "mkfs"
|
|
|
|
[dev-dependencies]
|
|
argh = "*"
|
|
tempfile = "*"
|