fletch-orm 1.0.0

Lightweight database toolkit built on SQLx
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.85.0"
name = "fletch-orm"
version = "1.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lightweight database toolkit built on SQLx"
homepage = "https://github.com/Artemis-Cooperative/aro"
documentation = "https://docs.rs/fletch-orm"
readme = "README.md"
keywords = [
    "database",
    "sqlx",
    "orm",
    "sqlite",
    "postgres",
]
categories = ["database"]
license = "MIT"
repository = "https://github.com/Artemis-Cooperative/aro"
resolver = "2"

[features]
chrono = [
    "dep:chrono",
    "sqlx/chrono",
]
default = [
    "runtime-tokio",
    "macros",
]
extended-types = [
    "uuid",
    "chrono",
    "json",
]
json = [
    "dep:serde_json",
    "sqlx/json",
]
macros = ["dep:fletch-orm-macros"]
mysql = ["sqlx/mysql"]
postgres = ["sqlx/postgres"]
runtime-tokio = ["sqlx/runtime-tokio"]
serde = ["dep:serde"]
sqlite = ["sqlx/sqlite"]
uuid = [
    "dep:uuid",
    "sqlx/uuid",
]

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

[[test]]
name = "value_binding"
path = "tests/value_binding.rs"
required-features = [
    "sqlite",
    "uuid",
    "chrono",
    "json",
]

[dependencies.chrono]
version = "0.4"
features = ["serde"]
optional = true

[dependencies.fletch-orm-macros]
version = "1.0.0"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.sqlx]
version = "0.8"
default-features = false

[dependencies.thiserror]
version = "2"

[dependencies.uuid]
version = "1"
optional = true

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

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

[dev-dependencies.sqlx]
version = "0.8"
features = [
    "sqlite",
    "postgres",
    "mysql",
    "runtime-tokio",
    "uuid",
    "chrono",
    "json",
]

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
]

[dev-dependencies.uuid]
version = "1"
features = ["v4"]

[lints.clippy]
allow_attributes_without_reason = "warn"
as_conversions = "warn"
cargo_common_metadata = "allow"
cast_lossless = "deny"
cast_possible_truncation = "deny"
cast_possible_wrap = "deny"
cast_precision_loss = "warn"
cast_sign_loss = "deny"
checked_conversions = "deny"
dbg_macro = "deny"
expect_used = "deny"
fn_to_numeric_cast_any = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
panic = "deny"
panic_in_result_fn = "warn"
print_stderr = "deny"
print_stdout = "deny"
ptr_as_ptr = "deny"
ref_as_ptr = "deny"
return_self_not_must_use = "allow"
todo = "deny"
unimplemented = "deny"
unreachable = "deny"
unwrap_used = "deny"
wildcard_imports = "allow"

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

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

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

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

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

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

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

[lints.rust]
missing_abi = "deny"
unsafe_code = "forbid"
unsafe_op_in_unsafe_fn = "deny"