queryweave-derive 0.2.1

Derive macros generating filtering, sorting, paging and merge-patch types for a domain model and the layers mirroring it.
Documentation
# 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"
rust-version = "1.88"
name = "queryweave-derive"
version = "0.2.1"
authors = ["Eduard Mihai Mitrică"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Derive macros generating filtering, sorting, paging and merge-patch types for a domain model and the layers mirroring it."
readme = "README.md"
keywords = [
    "derive",
    "filter",
    "sort",
    "pagination",
    "merge-patch",
]
categories = [
    "development-tools::procedural-macro-helpers",
    "database",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/eduardmitrica/queryweave"
resolver = "2"

[features]
default = ["merge-patch"]
merge-patch = ["queryweave-codegen/merge-patch"]

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.queryweave-codegen]
version = "0.2.1"
default-features = false

[dev-dependencies.chrono]
version = "0.4.45"

[dev-dependencies.diesel]
version = "2.3.14"
features = [
    "sqlite",
    "chrono",
]
default-features = false

[dev-dependencies.garde]
version = "0.23.0"
features = ["derive"]

[dev-dependencies.insta]
version = "1.49.0"

[dev-dependencies.libsqlite3-sys]
version = "0.30.1"
features = ["bundled"]

[dev-dependencies.pretty_assertions]
version = "1.4.1"

[dev-dependencies.prettyplease]
version = "0.3.0"

[dev-dependencies.rstest]
version = "0.26.1"

[dev-dependencies.schemars]
version = "1.2.2"

[dev-dependencies.sea-orm]
version = "2.0.4"
features = [
    "macros",
    "with-chrono",
]
default-features = false

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

[dev-dependencies.serde_json]
version = "1.0.151"

[dev-dependencies.sqlx]
version = "0.8.6"
features = [
    "derive",
    "runtime-tokio",
    "postgres",
    "mysql",
    "chrono",
]
default-features = false

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

[dev-dependencies.utoipa]
version = "6.0.0"

[dev-dependencies.validator]
version = "0.21.0"
features = ["derive"]

[lints.clippy]
dbg_macro = "warn"
expect_used = "deny"
indexing_slicing = "deny"
panic = "deny"
redundant_field_names = "allow"
todo = "warn"

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

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

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

[lints.clippy.unwrap_used]
level = "deny"
priority = 1

[lints.clippy.wildcard_imports]
level = "deny"
priority = 1

[lints.rust]
dead_code = "warn"
missing_docs = "warn"
unreachable_code = "warn"
unsafe_code = "forbid"
unused_variables = "warn"