# 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-types"
version = "0.7.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared vocabulary types and traits for EventCore event sourcing library"
readme = false
license = "MIT"
repository = "https://github.com/jwilger/eventcore"
resolver = "2"

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

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

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0.17"

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

[dev-dependencies.proptest]
version = "1.9.0"

[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
