[package]
edition = "2021"
name = "toolu-orm-macros"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Proc macros (Table, FromRow, relations) for toolu-orm"
readme = "README.md"
license = "MIT"
repository = "https://github.com/Falconiere/toolu-orm"
[features]
default = []
libsql = ["toolu-orm-core/libsql"]
postgres = ["toolu-orm-core/postgres"]
rusqlite = ["toolu-orm-core/rusqlite"]
[lib]
name = "toolu_orm_macros"
path = "src/lib.rs"
proc-macro = true
[[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"]
[[test]]
name = "compile_fail_test"
path = "tests/compile_fail_test.rs"
[dependencies.proc-macro-crate]
version = "3.5"
[dependencies.proc-macro2]
version = "1"
[dependencies.quote]
version = "1"
[dependencies.syn]
version = "2"
features = ["full"]
[dependencies.toolu-orm-core]
version = "0.2.0"
default-features = false
[dev-dependencies.libsql]
version = "0.9"
features = [
"core",
"remote",
"tls",
"core",
]
default-features = false
[dev-dependencies.rusqlite]
version = "0.32"
features = ["bundled"]
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tokio-postgres]
version = "0.7"
features = [
"with-uuid-1",
"with-serde_json-1",
]
[dev-dependencies.trybuild]
version = "1"
[lints.clippy]
cast_possible_truncation = "deny"
cast_possible_wrap = "deny"
cast_sign_loss = "deny"
checked_conversions = "deny"
clone_on_ref_ptr = "deny"
cloned_instead_of_copied = "deny"
cognitive_complexity = "deny"
disallowed_methods = "deny"
expect_used = "deny"
flat_map_option = "deny"
fn_params_excessive_bools = "deny"
if_not_else = "warn"
implicit_clone = "deny"
indexing_slicing = "deny"
large_types_passed_by_value = "deny"
lossy_float_literal = "deny"
manual_let_else = "deny"
map_err_ignore = "deny"
match_same_arms = "warn"
missing_docs_in_private_items = "allow"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
module_name_repetitions = "allow"
needless_pass_by_value = "deny"
panic = "deny"
redundant_clone = "deny"
redundant_else = "warn"
result_large_err = "deny"
similar_names = "warn"
single_match_else = "deny"
str_to_string = "deny"
struct_excessive_bools = "deny"
todo = "deny"
too_many_arguments = "deny"
too_many_lines = "deny"
trivially_copy_pass_by_ref = "deny"
unimplemented = "deny"
unnecessary_wraps = "deny"
unreachable = "deny"
unwrap_used = "deny"
verbose_file_reads = "deny"
wildcard_enum_match_arm = "deny"
[lints.rust]
deprecated = "deny"
unsafe_code = "deny"
unused_imports = "deny"
unused_must_use = "deny"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1