Lib.rs

› SeaORM › Features
  • Latest version
  • Features
  • Cargo.toml
  • Reverse dependencies

Cargo Features

[dependencies]
sea-orm = { version = "2.0.0-rc.38", default-features = false, features = ["debug-print", "entity-registry", "json-array", "macros", "mariadb-use-returning", "postgres-array", "postgres-use-serial-pk", "postgres-vector", "proxy", "rbac", "runtime-async-std", "runtime-async-std-native-tls", "runtime-async-std-rustls", "runtime-tokio", "runtime-tokio-native-tls", "runtime-tokio-rustls", "rusqlite", "schema-sync", "sea-orm-internal", "seaography", "sqlite-no-row-value-before-3_15", "sqlite-use-returning-for-3_35", "sqlx-all", "sqlx-dep", "sqlx-mysql", "sqlx-postgres", "sqlx-sqlite", "sync", "tests-cfg", "tests-features", "tracing-spans", "with-arrow", "with-bigdecimal", "with-chrono", "with-ipnetwork", "with-json", "with-mac_address", "with-rust_decimal", "with-time", "with-uuid", "mock"] }
default tests-features? = macros, sqlite-use-returning-for-3_35, 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
entity-registry = inventory

Enables entity-registry of sea-orm-macros

json-array = postgres-array

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

macros default rbac?

Enables derive of sea-orm-macros

Affects sea-orm::tests_cfg…

mariadb-use-returning
postgres-array json-array? sqlx-postgres? tests-features?

Enables postgres-array of sea-orm-macros, sea-query =1.0.0-rc.33, and optional sea-query-sqlx =0.8.0-rc.15

Affects column::ColumnTrait.eq_any, column::ColumnTrait.ne_all…

postgres-use-serial-pk

Enables option-postgres-use-serial of sea-query =1.0.0-rc.33

postgres-vector = pgvector

Enables postgres-vector of sea-query =1.0.0-rc.33 and optional sea-query-sqlx =0.8.0-rc.15

proxy

Enables derive of serde

rbac tests-features? = macros

Enables audit of sea-query =1.0.0-rc.33

sea-query:

STUB

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

runtime-async-std runtime-async-std-native-tls? runtime-async-std-rustls?

Enables runtime-async-std of optional sqlx

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

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

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

rusqlite
schema-sync tests-features? = sea-schema
sea-orm-internal
seaography

Enables seaography of sea-orm-macros

sqlite-no-row-value-before-3_15
sqlite-use-returning-for-3_35 default

Affects sqlite::ensure_returning_version…

sqlx-all = sqlx-mysql, sqlx-postgres, sqlx-sqlite
sqlx-dep sqlx-mysql? sqlx-postgres? sqlx-sqlite? = sqlx
sqlx-mysql sqlx-all? = sqlx-dep

Enables sqlx-mysql of sea-query-sqlx =0.8.0-rc.15 and optional sea-schema

Affects query::ColIdx.as_sqlx_mysql_index…

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

Enables sqlx-postgres of sea-orm-macros, sea-query-sqlx =0.8.0-rc.15, and optional sea-schema

Affects query::ColIdx.as_sqlx_postgres_index…

sqlx-sqlite sqlx-all? = sqlx-dep

Enables sqlx-sqlite of sea-query-sqlx =0.8.0-rc.15 and optional sea-schema

Affects query::ColIdx.as_sqlx_sqlite_index…

sync

Affects paginator::PaginatorStream…

tests-cfg

Enables derive of serde

serde:

Provide derive(Serialize, Deserialize) macros.

Affects sea-orm::tests_cfg…

tests-features = default, postgres-array, rbac, schema-sync, with-arrow, with-bigdecimal, with-ipnetwork
tracing-spans
with-arrow tests-features? = sea-orm-arrow

Enables with-arrow of sea-orm-macros

Affects active_model::ActiveModelTrait.from_arrow, active_model::ActiveModelTrait.to_arrow…

with-bigdecimal tests-features? = bigdecimal

Enables with-bigdecimal of optional sea-orm-arrow, sea-query =1.0.0-rc.33, and optional sea-query-sqlx =0.8.0-rc.15

with-chrono default = chrono

Enables with-chrono of optional sea-orm-arrow, sea-query =1.0.0-rc.33, and optional sea-query-sqlx =0.8.0-rc.15

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

with-ipnetwork tests-features? = ipnetwork

Enables with-ipnetwork of sea-query =1.0.0-rc.33 and optional sea-query-sqlx =0.8.0-rc.15

with-json default = serde_json

Enables serde of optional time and optional uuid, with-json of sea-orm-macros, sea-query =1.0.0-rc.33, and optional sea-query-sqlx =0.8.0-rc.15, serde of optional bigdecimal, optional chrono, optional mac_address, optional pgvector, and optional rust_decimal

Affects active_model::ActiveModelTrait.set_from_json, active_model::ActiveModelTrait.from_json, column::ColumnTrait.json_key, query::TryGetableFromJson, tests_cfg::serde_rename…

with-mac_address = mac_address

Enables with-mac_address of sea-query =1.0.0-rc.33 and optional sea-query-sqlx =0.8.0-rc.15

with-rust_decimal default = rust_decimal

Enables with-rust_decimal of optional sea-orm-arrow, sea-query =1.0.0-rc.33, and optional sea-query-sqlx =0.8.0-rc.15

Affects cake_filling_price::Model.price…

with-time default = time

Enables with-time of optional sea-orm-arrow, sea-query =1.0.0-rc.33, and optional sea-query-sqlx =0.8.0-rc.15

with-uuid default = uuid

Enables with-uuid of sea-query =1.0.0-rc.33 and optional sea-query-sqlx =0.8.0-rc.15

mock

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.

bigdecimal with-bigdecimal?
chrono with-chrono
inventory entity-registry?
ipnetwork with-ipnetwork?

Enables ipnetwork ^0.20

mac_address with-mac_address?
pgvector postgres-vector?
rust_decimal with-rust_decimal
sea-orm-arrow with-arrow?
sea-query-sqlx sqlx-mysql? sqlx-postgres? sqlx-sqlite?

Enables sea-query-sqlx =0.8.0-rc.15

sea-schema schema-sync?
serde_json with-json
sqlx sqlx-dep?
time with-time
uuid with-uuid

The data is based on the crate's Cargo.toml, including TOML comments. Affected code identifiers are only an approximation and a sample.

Back to SeaORM.