# 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 = "kimberlite-io"
version = "0.9.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "I/O backend abstraction for Kimberlite storage"
readme = false
license = "Apache-2.0"
repository = "https://github.com/kimberlitedb/kimberlite"
resolver = "2"

[features]
direct_io = ["libc"]

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

[dependencies.bytes]
version = "1"
features = ["serde"]

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

[dependencies.thiserror]
version = "2"

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

[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
format_collect = "allow"
if_not_else = "allow"
large_enum_variant = "allow"
manual_flatten = "allow"
manual_let_else = "allow"
missing_docs_in_private_items = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
only_used_in_recursion = "allow"
return_self_not_must_use = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(kani)",
    "cfg(fuzzing)",
]
