234 lines
4.5 KiB
TOML
234 lines
4.5 KiB
TOML
# 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"
|
|
rust-version = "1.85.0"
|
|
name = "sea-orm-cli"
|
|
version = "2.0.0"
|
|
authors = [
|
|
"Chris Tsang <chris.2y3@outlook.com>",
|
|
"Billy Chan <ccw.billy.123@gmail.com>",
|
|
]
|
|
build = false
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
default-run = "sea-orm-cli"
|
|
description = "Command line utility for SeaORM"
|
|
homepage = "https://www.sea-ql.org/SeaORM"
|
|
documentation = "https://docs.rs/sea-orm"
|
|
readme = "README.md"
|
|
keywords = [
|
|
"async",
|
|
"orm",
|
|
"mysql",
|
|
"postgres",
|
|
"sqlite",
|
|
]
|
|
categories = ["database"]
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/SeaQL/sea-orm"
|
|
|
|
[package.metadata.binstall]
|
|
bin-dir = "{ name }-{ target }-v{ version }/{ bin }{ binary-ext }"
|
|
pkg-fmt = "tgz"
|
|
pkg-url = "{ repo }/releases/download/sea-orm-cli@{ version }/{ name }-{ target }-v{ version }{ archive-suffix }"
|
|
|
|
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
|
|
pkg-fmt = "zip"
|
|
|
|
[features]
|
|
cli = [
|
|
"clap",
|
|
"dotenvy",
|
|
]
|
|
codegen = [
|
|
"cli",
|
|
"sqlx",
|
|
"sea-schema",
|
|
"sea-orm-codegen",
|
|
]
|
|
default = [
|
|
"codegen",
|
|
"sqlx-mysql",
|
|
"sqlx-postgres",
|
|
"sqlx-sqlite",
|
|
"runtime-tokio-native-tls",
|
|
]
|
|
postgres-vector = ["sea-schema/postgres-vector"]
|
|
runtime-actix = ["runtime-tokio"]
|
|
runtime-actix-native-tls = ["runtime-tokio-native-tls"]
|
|
runtime-actix-rustls = ["runtime-tokio-rustls"]
|
|
runtime-async-std = [
|
|
"async-std",
|
|
"sqlx?/runtime-async-std",
|
|
"sea-schema?/runtime-async-std",
|
|
]
|
|
runtime-async-std-native-tls = [
|
|
"async-std",
|
|
"sqlx?/runtime-async-std",
|
|
"sqlx?/tls-native-tls",
|
|
"sea-schema?/runtime-async-std-native-tls",
|
|
]
|
|
runtime-async-std-rustls = [
|
|
"async-std",
|
|
"sqlx?/runtime-async-std",
|
|
"sqlx?/tls-rustls",
|
|
"sea-schema?/runtime-async-std-rustls",
|
|
]
|
|
runtime-tokio = [
|
|
"tokio",
|
|
"sqlx?/runtime-tokio",
|
|
"sea-schema?/runtime-tokio",
|
|
]
|
|
runtime-tokio-native-tls = [
|
|
"tokio",
|
|
"sqlx?/runtime-tokio",
|
|
"sqlx?/tls-native-tls",
|
|
"sea-schema?/runtime-tokio-native-tls",
|
|
]
|
|
runtime-tokio-rustls = [
|
|
"tokio",
|
|
"sqlx?/runtime-tokio",
|
|
"sqlx?/tls-rustls",
|
|
"sea-schema?/runtime-tokio-rustls",
|
|
]
|
|
sqlx-mysql = [
|
|
"sqlx?/mysql",
|
|
"sea-schema?/sqlx-mysql",
|
|
"sea-schema?/mysql",
|
|
]
|
|
sqlx-postgres = [
|
|
"sqlx?/postgres",
|
|
"sea-schema?/sqlx-postgres",
|
|
"sea-schema?/postgres",
|
|
]
|
|
sqlx-sqlite = [
|
|
"sqlx?/sqlite",
|
|
"sea-schema?/sqlx-sqlite",
|
|
"sea-schema?/sqlite",
|
|
]
|
|
|
|
[lib]
|
|
name = "sea_orm_cli"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "sea"
|
|
path = "src/bin/main.rs"
|
|
required-features = [
|
|
"cli",
|
|
"codegen",
|
|
]
|
|
|
|
[[bin]]
|
|
name = "sea-orm-cli"
|
|
path = "src/bin/main.rs"
|
|
required-features = [
|
|
"cli",
|
|
"codegen",
|
|
]
|
|
|
|
[dependencies.async-std]
|
|
version = "1.9"
|
|
features = [
|
|
"attributes",
|
|
"tokio1",
|
|
]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.chrono]
|
|
version = "0.4.20"
|
|
features = ["clock"]
|
|
default-features = false
|
|
|
|
[dependencies.clap]
|
|
version = "4.3"
|
|
features = [
|
|
"env",
|
|
"derive",
|
|
]
|
|
optional = true
|
|
|
|
[dependencies.dotenvy]
|
|
version = "0.15"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.glob]
|
|
version = "0.3"
|
|
default-features = false
|
|
|
|
[dependencies.indoc]
|
|
version = "2.0.6"
|
|
|
|
[dependencies.regex]
|
|
version = "1.11.2"
|
|
|
|
[dependencies.sea-orm-codegen]
|
|
version = "=2.0.0"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.sea-schema]
|
|
version = "0.18.1"
|
|
features = [
|
|
"discovery",
|
|
"writer",
|
|
"probe",
|
|
]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.sqlx]
|
|
version = "0.9.0"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.tokio]
|
|
version = "1.38.2"
|
|
features = [
|
|
"rt-multi-thread",
|
|
"macros",
|
|
]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.tracing]
|
|
version = "0.1"
|
|
default-features = false
|
|
|
|
[dependencies.tracing-subscriber]
|
|
version = "0.3.17"
|
|
features = [
|
|
"env-filter",
|
|
"fmt",
|
|
]
|
|
default-features = false
|
|
|
|
[dependencies.url]
|
|
version = "2.2"
|
|
default-features = false
|
|
|
|
[dev-dependencies.smol]
|
|
version = "1.2.5"
|
|
|
|
[profile.release]
|
|
opt-level = "s"
|
|
lto = true
|
|
codegen-units = 1
|
|
panic = "abort"
|
|
strip = true
|