Thanks to visit codestin.com
Credit goes to lib.rs

Cargo Features

[dependencies]
sea-orm-cli = { version = "2.0.0-rc.9", default-features = false, features = ["codegen", "cli", "sqlx-mysql", "sqlx-postgres", "sqlx-sqlite", "postgres-vector", "runtime-actix", "runtime-actix-native-tls", "runtime-actix-rustls", "runtime-async-std", "runtime-async-std-native-tls", "runtime-async-std-rustls", "runtime-tokio", "runtime-tokio-native-tls", "runtime-tokio-rustls"] }
default = codegen, runtime-tokio-native-tls, sqlx-mysql, sqlx-postgres, sqlx-sqlite

These default features are set whenever sea-orm-cli is added without default-features = false somewhere in the dependency tree.

codegen default = cli, sea-orm-codegen, sea-schema, sqlx

Affects cli::main, commands::generate

Required by sea and sea-orm-cli binaries

cli codegen = clap, dotenvy

Affects migrate::run_migrate_command, sea-orm-cli::cli

Required by sea and sea-orm-cli binaries

sqlx-mysql default

Enables mysql and sqlx-mysql of optional sea-schema, sqlx-mysql of optional sqlx

sqlx-postgres default

Enables postgres and sqlx-postgres of optional sea-schema, sqlx-postgres of optional sqlx

sqlx-sqlite default

Enables sqlite and sqlx-sqlite of optional sea-schema, sqlx-sqlite of optional sqlx

postgres-vector

Enables postgres-vector of sea-schema

runtime-actix = runtime-tokio
runtime-actix-native-tls = runtime-tokio-native-tls
runtime-actix-rustls = runtime-tokio-rustls
runtime-async-std = async-std

Enables runtime-async-std of optional sea-schema and optional sqlx

sqlx:

Base runtime features without TLS

runtime-async-std-native-tls = async-std

Enables runtime-async-std-native-tls of optional sea-schema and optional sqlx

sqlx:

Legacy Runtime + TLS features

runtime-async-std-rustls = async-std

Enables runtime-async-std-rustls of optional sea-schema and optional sqlx

runtime-tokio runtime-actix? = tokio

Enables runtime-tokio of optional sea-schema and optional sqlx

runtime-tokio-native-tls default runtime-actix-native-tls? = tokio

Enables runtime-tokio-native-tls of optional sea-schema and optional sqlx

runtime-tokio-rustls runtime-actix-rustls? = tokio

Enables runtime-tokio-rustls of optional sea-schema and optional sqlx

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

clap cli?
dotenvy cli?
async-std runtime-async-std? runtime-async-std-native-tls? runtime-async-std-rustls?
sea-orm-codegen codegen
sea-schema codegen postgres-vector?
sqlx codegen
tokio runtime-tokio? runtime-tokio-native-tls runtime-tokio-rustls?