toolu-orm-cli 0.1.0

Migration CLI (generate, migrate, status) for toolu-orm
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 = "2021"
name = "toolu-orm-cli"
version = "0.1.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Migration CLI (generate, migrate, status) for toolu-orm"
readme = "README.md"
license = "MIT"
repository = "https://github.com/Falconiere/toolu-orm"

[features]
default = ["libsql"]
libsql = [
    "dep:libsql",
    "toolu-orm-core/libsql",
    "toolu-orm-connection/libsql",
]
postgres = [
    "dep:tokio-postgres",
    "toolu-orm-core/postgres",
    "toolu-orm-connection/postgres",
]

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

[[test]]
name = "migrate_test"
path = "tests/migrate_test.rs"
required-features = [
    "libsql",
    "postgres",
]

[[test]]
name = "status_test"
path = "tests/status_test.rs"
required-features = [
    "libsql",
    "postgres",
]

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

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

[[test]]
name = "migration_loop_sqlite_test"
path = "tests/migration_loop_sqlite_test.rs"
required-features = ["libsql"]

[[test]]
name = "migration_loop_postgres_test"
path = "tests/migration_loop_postgres_test.rs"
required-features = [
    "libsql",
    "postgres",
]

[[test]]
name = "migrate_failure_test"
path = "tests/migrate_failure_test.rs"
required-features = ["libsql"]

[dependencies.libsql]
version = "0.9"
features = ["core"]
optional = true
default-features = false

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tokio-postgres]
version = "0.7"
features = [
    "with-uuid-1",
    "with-serde_json-1",
]
optional = true

[dependencies.toolu-orm-connection]
version = "0.1.0"
default-features = false

[dependencies.toolu-orm-core]
version = "0.1.0"
default-features = false

[dev-dependencies.libsql]
version = "0.9"
features = ["core"]
default-features = false

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[dev-dependencies.tokio-postgres]
version = "0.7"
features = [
    "with-uuid-1",
    "with-serde_json-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