[package]
edition = "2024"
rust-version = "1.90"
name = "fusion-db"
version = "0.1.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A data fusion platform with scheduler, ai agent studio and core libraries"
readme = false
license = "Apache-2.0"
repository = "https://github.com/fusion-data/fusion-data"
resolver = "2"
[features]
with-postgres = ["fusionsql/with-postgres"]
with-sqlite = ["fusionsql/with-sqlite"]
with-uuid = [
"dep:uuid",
"fusionsql/with-uuid",
]
[lib]
name = "fusion_db"
path = "src/lib.rs"
[[example]]
name = "example-app-db"
path = "examples/example-app-db.rs"
[[example]]
name = "example-sqlx"
path = "examples/example-sqlx.rs"
[[example]]
name = "lookup"
path = "examples/lookup.rs"
[dependencies.config]
version = "0.15"
features = [
"toml",
"yaml",
"json5",
"json",
]
default-features = false
[dependencies.fusion-common]
version = "0.1.0"
[dependencies.fusion-core]
version = "0.1.0"
features = ["fusionsql"]
[dependencies.fusionsql]
version = "0.1.0"
[dependencies.log]
version = "0.4"
[dependencies.sea-query]
version = "0.32"
features = [
"attr",
"thread-safe",
]
[dependencies.sea-query-binder]
version = "0.7"
features = [
"with-json",
"with-chrono",
]
[dependencies.serde]
version = "1.0"
features = [
"derive",
"rc",
]
[dependencies.serde_json]
version = "1.0"
[dependencies.sqlx]
version = "0.8"
features = [
"runtime-tokio",
"chrono",
"json",
]
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1.47"
features = [
"macros",
"rt-multi-thread",
"signal",
"net",
"fs",
"time",
"sync",
"process",
]
[dependencies.tonic]
version = "0.14"
optional = true
[dependencies.uuid]
version = "1"
features = [
"v4",
"v7",
"fast-rng",
"serde",
]
optional = true
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.logforth]
version = "0.28"
features = [
"starter-log",
"append-file",
]
[lints.clippy]
uninlined_format_args = "allow"
[lints.rust]
unsafe_code = "forbid"