[package] name = "diesel" version = "2.2.6" license = "MIT OR Apache-2.0" description = "A safe, extensible ORM and Query Builder for PostgreSQL, SQLite, and MySQL" readme = "README.md" documentation = "https://docs.rs/diesel/" homepage = "https://diesel.rs" repository = "https://github.com/diesel-rs/diesel" keywords = ["orm", "database", "sql"] categories = ["database"] edition = "2021" rust-version.workspace = true include = [ "src/**/*.rs", "tests/**/*.rs", "LICENSE-*", "README.md", "src/sqlite/connection/diesel_manage_updated_at.sql", "src/migration/setup_migration_table.sql", ] [dependencies] byteorder = { version = "1.0", optional = true } chrono = { version = "0.4.20", optional = true, default-features = false, features = ["clock", "std"] } libc = { version = "0.2.0", optional = true } libsqlite3-sys = { version = ">=0.17.2, <0.31.0", optional = true, features = ["bundled_bindings"] } mysqlclient-sys = { version = ">=0.2.5, <0.5.0", optional = true } mysqlclient-src = { version = "0.1.0", optional = true } pq-sys = { version = ">=0.4.0, <0.7.0", optional = true } pq-src = { version = "0.3", optional = true } quickcheck = { version = "1.0.3", optional = true } serde_json = { version = ">=0.8.0, <2.0", optional = true } url = { version = "2.1.0", optional = true } percent-encoding = { version = "2.1.0", optional = true } uuid = { version = ">=0.7.0, <2.0.0", optional = true } ipnetwork = { version = ">=0.12.2, <0.21.0", optional = true } ipnet = { version = "2.5.0", optional = true } num-bigint = { version = ">=0.2.0, <0.5.0", optional = true } num-traits = { version = "0.2.0", optional = true } num-integer = { version = "0.1.39", optional = true } bigdecimal = { version = ">=0.0.13, < 0.5.0", optional = true } bitflags = { version = "2.0.0", optional = true } r2d2 = { version = ">= 0.8.2, < 0.9.0", optional = true } itoa = { version = "1.0.0", optional = true } time = { version = "0.3.9", optional = true, features = ["macros"] } [dependencies.diesel_derives] version = "~2.2.0" path = "../diesel_derives" [dev-dependencies] cfg-if = "1" dotenvy = "0.15" ipnetwork = ">=0.12.2, <0.21.0" quickcheck = "1.0.3" tempfile = "3.10.1" [features] default = ["with-deprecated", "32-column-tables"] extras = ["chrono", "time", "serde_json", "uuid", "network-address", "numeric", "r2d2"] unstable = ["diesel_derives/nightly"] large-tables = ["32-column-tables"] huge-tables = ["64-column-tables"] 32-column-tables = ["diesel_derives/32-column-tables"] 64-column-tables = ["32-column-tables", "diesel_derives/64-column-tables"] 128-column-tables = ["64-column-tables", "diesel_derives/128-column-tables"] postgres = ["dep:pq-sys", "postgres_backend"] sqlite = ["dep:libsqlite3-sys", "diesel_derives/sqlite", "time?/formatting", "time?/parsing"] mysql = ["dep:mysqlclient-sys", "dep:url", "dep:percent-encoding", "dep:bitflags", "mysql_backend"] without-deprecated = ["diesel_derives/without-deprecated"] with-deprecated = ["diesel_derives/with-deprecated"] network-address = ["dep:ipnetwork", "dep:libc"] ipnet-address = ["dep:ipnet", "dep:libc"] numeric = ["dep:num-bigint", "dep:bigdecimal", "dep:num-traits", "dep:num-integer"] postgres_backend = ["diesel_derives/postgres", "dep:bitflags", "dep:byteorder", "dep:itoa"] mysql_backend = ["diesel_derives/mysql", "dep:byteorder"] returning_clauses_for_sqlite_3_35 = [] i-implement-a-third-party-backend-and-opt-into-breaking-changes = [] r2d2 = ["diesel_derives/r2d2", "dep:r2d2"] chrono = ["diesel_derives/chrono", "dep:chrono"] time = ["diesel_derives/time", "dep:time"] __with_asan_tests = [ "libsqlite3-sys?/bundled", "libsqlite3-sys?/with-asan", "pq-sys?/bundled", "pq-src?/with-asan", "mysqlclient-sys?/bundled", "mysqlclient-src?/with-asan", ] [package.metadata.docs.rs] features = ["postgres", "mysql", "sqlite", "extras"] no-default-features = true rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"]