modo-db 0.1.0

Database layer for modo using SeaORM
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 = "2024"
name = "modo-db"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Database layer for modo using SeaORM"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/dmitrymomot/modo"
resolver = "2"

[features]
default = ["sqlite"]
postgres = ["sea-orm/sqlx-postgres"]
sqlite = ["sea-orm/sqlx-sqlite"]

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

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

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

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

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

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

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

[dependencies.async-trait]
version = "0.1"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.inventory]
version = "0.3"

[dependencies.modo]
version = "0.1.0"

[dependencies.modo-db-macros]
version = "0.1.0"

[dependencies.nanoid]
version = "0.4"

[dependencies.sea-orm]
version = "2.0.0-rc"
features = [
    "runtime-tokio-native-tls",
    "macros",
    "schema-sync",
]

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.serde_yaml_ng]
version = "0.10"

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