# 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 = "eventcore-fs"
version = "1.0.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "File-based, git-mergeable event store adapter for EventCore"
readme = false
license = "MIT"
repository = "https://git.johnwilger.com/Slipstream/eventcore"
resolver = "2"

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

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

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

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

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

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

[dependencies.chrono]
version = "0.4.42"
features = ["clock"]
default-features = false

[dependencies.eventcore-types]
version = "1.0.1"

[dependencies.fs4]
version = "1.1.0"
features = ["sync"]
default-features = false

[dependencies.futures]
version = "0.3.32"

[dependencies.nutype]
version = "0.7.0"
features = ["serde"]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.52.1"
features = [
    "sync",
    "rt",
]
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1.23.1"
features = [
    "v7",
    "serde",
]

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

[dev-dependencies.tokio]
version = "1.52.1"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
]
default-features = false

[lints.clippy]
allow_attributes = "deny"

[lints.rust]
dead_code = "forbid"
deprecated = "deny"
invalid_value = "forbid"
meta_variable_misuse = "deny"
non_ascii_idents = "deny"
non_camel_case_types = "deny"
non_snake_case = "deny"
non_upper_case_globals = "deny"
overflowing_literals = "forbid"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unconditional_recursion = "forbid"
unreachable_code = "deny"
unreachable_pub = "forbid"
unsafe_code = "forbid"
unused_allocation = "forbid"
unused_assignments = "deny"
unused_attributes = "deny"
unused_extern_crates = "deny"
unused_imports = "deny"
unused_must_use = "deny"
unused_mut = "deny"
unused_parens = "deny"
unused_qualifications = "deny"
unused_results = "deny"
unused_variables = "deny"
warnings = "deny"

[lints.rust.bad_style]
level = "deny"
priority = -1

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1

[lints.rust.rust_2021_compatibility]
level = "deny"
priority = -1
