2014-10-20 07:56:41 +08:00
|
|
|
[package]
|
|
|
|
name = "rusqlite"
|
2022-03-07 13:25:10 +08:00
|
|
|
# Note: Update version in README.md when you change this.
|
2023-03-26 16:24:57 +08:00
|
|
|
version = "0.29.0"
|
2020-04-16 12:07:23 +08:00
|
|
|
authors = ["The rusqlite developers"]
|
2022-12-10 03:16:38 +08:00
|
|
|
edition = "2021"
|
2014-11-21 22:48:57 +08:00
|
|
|
description = "Ergonomic wrapper for SQLite"
|
2020-04-16 12:07:23 +08:00
|
|
|
repository = "https://github.com/rusqlite/rusqlite"
|
2023-05-21 06:28:29 +08:00
|
|
|
documentation = "https://docs.rs/rusqlite/"
|
2014-11-21 22:48:57 +08:00
|
|
|
readme = "README.md"
|
|
|
|
keywords = ["sqlite", "database", "ffi"]
|
|
|
|
license = "MIT"
|
2017-01-21 04:16:26 +08:00
|
|
|
categories = ["database"]
|
|
|
|
|
2022-01-08 19:42:42 +08:00
|
|
|
exclude = [
|
|
|
|
"/.github/*",
|
|
|
|
"/.gitattributes",
|
|
|
|
"/appveyor.yml",
|
|
|
|
"/Changelog.md",
|
|
|
|
"/clippy.toml",
|
|
|
|
"/codecov.yml",
|
|
|
|
]
|
|
|
|
|
2017-01-21 04:16:26 +08:00
|
|
|
[badges]
|
2020-04-16 12:07:23 +08:00
|
|
|
appveyor = { repository = "rusqlite/rusqlite" }
|
2020-04-16 16:07:02 +08:00
|
|
|
codecov = { repository = "rusqlite/rusqlite" }
|
2018-08-26 13:23:41 +08:00
|
|
|
maintenance = { status = "actively-developed" }
|
2014-10-20 07:56:41 +08:00
|
|
|
|
|
|
|
[lib]
|
|
|
|
name = "rusqlite"
|
2014-11-15 04:02:27 +08:00
|
|
|
|
2019-02-02 18:00:12 +08:00
|
|
|
[workspace]
|
|
|
|
members = ["libsqlite3-sys"]
|
|
|
|
|
2015-02-24 08:52:48 +08:00
|
|
|
[features]
|
2016-02-13 10:51:24 +08:00
|
|
|
load_extension = []
|
2018-09-05 00:58:17 +08:00
|
|
|
# hot-backup interface: 3.6.11 (2009-02-18)
|
2022-08-23 00:38:59 +08:00
|
|
|
backup = []
|
2018-09-05 00:58:17 +08:00
|
|
|
# sqlite3_blob_reopen: 3.7.4
|
2022-08-23 00:38:59 +08:00
|
|
|
blob = []
|
2019-06-18 01:20:53 +08:00
|
|
|
collation = []
|
2018-09-05 00:58:17 +08:00
|
|
|
# sqlite3_create_function_v2: 3.7.3 (2010-10-08)
|
2022-08-23 00:38:59 +08:00
|
|
|
functions = []
|
2018-09-05 00:58:17 +08:00
|
|
|
# sqlite3_log: 3.6.23 (2010-03-09)
|
2022-08-23 00:38:59 +08:00
|
|
|
trace = []
|
2022-04-17 18:00:15 +08:00
|
|
|
# sqlite3_db_release_memory: 3.7.10 (2012-01-16)
|
2022-08-23 00:38:59 +08:00
|
|
|
release_memory = []
|
2020-01-15 00:11:36 +08:00
|
|
|
bundled = ["libsqlite3-sys/bundled", "modern_sqlite"]
|
2021-06-03 03:07:56 +08:00
|
|
|
bundled-sqlcipher = ["libsqlite3-sys/bundled-sqlcipher", "bundled"]
|
|
|
|
bundled-sqlcipher-vendored-openssl = ["libsqlite3-sys/bundled-sqlcipher-vendored-openssl", "bundled-sqlcipher"]
|
2017-03-04 03:57:40 +08:00
|
|
|
buildtime_bindgen = ["libsqlite3-sys/buildtime_bindgen"]
|
2017-02-04 18:01:38 +08:00
|
|
|
limits = []
|
2023-07-09 16:39:21 +08:00
|
|
|
loadable_extension = ["libsqlite3-sys/loadable_extension"]
|
2017-04-26 02:58:22 +08:00
|
|
|
hooks = []
|
2022-01-03 04:41:50 +08:00
|
|
|
i128_blob = []
|
2017-10-24 16:54:48 +08:00
|
|
|
sqlcipher = ["libsqlite3-sys/sqlcipher"]
|
2017-09-21 03:28:19 +08:00
|
|
|
unlock_notify = ["libsqlite3-sys/unlock_notify"]
|
2018-09-05 00:58:17 +08:00
|
|
|
# xSavepoint, xRelease and xRollbackTo: 3.7.7 (2011-06-23)
|
2022-08-23 00:38:59 +08:00
|
|
|
vtab = []
|
2018-05-01 04:09:41 +08:00
|
|
|
csvtab = ["csv", "vtab"]
|
2018-06-10 18:16:54 +08:00
|
|
|
# pointer passing interfaces: 3.20.0
|
2018-08-31 03:15:38 +08:00
|
|
|
array = ["vtab"]
|
2019-01-13 19:46:19 +08:00
|
|
|
# session extension: 3.13.0
|
2019-11-01 16:57:56 +08:00
|
|
|
session = ["libsqlite3-sys/session", "hooks"]
|
2019-06-26 02:33:49 +08:00
|
|
|
# window functions: 3.25.0
|
|
|
|
window = ["functions"]
|
2019-07-12 01:21:54 +08:00
|
|
|
# 3.9.0
|
|
|
|
series = ["vtab"]
|
2019-08-27 02:21:23 +08:00
|
|
|
# check for invalid query.
|
|
|
|
extra_check = []
|
2022-08-21 17:20:04 +08:00
|
|
|
# ]3.14.0, last]
|
2020-01-15 00:11:36 +08:00
|
|
|
modern_sqlite = ["libsqlite3-sys/bundled_bindings"]
|
2020-04-03 00:12:36 +08:00
|
|
|
in_gecko = ["modern_sqlite", "libsqlite3-sys/in_gecko"]
|
2020-04-07 08:52:12 +08:00
|
|
|
bundled-windows = ["libsqlite3-sys/bundled-windows"]
|
2020-04-16 17:38:40 +08:00
|
|
|
# Build bundled sqlite with -fsanitize=address
|
|
|
|
with-asan = ["libsqlite3-sys/with-asan"]
|
2020-06-01 05:02:18 +08:00
|
|
|
column_decltype = []
|
2020-07-21 02:04:55 +08:00
|
|
|
wasm32-wasi-vfs = ["libsqlite3-sys/wasm32-wasi-vfs"]
|
2022-04-03 02:42:28 +08:00
|
|
|
# Note: doesn't support 32-bit.
|
2020-08-18 06:33:50 +08:00
|
|
|
winsqlite3 = ["libsqlite3-sys/winsqlite3"]
|
2023-06-05 01:08:49 +08:00
|
|
|
# 3.23.0
|
|
|
|
serialize = ["modern_sqlite"]
|
2015-02-24 08:52:48 +08:00
|
|
|
|
2021-06-03 03:07:56 +08:00
|
|
|
# Helper feature for enabling most non-build-related optional features
|
|
|
|
# or dependencies (except `session`). This is useful for running tests / clippy
|
|
|
|
# / etc. New features and optional dependencies that don't conflict with anything
|
|
|
|
# else should be added here.
|
|
|
|
modern-full = [
|
2020-04-08 00:01:23 +08:00
|
|
|
"array",
|
|
|
|
"backup",
|
|
|
|
"blob",
|
2021-06-03 03:07:56 +08:00
|
|
|
"modern_sqlite",
|
2020-04-08 00:01:23 +08:00
|
|
|
"chrono",
|
|
|
|
"collation",
|
2020-06-01 05:02:18 +08:00
|
|
|
"column_decltype",
|
2020-04-08 00:01:23 +08:00
|
|
|
"csvtab",
|
|
|
|
"extra_check",
|
|
|
|
"functions",
|
|
|
|
"hooks",
|
|
|
|
"i128_blob",
|
|
|
|
"limits",
|
|
|
|
"load_extension",
|
|
|
|
"serde_json",
|
|
|
|
"series",
|
2021-06-12 01:59:09 +08:00
|
|
|
"time",
|
2020-04-08 00:01:23 +08:00
|
|
|
"trace",
|
|
|
|
"unlock_notify",
|
|
|
|
"url",
|
|
|
|
"uuid",
|
|
|
|
"vtab",
|
|
|
|
"window",
|
|
|
|
]
|
|
|
|
|
2021-06-03 03:07:56 +08:00
|
|
|
bundled-full = ["modern-full", "bundled"]
|
|
|
|
|
2014-11-21 22:52:44 +08:00
|
|
|
[dependencies]
|
2021-07-31 03:31:52 +08:00
|
|
|
time = { version = "0.3.0", features = ["formatting", "macros", "parsing"], optional = true }
|
2023-03-14 01:56:33 +08:00
|
|
|
bitflags = "2.0"
|
2022-03-17 01:24:27 +08:00
|
|
|
hashlink = "0.8"
|
2021-10-17 22:56:47 +08:00
|
|
|
chrono = { version = "0.4", optional = true, default-features = false, features = ["clock"] }
|
2017-04-22 01:47:47 +08:00
|
|
|
serde_json = { version = "1.0", optional = true }
|
2020-10-05 02:44:49 +08:00
|
|
|
csv = { version = "1.1", optional = true }
|
|
|
|
url = { version = "2.1", optional = true }
|
2023-05-29 13:08:49 +08:00
|
|
|
fallible-iterator = "0.3"
|
2019-02-03 21:01:42 +08:00
|
|
|
fallible-streaming-iterator = "0.1"
|
2022-04-20 23:08:00 +08:00
|
|
|
uuid = { version = "1.0", optional = true }
|
2021-04-03 17:04:43 +08:00
|
|
|
smallvec = "1.6.1"
|
2023-06-10 18:05:55 +08:00
|
|
|
rusqlite-macros = { path = "rusqlite-macros", version = "0.1.0", optional = true }
|
2015-02-24 04:22:34 +08:00
|
|
|
|
2015-05-05 03:22:11 +08:00
|
|
|
[dev-dependencies]
|
2020-03-08 22:36:56 +08:00
|
|
|
doc-comment = "0.3"
|
2019-11-22 19:08:12 +08:00
|
|
|
tempfile = "3.1.0"
|
2020-10-05 02:44:49 +08:00
|
|
|
lazy_static = "1.4"
|
2022-05-26 13:34:50 +08:00
|
|
|
regex = "1.5.5"
|
2022-04-20 23:08:00 +08:00
|
|
|
uuid = { version = "1.0", features = ["v4"] }
|
2020-10-05 02:44:49 +08:00
|
|
|
unicase = "2.6.0"
|
2021-05-02 19:46:04 +08:00
|
|
|
# Use `bencher` over criterion because it builds much faster and we don't have
|
2020-04-07 23:33:17 +08:00
|
|
|
# many benchmarks
|
|
|
|
bencher = "0.1"
|
2015-05-05 03:22:11 +08:00
|
|
|
|
2015-02-24 04:22:34 +08:00
|
|
|
[dependencies.libsqlite3-sys]
|
|
|
|
path = "libsqlite3-sys"
|
2023-03-26 16:24:57 +08:00
|
|
|
version = "0.26.0"
|
2015-12-01 04:29:50 +08:00
|
|
|
|
|
|
|
[[test]]
|
|
|
|
name = "config_log"
|
|
|
|
harness = false
|
2015-12-17 12:33:56 +08:00
|
|
|
|
|
|
|
[[test]]
|
|
|
|
name = "deny_single_threaded_sqlite_config"
|
2017-06-10 02:04:28 +08:00
|
|
|
|
2018-07-14 17:01:19 +08:00
|
|
|
[[test]]
|
|
|
|
name = "vtab"
|
|
|
|
|
2020-04-07 23:33:17 +08:00
|
|
|
[[bench]]
|
|
|
|
name = "cache"
|
|
|
|
harness = false
|
|
|
|
|
2020-06-27 15:54:33 +08:00
|
|
|
[[bench]]
|
|
|
|
name = "exec"
|
|
|
|
harness = false
|
|
|
|
|
2023-07-14 16:18:29 +08:00
|
|
|
[[example]]
|
|
|
|
name = "loadable_extension"
|
|
|
|
crate-type = ["cdylib"]
|
|
|
|
required-features = ["loadable_extension", "modern_sqlite", "functions", "vtab", "trace"]
|
|
|
|
|
2023-07-14 17:07:59 +08:00
|
|
|
[[example]]
|
|
|
|
name = "load_extension"
|
|
|
|
required-features = ["load_extension", "bundled", "functions", "vtab", "trace"]
|
|
|
|
|
2017-06-10 02:04:28 +08:00
|
|
|
[package.metadata.docs.rs]
|
2023-06-10 18:14:41 +08:00
|
|
|
features = ["modern-full", "rusqlite-macros"]
|
2017-06-10 02:04:28 +08:00
|
|
|
all-features = false
|
|
|
|
no-default-features = true
|
|
|
|
default-target = "x86_64-unknown-linux-gnu"
|
2021-06-13 15:17:35 +08:00
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
2020-03-08 20:07:44 +08:00
|
|
|
|
|
|
|
[package.metadata.playground]
|
2020-04-08 00:01:23 +08:00
|
|
|
features = ["bundled-full"]
|
2020-03-08 20:07:44 +08:00
|
|
|
all-features = false
|