SeaQL / sea-orm

🐚 An async & dynamic ORM for Rust
https://www.sea-ql.org/SeaORM/
Apache License 2.0
6.94k stars 483 forks source link

Cannot run sea-orm-cli with feature codegen without sqlite as a dependency #2320

Open ThomasConrad opened 1 month ago

ThomasConrad commented 1 month ago

Description

I cannot run sea-orm-cli with feature codegen without sqlite as a dependency. I do not want to pull in sqlite, I am using codegen with postgres. There is no way to remove the dependency.

Steps to Reproduce

Add sea-orm-cli to any crate with feature codegen.

Look at cargo.lock

Expected Behavior

I want to be able to deselect the sqlx-sqlite dependency.

It stems from the feature dependency on sea-schema:

codegen (default) sea-orm-codegen (default) sea-schema/sqlx-all (default)

Expurple commented 1 month ago

Yeah, I've already encountered this same issue: #2225