Skip to content
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
- uses: mozilla-actions/sccache-action@v0.0.9
- run: cargo install --locked taplo-cli
- run: taplo fmt --check
- run: taplo fmt --check

compile:
name: Compile (${{ matrix.label }})
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ Cargo.lock
.vscode
.idea/*
*/.idea/*
.zed/*
*/.zed/*
.env.local
.DS_Store
.DS_Store
88 changes: 88 additions & 0 deletions sea-orm-entity/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
[workspace]
# A separate workspace

[package]
description = "Entity-first migration generator for SeaORM"
edition = "2024"
license = "MIT OR Apache-2.0"
name = "sea-orm-entity"
repository = "https://github.com/SeaQL/sea-orm"
rust-version = "1.85.0"
version = "0.1.0"

[dependencies]
async-trait = { version = "0.1", default-features = false }
chrono = { version = "0.4", default-features = false, features = ["clock"] }
clap = { version = "4.3", features = ["env", "derive"] }
dotenvy = { version = "0.15", default-features = false }
regex = { version = "1" }
sea-orm = { path = "..", version = "~2.0.0-rc.37", features = ["schema-sync"] }
sea-orm-migration = { path = "../sea-orm-migration", version = "~2.0.0-rc.37", default-features = false }
sea-schema = { version = "0.17.0-rc", default-features = false, features = [
"discovery",
"writer",
"probe",
] }
tokio = { version = "1", features = [
"rt-multi-thread",
"macros",
], optional = true }
tracing-subscriber = { version = "0.3", default-features = false, features = [
"env-filter",
"fmt",
] }

[features]
default = ["runtime-tokio-native-tls", "sqlx-sqlite"]
runtime-async-std = [
"sea-orm/runtime-async-std",
"sea-schema/runtime-async-std",
"sea-orm-migration/runtime-async-std",
]
runtime-async-std-native-tls = [
"sea-orm/runtime-async-std-native-tls",
"sea-schema/runtime-async-std-native-tls",
"sea-orm-migration/runtime-async-std-native-tls",
]
runtime-async-std-rustls = [
"sea-orm/runtime-async-std-rustls",
"sea-schema/runtime-async-std-rustls",
"sea-orm-migration/runtime-async-std-rustls",
]
runtime-tokio = [
"tokio",
"sea-orm/runtime-tokio",
"sea-schema/runtime-tokio",
"sea-orm-migration/runtime-tokio",
]
runtime-tokio-native-tls = [
"tokio",
"sea-orm/runtime-tokio-native-tls",
"sea-schema/runtime-tokio-native-tls",
"sea-orm-migration/runtime-tokio-native-tls",
]
runtime-tokio-rustls = [
"tokio",
"sea-orm/runtime-tokio-rustls",
"sea-schema/runtime-tokio-rustls",
"sea-orm-migration/runtime-tokio-rustls",
]
sqlx-mysql = [
"sea-orm/sqlx-mysql",
"sea-schema/sqlx-mysql",
"sea-orm-migration/sqlx-mysql",
]
sqlx-postgres = [
"sea-orm/sqlx-postgres",
"sea-schema/sqlx-postgres",
"sea-orm-migration/sqlx-postgres",
]
sqlx-sqlite = [
"sea-orm/sqlx-sqlite",
"sea-schema/sqlx-sqlite",
"sea-orm-migration/sqlx-sqlite",
]

[dev-dependencies]
tempfile = "3"
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
Loading
Loading