toolu-orm-macros 0.2.0

Proc macros (Table, FromRow, relations) for toolu-orm
Documentation
[package]
name = "toolu-orm-macros"
version.workspace = true
edition = "2021"
license.workspace = true
repository.workspace = true
readme.workspace = true
description = "Proc macros (Table, FromRow, relations) for toolu-orm"
autotests = false

[lib]
proc-macro = true

[dependencies]
toolu-orm-core = { path = "../orm-core", version = "0.2.0", default-features = false }
syn = { version = "2", features = ["full"] }
quote = "1"
proc-macro2 = "1"
proc-macro-crate = "3.5"

[dev-dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toolu-orm-core = { path = "../orm-core", default-features = false }
toolu-orm-query = { path = "../orm-query", default-features = false }
tokio-postgres = { workspace = true }
libsql = { workspace = true, default-features = false, features = ["core"] }
rusqlite.workspace = true
trybuild = "1"

[features]
default = []
libsql = ["toolu-orm-core/libsql"]
rusqlite = ["toolu-orm-core/rusqlite"]
postgres = ["toolu-orm-core/postgres"]

# No driver gate: the FromRow derive expands to whatever shape orm-core
# compiled (src/from_row_expand.rs), so this runs on every lane, including the
# default one where orm-core has libsql alone.
[[test]]
name = "from_row_test"
path = "tests/from_row_test.rs"

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

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

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

[[test]]
name = "table_macro_test"
path = "tests/table_macro_test/mod.rs"
required-features = ["postgres"]

# trybuild compile-fail cases for the macro error paths (tests/ui/*.rs).
[[test]]
name = "compile_fail_test"
path = "tests/compile_fail_test.rs"

[lints]
workspace = true