[package]
edition = "2021"
name = "toolu-orm-core"
version = "0.1.1"
build = "build.rs"
links = "toolu_orm_core"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Schema definitions, migrations and driver traits for toolu-orm"
readme = "README.md"
license = "MIT"
repository = "https://github.com/Falconiere/toolu-orm"
[features]
default = ["libsql"]
libsql = ["dep:libsql"]
postgres = [
"dep:tokio-postgres",
"dep:postgres-types",
"dep:bytes",
]
rusqlite = ["dep:rusqlite"]
[lib]
name = "toolu_orm_core"
path = "src/lib.rs"
[[test]]
name = "column_test"
path = "tests/column_test.rs"
[[test]]
name = "column_type_test"
path = "tests/column_type_test/main.rs"
[[test]]
name = "dialect_test"
path = "tests/dialect_test.rs"
[[test]]
name = "diff_test"
path = "tests/diff_test/main.rs"
[[test]]
name = "expr_offset_and_nesting_test"
path = "tests/expr_offset_and_nesting_test.rs"
[[test]]
name = "expr_test"
path = "tests/expr_test/main.rs"
[[test]]
name = "journal_test"
path = "tests/journal_test.rs"
[[test]]
name = "ordering_test"
path = "tests/ordering_test/main.rs"
[[test]]
name = "relation_registry_test"
path = "tests/relation_registry_test.rs"
[[test]]
name = "relation_test"
path = "tests/relation_test.rs"
[[test]]
name = "relational_row_test"
path = "tests/relational_row_test.rs"
[[test]]
name = "rename_test"
path = "tests/rename_test.rs"
[[test]]
name = "schema_test"
path = "tests/schema_test.rs"
[[test]]
name = "snapshot_legacy_shapes_test"
path = "tests/snapshot_legacy_shapes_test.rs"
[[test]]
name = "snapshot_test"
path = "tests/snapshot_test/main.rs"
[[test]]
name = "sql_test"
path = "tests/sql_test/main.rs"
[[test]]
name = "table_test"
path = "tests/table_test.rs"
[[test]]
name = "value_test"
path = "tests/value_test.rs"
[dependencies.bytes]
version = "1"
optional = true
[dependencies.libsql]
version = "0.9"
features = ["core"]
optional = true
default-features = false
[dependencies.postgres-types]
version = "0.2"
features = [
"with-serde_json-1",
"with-uuid-1",
]
optional = true
[dependencies.rusqlite]
version = "0.32"
features = ["bundled"]
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.10"
[dependencies.thiserror]
version = "2"
[dependencies.tokio-postgres]
version = "0.7"
optional = true
[dependencies.uuid]
version = "1"
features = ["v4"]
[dev-dependencies.tempfile]
version = "3"
[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