# 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 = "flusso-query-derive"
version = "0.3.2"
authors = ["Alias2k"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Derive macro generating a typed, compile-time-validated query surface for flusso indexes."
homepage = "https://github.com/alias2k/flusso"
readme = "README.md"
keywords = [
    "postgres",
    "opensearch",
    "cdc",
    "search",
    "replication",
]
categories = ["database"]
license = "Apache-2.0"
repository = "https://github.com/alias2k/flusso"

[lib]
name = "flusso_query_derive"
path = "src/lib.rs"
proc-macro = true

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

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

[dependencies.proc-macro2]
version = "1"

[dependencies.quote]
version = "1"

[dependencies.schema]
version = "0.3.2"
package = "flusso-schema"

[dependencies.syn]
version = "2"
features = [
    "full",
    "extra-traits",
]

[dependencies.toml]
version = "1.1.*"
features = ["preserve_order"]

[dev-dependencies.serde]
version = "1.0.*"
features = ["derive"]

[dev-dependencies.serde_json]
version = "1.*"

[dev-dependencies.trybuild]
version = "1"

[lints.clippy]
expect_used = "deny"
indexing_slicing = "deny"
iter_next_slice = "allow"
len_zero = "deny"
match_bool = "deny"
print_stderr = "deny"
print_stdout = "deny"
unwrap_used = "deny"

[lints.clippy.perf]
level = "deny"
priority = -1

[lints.clippy.style]
level = "deny"
priority = -1

[lints.rust]
missing_debug_implementations = "deny"
non_camel_case_types = "deny"
non_snake_case = "deny"
non_upper_case_globals = "deny"
unreachable_patterns = "deny"
unreachable_pub = "deny"
unsafe_code = "deny"
unused_crate_dependencies = "warn"
unused_imports = "deny"
unused_mut = "deny"
unused_variables = "deny"
warnings = "deny"
