[package]
edition = "2024"
rust-version = "1.85"
name = "fstool"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Build disk images and filesystems (ext2/3/4, MBR, GPT) from a directory tree and TOML spec, in the spirit of genext2fs."
readme = "README.md"
keywords = [
"filesystem",
"ext4",
"ext2",
"gpt",
"image",
]
categories = [
"filesystem",
"command-line-utilities",
]
license = "MIT"
repository = "https://github.com/KarpelesLab/fstool"
[features]
default = [
"gzip",
"xz",
"lzma",
"lz4",
"zstd",
"lzo",
]
gzip = ["dep:flate2"]
lz4 = ["dep:lz4_flex"]
lzma = ["dep:lzma-rs"]
lzo = ["dep:minilzo-rs"]
xz = ["dep:lzma-rs"]
zstd = ["dep:zstd"]
[lib]
name = "fstool"
path = "src/lib.rs"
[[bin]]
name = "fstool"
path = "src/bin/fstool/main.rs"
[[example]]
name = "format_empty_ext2"
path = "examples/format_empty_ext2.rs"
[[example]]
name = "inspect_gpt"
path = "examples/inspect_gpt.rs"
[[test]]
name = "apfs_external"
path = "tests/apfs_external.rs"
[[test]]
name = "cli_external"
path = "tests/cli_external.rs"
[[test]]
name = "compression_external"
path = "tests/compression_external.rs"
[[test]]
name = "exfat_external"
path = "tests/exfat_external.rs"
[[test]]
name = "ext2_external"
path = "tests/ext2_external.rs"
[[test]]
name = "ext3_external"
path = "tests/ext3_external.rs"
[[test]]
name = "ext4_external"
path = "tests/ext4_external.rs"
[[test]]
name = "f2fs_external"
path = "tests/f2fs_external.rs"
[[test]]
name = "fat32_external"
path = "tests/fat32_external.rs"
[[test]]
name = "hfs_plus_external"
path = "tests/hfs_plus_external.rs"
[[test]]
name = "merge_external"
path = "tests/merge_external.rs"
[[test]]
name = "ntfs_external"
path = "tests/ntfs_external.rs"
[[test]]
name = "partition_external"
path = "tests/partition_external.rs"
[[test]]
name = "qcow2_external"
path = "tests/qcow2_external.rs"
[[test]]
name = "spec_external"
path = "tests/spec_external.rs"
[[test]]
name = "squashfs_external"
path = "tests/squashfs_external.rs"
[[test]]
name = "xfs_external"
path = "tests/xfs_external.rs"
[dependencies.clap]
version = "4"
features = ["derive"]
[dependencies.crc32c]
version = "0.6.8"
[dependencies.crc32fast]
version = "1"
[dependencies.flate2]
version = "1"
features = ["rust_backend"]
optional = true
default-features = false
[dependencies.log]
version = "0.4"
[dependencies.lz4_flex]
version = "0.11"
features = [
"std",
"safe-encode",
"safe-decode",
"frame",
]
optional = true
default-features = false
[dependencies.lzma-rs]
version = "0.3"
optional = true
[dependencies.minilzo-rs]
version = "0.6"
optional = true
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dependencies.tempfile]
version = "3"
[dependencies.thiserror]
version = "2"
[dependencies.toml]
version = "1.1.2"
[dependencies.uuid]
version = "1"
features = ["v4"]
[dependencies.zstd]
version = "0.13"
optional = true
[dev-dependencies.env_logger]
version = "0.11"
[dev-dependencies.tempfile]
version = "3"
[target."cfg(unix)".dependencies.libc]
version = "0.2"