fstool 0.4.0

Build disk images and filesystems (ext2/3/4, MBR, GPT) from a directory tree and TOML spec, in the spirit of genext2fs.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85"
name = "fstool"
version = "0.4.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",
    "dmg-bzip2",
    "dmg-lzfse",
    "dmg-encrypted",
]
dmg-bzip2 = ["dep:bzip2-rs"]
dmg-encrypted = [
    "dep:aes",
    "dep:cbc",
    "dep:cipher",
    "dep:des",
    "dep:hmac",
    "dep:sha1",
    "dep:pbkdf2",
]
dmg-lzfse = ["dep:lzfse_rust"]
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 = "grf_external"
path = "tests/grf_external.rs"

[[test]]
name = "hfs_plus_external"
path = "tests/hfs_plus_external.rs"

[[test]]
name = "iso9660_external"
path = "tests/iso9660_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.aes]
version = "0.8"
optional = true

[dependencies.bzip2-rs]
version = "0.1"
optional = true

[dependencies.cbc]
version = "0.1"
features = ["std"]
optional = true

[dependencies.cipher]
version = "0.4"
features = ["block-padding"]
optional = true

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.crc32c]
version = "0.6.8"

[dependencies.crc32fast]
version = "1"

[dependencies.des]
version = "0.8"
optional = true

[dependencies.encoding_rs]
version = "0.8"

[dependencies.flate2]
version = "1"
features = ["rust_backend"]
optional = true
default-features = false

[dependencies.hmac]
version = "0.12"
optional = true

[dependencies.log]
version = "0.4"

[dependencies.lz4_flex]
version = "0.11"
features = [
    "std",
    "safe-encode",
    "safe-decode",
    "frame",
]
optional = true
default-features = false

[dependencies.lzfse_rust]
version = "0.2"
optional = true

[dependencies.lzma-rs]
version = "0.3"
optional = true

[dependencies.minilzo-rs]
version = "0.6"
optional = true

[dependencies.pbkdf2]
version = "0.12"
features = ["hmac"]
optional = true
default-features = false

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.sha1]
version = "0.10"
optional = true

[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"