# 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 = "2021"
rust-version = "1.75"
name = "citadeldb-io"
version = "0.16.1"
authors = ["Yuriy Peysakhov"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "I/O layer for Citadel: PageIO trait, sync I/O, file locking, file management"
homepage = "https://citadeldb.dev"
readme = "README.md"
keywords = [
    "database",
    "embedded-database",
    "encryption",
    "sql",
    "encrypted-database",
]
categories = [
    "database-implementations",
    "cryptography",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/yp3y5akh0v/citadel"

[features]
default = []
io-uring = ["dep:io-uring"]

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

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

[dependencies.citadel-core]
version = "0.16.1"
package = "citadeldb-core"

[dependencies.parking_lot]
version = "0.12"

[dependencies.xxhash-rust]
version = "0.8"
features = ["xxh64"]

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

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.memmap2]
version = "0.9"

[target.'cfg(target_os = "linux")'.dependencies.io-uring]
version = "0.7"
optional = true

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[target."cfg(windows)".dependencies.windows-sys]
version = "0.59"
features = [
    "Win32_Foundation",
    "Win32_Storage_FileSystem",
    "Win32_System_IO",
]
