# 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 = "jdb_fs"
version = "0.2.1"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance log-structured file storage / 高性能日志结构文件存储"
homepage = "https://github.com/js0/jdb/tree/main/jdb_fs"
readme = "README.md"
keywords = [
    "log-structured",
    "storage",
    "async-io",
    "compio",
    "database",
]
categories = [
    "asynchronous",
    "database-implementations",
    "filesystem",
    "data-structures",
    "embedded",
]
license = "MulanPSL-2.0"
repository = "https://github.com/js0/jdb.git"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []

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

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

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

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

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

[dependencies.add_ext]
version = "0.1.2"

[dependencies.compio]
version = "0.17.0"

[dependencies.compio-fs]
version = "0.10.0"

[dependencies.compio-runtime]
version = "0.10.1"
features = ["time"]

[dependencies.crc32fast]
version = "1.5.0"

[dependencies.log]
version = "0.4.29"

[dependencies.memchr]
version = "2.7.6"

[dependencies.thiserror]
version = "2.0.17"

[dependencies.zbin]
version = "0.1.4"

[dependencies.zerocopy]
version = "0.8.33"
features = ["derive"]

[dev-dependencies.aok]
version = "0.1.18"

[dev-dependencies.compio]
version = "0.17.0"
features = ["macros"]

[dev-dependencies.log]
version = "0.4.29"

[dev-dependencies.log_init]
version = "0.1.34"

[dev-dependencies.static_init]
version = "1.0.4"

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

[build-dependencies.anyhow]
version = "1.0.100"
