# 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 = "2021"
name = "nanosql"
version = "0.11.0"
authors = ["Arpad Goretity 'H2CO3' <arpad.goretity@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tiny, strongly-typed data mapper for SQLite"
homepage = "https://h2co3.github.io/nanosql"
documentation = "https://docs.rs/nanosql"
readme = "README.md"
license = "MIT"
repository = "https://github.com/H2CO3/nanosql"

[features]
chrono = [
    "dep:chrono",
    "rusqlite/chrono",
]
default = [
    "derive",
    "expr-check",
]
derive = ["dep:nanosql_macros"]
expr-check = ["nanosql_macros/expr-check"]
json = [
    "dep:serde_json",
    "rusqlite/serde_json",
]
mime = ["dep:mime"]
not-nan = ["dep:ordered-float"]
pretty-eqp = ["dep:ptree"]
uuid = [
    "dep:uuid",
    "rusqlite/uuid",
]

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

[[example]]
name = "derive"
path = "examples/derive.rs"
test = true
harness = false

[[example]]
name = "foreign_key"
path = "examples/foreign_key.rs"
test = true
harness = false

[[example]]
name = "indexes"
path = "examples/indexes.rs"
test = true
harness = false

[[example]]
name = "realistic"
path = "examples/realistic.rs"
test = true
harness = false

[[example]]
name = "unique_and_check"
path = "examples/unique_and_check.rs"
test = true
harness = false

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

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

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

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

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

[dependencies.mime]
version = "0.3.17"
optional = true

[dependencies.nanosql_macros]
version = "0.11.0"
optional = true

[dependencies.ordered-float]
version = "5.3"
optional = true

[dependencies.ptree]
version = "0.5.2"
optional = true
default-features = false

[dependencies.rusqlite]
version = "0.39"
features = [
    "modern_sqlite",
    "fallible_uint",
]

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

[dependencies.thiserror]
version = "2.0"

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

[dev-dependencies.compiletest_rs]
version = "0.11.2"
