667 lines
12 KiB
TOML
667 lines
12 KiB
TOML
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
|
|
#
|
|
# When uploading crates to the registry Cargo will automatically
|
|
# "normalize" Cargo.toml files for maximal compatibility
|
|
# with all versions of Cargo and also rewrite `path` dependencies
|
|
# to registry (e.g., crates.io) dependencies.
|
|
#
|
|
# If you are reading this file be aware that the original Cargo.toml
|
|
# will likely look very different (and much more reasonable).
|
|
# See Cargo.toml.orig for the original contents.
|
|
|
|
[package]
|
|
edition = "2024"
|
|
rust-version = "1.94.0"
|
|
name = "sea-orm"
|
|
version = "2.0.0"
|
|
authors = ["Chris Tsang <chris.2y3@outlook.com>"]
|
|
build = false
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "🐚 An async & dynamic ORM for Rust"
|
|
homepage = "https://www.sea-ql.org/SeaORM"
|
|
documentation = "https://docs.rs/sea-orm"
|
|
readme = "README.md"
|
|
keywords = [
|
|
"async",
|
|
"orm",
|
|
"mysql",
|
|
"postgres",
|
|
"sqlite",
|
|
]
|
|
categories = ["database"]
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/SeaQL/sea-orm"
|
|
|
|
[package.metadata.docs.rs]
|
|
features = [
|
|
"default",
|
|
"sqlx-all",
|
|
"mock",
|
|
"proxy",
|
|
"rbac",
|
|
"schema-sync",
|
|
"tracing-spans",
|
|
"runtime-tokio-native-tls",
|
|
"postgres-array",
|
|
"postgres-vector",
|
|
"with-ipnetwork",
|
|
"with-arrow",
|
|
"stream",
|
|
]
|
|
rustdoc-args = [
|
|
"--cfg",
|
|
"docsrs",
|
|
]
|
|
|
|
[features]
|
|
debug-print = []
|
|
default = [
|
|
"macros",
|
|
"with-json",
|
|
"with-chrono",
|
|
"with-rust_decimal",
|
|
"with-uuid",
|
|
"with-time",
|
|
"sqlite-use-returning-for-3_35",
|
|
"stream",
|
|
]
|
|
entity-registry = [
|
|
"inventory",
|
|
"sea-orm-macros/entity-registry",
|
|
]
|
|
json-array = ["postgres-array"]
|
|
macros = ["sea-orm-macros/derive"]
|
|
mariadb-use-returning = []
|
|
mock = []
|
|
postgres-array = [
|
|
"sea-query/postgres-array",
|
|
"sea-orm-macros/postgres-array",
|
|
"sea-query-sqlx?/postgres-array",
|
|
]
|
|
postgres-use-serial-pk = ["sea-query/option-postgres-use-serial"]
|
|
postgres-vector = [
|
|
"pgvector",
|
|
"sea-query/postgres-vector",
|
|
"sea-query-sqlx?/postgres-vector",
|
|
]
|
|
proxy = ["serde/derive"]
|
|
rbac = [
|
|
"sea-query/audit",
|
|
"macros",
|
|
]
|
|
runtime-async-std = ["sqlx?/runtime-async-std"]
|
|
runtime-async-std-native-tls = [
|
|
"sqlx?/tls-native-tls",
|
|
"runtime-async-std",
|
|
]
|
|
runtime-async-std-rustls = [
|
|
"sqlx?/tls-rustls",
|
|
"runtime-async-std",
|
|
]
|
|
runtime-tokio = ["sqlx?/runtime-tokio"]
|
|
runtime-tokio-native-tls = [
|
|
"sqlx?/tls-native-tls",
|
|
"runtime-tokio",
|
|
]
|
|
runtime-tokio-rustls = [
|
|
"sqlx?/tls-rustls",
|
|
"runtime-tokio",
|
|
]
|
|
rusqlite = []
|
|
schema-sync = ["sea-schema"]
|
|
sea-orm-internal = []
|
|
seaography = ["sea-orm-macros/seaography"]
|
|
serde = [
|
|
"dep:serde",
|
|
"serde/derive",
|
|
"uuid?/serde",
|
|
]
|
|
sqlite-no-row-value-before-3_15 = []
|
|
sqlite-use-returning-for-3_35 = []
|
|
sqlx-all = [
|
|
"sqlx-mysql",
|
|
"sqlx-postgres",
|
|
"sqlx-sqlite",
|
|
]
|
|
sqlx-dep = [
|
|
"sqlx",
|
|
"sqlx-core",
|
|
]
|
|
sqlx-mysql = [
|
|
"sqlx-dep",
|
|
"sea-query-sqlx/sqlx-mysql",
|
|
"sea-schema?/sqlx-mysql",
|
|
]
|
|
sqlx-postgres = [
|
|
"sqlx-dep",
|
|
"sea-orm-macros/sqlx-postgres",
|
|
"sea-query-sqlx/sqlx-postgres",
|
|
"postgres-array",
|
|
"sea-schema?/sqlx-postgres",
|
|
]
|
|
sqlx-sqlite = [
|
|
"sqlx-dep",
|
|
"sea-query-sqlx/sqlx-sqlite",
|
|
"sea-schema?/sqlx-sqlite",
|
|
]
|
|
stream = ["dep:ouroboros"]
|
|
sync = []
|
|
tests-cfg = ["serde/derive"]
|
|
tests-features = [
|
|
"default",
|
|
"postgres-array",
|
|
"rbac",
|
|
"schema-sync",
|
|
"with-arrow",
|
|
"with-bigdecimal",
|
|
"with-ipnetwork",
|
|
]
|
|
tracing-spans = []
|
|
with-arrow = [
|
|
"sea-orm-arrow",
|
|
"sea-orm-macros/with-arrow",
|
|
]
|
|
with-bigdecimal = [
|
|
"bigdecimal",
|
|
"sea-query/with-bigdecimal",
|
|
"sea-query-sqlx?/with-bigdecimal",
|
|
"sea-orm-arrow?/with-bigdecimal",
|
|
]
|
|
with-chrono = [
|
|
"chrono",
|
|
"sea-query/with-chrono",
|
|
"sea-query-sqlx?/with-chrono",
|
|
"sea-orm-arrow?/with-chrono",
|
|
]
|
|
with-ipnetwork = [
|
|
"ipnetwork",
|
|
"sea-query/with-ipnetwork",
|
|
"sea-query-sqlx?/with-ipnetwork",
|
|
]
|
|
with-json = [
|
|
"dep:serde",
|
|
"serde_json",
|
|
"sea-query/with-json",
|
|
"sea-orm-macros/with-json",
|
|
"chrono?/serde",
|
|
"rust_decimal?/serde",
|
|
"bigdecimal?/serde",
|
|
"uuid?/serde",
|
|
"time?/serde",
|
|
"mac_address?/serde",
|
|
"pgvector?/serde",
|
|
"sea-query-sqlx?/with-json",
|
|
]
|
|
with-mac_address = [
|
|
"mac_address",
|
|
"sea-query/with-mac_address",
|
|
"sea-query-sqlx?/with-mac_address",
|
|
]
|
|
with-rust_decimal = [
|
|
"rust_decimal",
|
|
"sea-query/with-rust_decimal",
|
|
"sea-query-sqlx?/with-rust_decimal",
|
|
"sea-orm-arrow?/with-rust_decimal",
|
|
]
|
|
with-time = [
|
|
"time",
|
|
"sea-query/with-time",
|
|
"sea-query-sqlx?/with-time",
|
|
"sea-orm-arrow?/with-time",
|
|
]
|
|
with-uuid = [
|
|
"uuid",
|
|
"sea-query/with-uuid",
|
|
"sea-query-sqlx?/with-uuid",
|
|
]
|
|
|
|
[lib]
|
|
name = "sea_orm"
|
|
path = "src/lib.rs"
|
|
|
|
[[test]]
|
|
name = "active_enum_from_query_result_tests"
|
|
path = "tests/active_enum_from_query_result_tests.rs"
|
|
|
|
[[test]]
|
|
name = "active_enum_tests"
|
|
path = "tests/active_enum_tests.rs"
|
|
|
|
[[test]]
|
|
name = "active_model_ex_tests"
|
|
path = "tests/active_model_ex_tests.rs"
|
|
|
|
[[test]]
|
|
name = "arrow_schema_tests"
|
|
path = "tests/arrow_schema_tests.rs"
|
|
|
|
[[test]]
|
|
name = "arrow_tests"
|
|
path = "tests/arrow_tests.rs"
|
|
|
|
[[test]]
|
|
name = "basic"
|
|
path = "tests/basic.rs"
|
|
|
|
[[test]]
|
|
name = "belongs_to_legacy_tests"
|
|
path = "tests/belongs_to_legacy_tests.rs"
|
|
|
|
[[test]]
|
|
name = "bits_tests"
|
|
path = "tests/bits_tests.rs"
|
|
|
|
[[test]]
|
|
name = "byte_primary_key_tests"
|
|
path = "tests/byte_primary_key_tests.rs"
|
|
|
|
[[test]]
|
|
name = "collection_tests"
|
|
path = "tests/collection_tests.rs"
|
|
|
|
[[test]]
|
|
name = "connection_tests"
|
|
path = "tests/connection_tests.rs"
|
|
|
|
[[test]]
|
|
name = "crud_tests"
|
|
path = "tests/crud_tests.rs"
|
|
|
|
[[test]]
|
|
name = "cursor_tests"
|
|
path = "tests/cursor_tests.rs"
|
|
|
|
[[test]]
|
|
name = "database_executor_tests"
|
|
path = "tests/database_executor_tests.rs"
|
|
|
|
[[test]]
|
|
name = "delete_by_id_tests"
|
|
path = "tests/delete_by_id_tests.rs"
|
|
|
|
[[test]]
|
|
name = "derive_iden_tests"
|
|
path = "tests/derive_iden_tests.rs"
|
|
|
|
[[test]]
|
|
name = "derive_model_tests"
|
|
path = "tests/derive_model_tests.rs"
|
|
|
|
[[test]]
|
|
name = "derive_tests"
|
|
path = "tests/derive_tests.rs"
|
|
|
|
[[test]]
|
|
name = "dyn_table_name_tests"
|
|
path = "tests/dyn_table_name_tests.rs"
|
|
|
|
[[test]]
|
|
name = "embedding_tests"
|
|
path = "tests/embedding_tests.rs"
|
|
|
|
[[test]]
|
|
name = "empty_insert_tests"
|
|
path = "tests/empty_insert_tests.rs"
|
|
|
|
[[test]]
|
|
name = "entity_loader_tests"
|
|
path = "tests/entity_loader_tests.rs"
|
|
|
|
[[test]]
|
|
name = "enum_primary_key_tests"
|
|
path = "tests/enum_primary_key_tests.rs"
|
|
|
|
[[test]]
|
|
name = "event_trigger_tests"
|
|
path = "tests/event_trigger_tests.rs"
|
|
|
|
[[test]]
|
|
name = "execute_unprepared_tests"
|
|
path = "tests/execute_unprepared_tests.rs"
|
|
|
|
[[test]]
|
|
name = "exists_tests"
|
|
path = "tests/exists_tests.rs"
|
|
|
|
[[test]]
|
|
name = "from_query_result_tests"
|
|
path = "tests/from_query_result_tests.rs"
|
|
|
|
[[test]]
|
|
name = "host_network_tests"
|
|
path = "tests/host_network_tests.rs"
|
|
|
|
[[test]]
|
|
name = "impl_from_for_active_model"
|
|
path = "tests/impl_from_for_active_model.rs"
|
|
|
|
[[test]]
|
|
name = "insert_default_tests"
|
|
path = "tests/insert_default_tests.rs"
|
|
|
|
[[test]]
|
|
name = "json_struct_tests"
|
|
path = "tests/json_struct_tests.rs"
|
|
|
|
[[test]]
|
|
name = "json_vec_tests"
|
|
path = "tests/json_vec_tests.rs"
|
|
|
|
[[test]]
|
|
name = "junction_active_behaviour_tests"
|
|
path = "tests/junction_active_behaviour_tests.rs"
|
|
|
|
[[test]]
|
|
name = "loader_tests"
|
|
path = "tests/loader_tests.rs"
|
|
|
|
[[test]]
|
|
name = "multi_select_tests"
|
|
path = "tests/multi_select_tests.rs"
|
|
|
|
[[test]]
|
|
name = "paginator_tests"
|
|
path = "tests/paginator_tests.rs"
|
|
|
|
[[test]]
|
|
name = "parallel_tests"
|
|
path = "tests/parallel_tests.rs"
|
|
|
|
[[test]]
|
|
name = "partial_model_nested"
|
|
path = "tests/partial_model_nested/main.rs"
|
|
|
|
[[test]]
|
|
name = "partial_model_tests"
|
|
path = "tests/partial_model_tests.rs"
|
|
|
|
[[test]]
|
|
name = "pi_tests"
|
|
path = "tests/pi_tests.rs"
|
|
|
|
[[test]]
|
|
name = "query_tests"
|
|
path = "tests/query_tests.rs"
|
|
|
|
[[test]]
|
|
name = "raw_sql_tests"
|
|
path = "tests/raw_sql_tests.rs"
|
|
|
|
[[test]]
|
|
name = "rbac_tests"
|
|
path = "tests/rbac_tests.rs"
|
|
|
|
[[test]]
|
|
name = "relational_tests"
|
|
path = "tests/relational_tests.rs"
|
|
|
|
[[test]]
|
|
name = "returning_tests"
|
|
path = "tests/returning_tests.rs"
|
|
|
|
[[test]]
|
|
name = "schema_sync_tests"
|
|
path = "tests/schema_sync_tests.rs"
|
|
|
|
[[test]]
|
|
name = "select_four_many_tests"
|
|
path = "tests/select_four_many_tests.rs"
|
|
|
|
[[test]]
|
|
name = "self_join_tests"
|
|
path = "tests/self_join_tests.rs"
|
|
|
|
[[test]]
|
|
name = "sequential_op_tests"
|
|
path = "tests/sequential_op_tests.rs"
|
|
|
|
[[test]]
|
|
name = "sql_err_tests"
|
|
path = "tests/sql_err_tests.rs"
|
|
|
|
[[test]]
|
|
name = "stream_tests"
|
|
path = "tests/stream_tests.rs"
|
|
|
|
[[test]]
|
|
name = "string_primary_key_tests"
|
|
path = "tests/string_primary_key_tests.rs"
|
|
|
|
[[test]]
|
|
name = "text_uuid_tests"
|
|
path = "tests/text_uuid_tests.rs"
|
|
|
|
[[test]]
|
|
name = "time_crate_tests"
|
|
path = "tests/time_crate_tests.rs"
|
|
|
|
[[test]]
|
|
name = "timestamp_tests"
|
|
path = "tests/timestamp_tests.rs"
|
|
|
|
[[test]]
|
|
name = "transaction_tests"
|
|
path = "tests/transaction_tests.rs"
|
|
|
|
[[test]]
|
|
name = "type_tests"
|
|
path = "tests/type_tests.rs"
|
|
|
|
[[test]]
|
|
name = "update_without_returning_tests"
|
|
path = "tests/update_without_returning_tests.rs"
|
|
|
|
[[test]]
|
|
name = "upsert_tests"
|
|
path = "tests/upsert_tests.rs"
|
|
|
|
[[test]]
|
|
name = "uuid_fmt_tests"
|
|
path = "tests/uuid_fmt_tests.rs"
|
|
|
|
[[test]]
|
|
name = "uuid_tests"
|
|
path = "tests/uuid_tests.rs"
|
|
|
|
[[test]]
|
|
name = "value_type_tests"
|
|
path = "tests/value_type_tests.rs"
|
|
|
|
[dependencies.async-stream]
|
|
version = "0.3"
|
|
default-features = false
|
|
|
|
[dependencies.async-trait]
|
|
version = "0.1"
|
|
default-features = false
|
|
|
|
[dependencies.bigdecimal]
|
|
version = "0.4"
|
|
features = ["std"]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.chrono]
|
|
version = "0.4.30"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.derive-where]
|
|
version = "1.6.1"
|
|
|
|
[dependencies.derive_more]
|
|
version = "2"
|
|
features = ["debug"]
|
|
|
|
[dependencies.futures-util]
|
|
version = "0.3"
|
|
features = ["std"]
|
|
default-features = false
|
|
|
|
[dependencies.inventory]
|
|
version = "0.3"
|
|
optional = true
|
|
|
|
[dependencies.ipnetwork]
|
|
version = "0.21"
|
|
features = ["serde"]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.itertools]
|
|
version = "0.14.0"
|
|
|
|
[dependencies.log]
|
|
version = "0.4"
|
|
default-features = false
|
|
|
|
[dependencies.mac_address]
|
|
version = "1.1"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.ouroboros]
|
|
version = "0.18"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.pgvector]
|
|
version = "~0.4"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.rust_decimal]
|
|
version = "1"
|
|
features = ["std"]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.sea-orm-arrow]
|
|
version = "2.0.0-rc"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.sea-orm-macros]
|
|
version = "~2.0.0"
|
|
features = [
|
|
"async",
|
|
"strum",
|
|
]
|
|
default-features = false
|
|
|
|
[dependencies.sea-query]
|
|
version = "~1.0.0"
|
|
features = [
|
|
"thread-safe",
|
|
"hashable-value",
|
|
"backend-mysql",
|
|
"backend-postgres",
|
|
"backend-sqlite",
|
|
"sea-orm",
|
|
]
|
|
default-features = false
|
|
|
|
[dependencies.sea-query-sqlx]
|
|
version = "0.9"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.sea-schema]
|
|
version = "0.18.1"
|
|
features = [
|
|
"discovery",
|
|
"writer",
|
|
"probe",
|
|
]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.serde]
|
|
version = "1.0"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.serde_json]
|
|
version = "1.0"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.sqlx]
|
|
version = "0.9.0"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.sqlx-core]
|
|
version = "0.9.0"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.strum]
|
|
version = "0.28"
|
|
default-features = false
|
|
|
|
[dependencies.thiserror]
|
|
version = "2"
|
|
default-features = false
|
|
|
|
[dependencies.time]
|
|
version = "0.3.36"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.tracing]
|
|
version = "0.1"
|
|
features = [
|
|
"attributes",
|
|
"log",
|
|
]
|
|
default-features = false
|
|
|
|
[dependencies.url]
|
|
version = "2.2"
|
|
default-features = false
|
|
|
|
[dependencies.uuid]
|
|
version = "1"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dev-dependencies.dotenv]
|
|
version = "0.15"
|
|
|
|
[dev-dependencies.maplit]
|
|
version = "1"
|
|
|
|
[dev-dependencies.pretty_assertions]
|
|
version = "0.7"
|
|
|
|
[dev-dependencies.smol]
|
|
version = "1.2"
|
|
|
|
[dev-dependencies.smol-potat]
|
|
version = "1.1"
|
|
|
|
[dev-dependencies.time]
|
|
version = "0.3.36"
|
|
features = ["macros"]
|
|
|
|
[dev-dependencies.tokio]
|
|
version = "1.6"
|
|
features = ["full"]
|
|
|
|
[dev-dependencies.tracing-subscriber]
|
|
version = "0.3.17"
|
|
features = ["env-filter"]
|
|
|
|
[dev-dependencies.uuid]
|
|
version = "1"
|
|
features = ["v4"]
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.web-time]
|
|
version = "1.1.0"
|
|
default-features = false
|