# 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"
name = "hadris-fat"
version = "1.0.0"
authors = ["hxyulin"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A library for working with FAT filesystems (FAT12/FAT16/FAT32/exFAT)"
readme = "README.md"
keywords = [
    "fat",
    "fat32",
    "filesystem",
    "no-std",
    "vfat",
]
categories = [
    "no-std",
    "filesystem",
]
license = "MIT"
repository = "https://github.com/hxyulin/hadris"
resolver = "2"

[features]
alloc = ["chrono?/alloc"]
async = [
    "hadris-io/async",
    "hadris-common/async",
]
cache = ["alloc"]
default = [
    "read",
    "write",
    "lfn",
    "std",
]
exfat = ["alloc"]
lfn = []
read = []
std = [
    "sync",
    "alloc",
    "dep:chrono",
    "chrono/std",
    "chrono/clock",
    "hadris-io/std",
    "hadris-common/std",
]
sync = [
    "hadris-io/sync",
    "hadris-common/sync",
]
tool = [
    "alloc",
    "read",
]
write = [
    "alloc",
    "read",
]

[lib]
name = "hadris_fat"
path = "src/lib.rs"

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

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

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

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

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

[dependencies.bitflags]
version = "2.9.0"

[dependencies.bytemuck]
version = "1.22.0"
features = [
    "derive",
    "min_const_generics",
]
default-features = false

[dependencies.chrono]
version = "0.4.40"
optional = true
default-features = false

[dependencies.hadris-common]
version = "1.0.0"
default-features = false

[dependencies.hadris-io]
version = "1.0.0"
default-features = false

[dependencies.hadris-macros]
version = "1.0.0"

[dependencies.spin]
version = "0.10.0"

[dev-dependencies.pretty_assertions]
version = "1.4.1"

[dev-dependencies.static_assertions]
version = "1.1.0"

[dev-dependencies.tempfile]
version = "3"
