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

Cargo Features

[dependencies]
sea-orm = { version = "2.0.0-rc.9", default-features = false, features = ["debug-print", "macros", "rbac", "proxy", "with-json", "with-chrono", "with-rust_decimal", "with-bigdecimal", "with-uuid", "with-time", "with-ipnetwork", "postgres-array", "postgres-vector", "mock", "json-array", "sea-orm-internal", "sqlx-dep", "sqlx-all", "sqlx-mysql", "sqlx-postgres", "sqlx-sqlite", "sqlite-use-returning-for-3_35", "runtime-async-std", "runtime-async-std-native-tls", "runtime-async-std-rustls", "runtime-tokio", "runtime-tokio-native-tls", "runtime-tokio-rustls", "tests-cfg", "seaography"] }
default = macros, sqlite-use-returning-for-3_35, with-bigdecimal, with-chrono, with-json, with-rust_decimal, with-time, with-uuid

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

debug-print
macros default rbac?

Enables derive of sea-orm-macros

Affects sea-orm::tests_cfg

rbac = macros

Enables audit of sea-query

sea-query:

STUB

Affects statement::StatementBuilder.audit, sea-orm::rbac

proxy = serde_json

Enables derive of serde

with-json default = serde_json

Enables with-json of sea-query and optional sea-query-sqlx, serde of optional time and optional uuid, serde of optional bigdecimal, optional chrono, optional pgvector, and optional rust_decimal and json of optional sqlx

sqlx:

types

Affects active_model::ActiveModelTrait.set_from_json, active_model::ActiveModelTrait.from_json, query::TryGetableFromJson

with-chrono default = chrono

Enables chrono of optional sqlx, with-chrono of sea-query and optional sea-query-sqlx

Affects prelude::DateTimeWithTimeZone, prelude::DateTimeUtc, prelude::DateTimeLocal, prelude::ChronoDateTimeWithTimeZone, prelude::ChronoDateTimeUtc, prelude::ChronoUtc, prelude::ChronoDateTimeLocal

with-rust_decimal default = rust_decimal

Enables rust_decimal of optional sqlx, with-rust_decimal of sea-query and optional sea-query-sqlx

Affects cake_filling_price::Model.price

with-bigdecimal default = bigdecimal

Enables bigdecimal of optional sqlx, with-bigdecimal of sea-query and optional sea-query-sqlx

with-uuid default = uuid

Enables uuid of optional sqlx, with-uuid of sea-query and optional sea-query-sqlx

with-time default = time

Enables time of optional sqlx, with-time of sea-query and optional sea-query-sqlx

with-ipnetwork = ipnetwork

Enables ipnetwork of optional sqlx, with-ipnetwork of sea-query and optional sea-query-sqlx

postgres-array json-array? sqlx-postgres?

Enables postgres-array of sea-orm-macros, sea-query, and optional sea-query-sqlx

Affects column::ColumnTrait.eq_any

postgres-vector = pgvector

Enables postgres-vector of sea-query and optional sea-query-sqlx

mock
json-array = postgres-array

this does not actually enable sqlx-postgres, but only a few traits to support array in sea-query

sea-orm-internal
sqlx-dep sqlx-mysql? sqlx-postgres? sqlx-sqlite?
sqlx-all = sqlx-mysql, sqlx-postgres, sqlx-sqlite
sqlx-mysql sqlx-all? = sqlx-dep

Enables sqlx-mysql of sea-query-sqlx, mysql of sqlx

Affects query::ColIdx.as_sqlx_mysql_index

sqlx-postgres sqlx-all? = postgres-array, sqlx-dep

Enables sqlx-postgres of sea-query-sqlx, postgres of sqlx

Affects query::ColIdx.as_sqlx_postgres_index

sqlx-sqlite sqlx-all? = sqlx-dep

Enables sqlx-sqlite of sea-query-sqlx, sqlite of sqlx

Affects query::ColIdx.as_sqlx_sqlite_index

sqlite-use-returning-for-3_35 default
runtime-async-std runtime-async-std-native-tls? runtime-async-std-rustls?

Enables runtime-async-std of optional sqlx

sqlx:

Base runtime features without TLS

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

Enables runtime-async-std-native-tls of optional sqlx

sqlx:

Legacy Runtime + TLS features

runtime-async-std-rustls = runtime-async-std

Enables runtime-async-std-rustls of optional sqlx

runtime-tokio runtime-tokio-native-tls? runtime-tokio-rustls?

Enables runtime-tokio of optional sqlx

runtime-tokio-native-tls = runtime-tokio

Enables runtime-tokio-native-tls of optional sqlx

runtime-tokio-rustls = runtime-tokio

Enables runtime-tokio-rustls of optional sqlx

tests-cfg

Enables derive of serde

serde:

Provide derive(Serialize, Deserialize) macros.

Affects sea-orm::tests_cfg

seaography

Enables seaography of sea-orm-macros

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.

chrono with-chrono
time with-time
rust_decimal with-rust_decimal
bigdecimal with-bigdecimal
sea-query-sqlx sqlx-mysql? sqlx-postgres? sqlx-sqlite?
serde_json proxy? with-json
sqlx sqlx-mysql? sqlx-postgres? sqlx-sqlite?
uuid with-uuid
pgvector postgres-vector?
ipnetwork with-ipnetwork?

Enables ipnetwork ^0.20