blob: 6ab1a7e012464c845eea1eeb7bfccf8d117849ae [file] [log] [blame]
Joel Galenson8b0df7f2020-07-28 13:34:02 -07001[package]
2name = "rusqlite"
David LeGare82c86ae2022-03-02 16:21:10 +00003version = "0.27.0"
Joel Galenson8b0df7f2020-07-28 13:34:02 -07004authors = ["The rusqlite developers"]
5edition = "2018"
6description = "Ergonomic wrapper for SQLite"
7repository = "https://github.com/rusqlite/rusqlite"
8documentation = "http://docs.rs/rusqlite/"
9readme = "README.md"
10keywords = ["sqlite", "database", "ffi"]
11license = "MIT"
12categories = ["database"]
13
David LeGare82c86ae2022-03-02 16:21:10 +000014exclude = [
15 "/.github/*",
16 "/.gitattributes",
17 "/appveyor.yml",
18 "/Changelog.md",
19 "/clippy.toml",
20 "/codecov.yml",
21]
22
Joel Galenson8b0df7f2020-07-28 13:34:02 -070023[badges]
Joel Galenson8b0df7f2020-07-28 13:34:02 -070024appveyor = { repository = "rusqlite/rusqlite" }
25codecov = { repository = "rusqlite/rusqlite" }
26maintenance = { status = "actively-developed" }
27
28[lib]
29name = "rusqlite"
30
31[workspace]
32members = ["libsqlite3-sys"]
33
34[features]
35load_extension = []
36# hot-backup interface: 3.6.11 (2009-02-18)
37backup = ["libsqlite3-sys/min_sqlite_version_3_6_23"]
38# sqlite3_blob_reopen: 3.7.4
39blob = ["libsqlite3-sys/min_sqlite_version_3_7_7"]
40collation = []
41# sqlite3_create_function_v2: 3.7.3 (2010-10-08)
42functions = ["libsqlite3-sys/min_sqlite_version_3_7_7"]
43# sqlite3_log: 3.6.23 (2010-03-09)
44trace = ["libsqlite3-sys/min_sqlite_version_3_6_23"]
45bundled = ["libsqlite3-sys/bundled", "modern_sqlite"]
David LeGare82c86ae2022-03-02 16:21:10 +000046bundled-sqlcipher = ["libsqlite3-sys/bundled-sqlcipher", "bundled"]
47bundled-sqlcipher-vendored-openssl = ["libsqlite3-sys/bundled-sqlcipher-vendored-openssl", "bundled-sqlcipher"]
Joel Galenson8b0df7f2020-07-28 13:34:02 -070048buildtime_bindgen = ["libsqlite3-sys/buildtime_bindgen"]
49limits = []
50hooks = []
David LeGare82c86ae2022-03-02 16:21:10 +000051i128_blob = []
Joel Galenson8b0df7f2020-07-28 13:34:02 -070052sqlcipher = ["libsqlite3-sys/sqlcipher"]
53unlock_notify = ["libsqlite3-sys/unlock_notify"]
54# xSavepoint, xRelease and xRollbackTo: 3.7.7 (2011-06-23)
David LeGare82c86ae2022-03-02 16:21:10 +000055vtab = ["libsqlite3-sys/min_sqlite_version_3_7_7"]
Joel Galenson8b0df7f2020-07-28 13:34:02 -070056csvtab = ["csv", "vtab"]
57# pointer passing interfaces: 3.20.0
58array = ["vtab"]
59# session extension: 3.13.0
60session = ["libsqlite3-sys/session", "hooks"]
61# window functions: 3.25.0
62window = ["functions"]
63# 3.9.0
64series = ["vtab"]
65# check for invalid query.
66extra_check = []
67modern_sqlite = ["libsqlite3-sys/bundled_bindings"]
68in_gecko = ["modern_sqlite", "libsqlite3-sys/in_gecko"]
69bundled-windows = ["libsqlite3-sys/bundled-windows"]
70# Build bundled sqlite with -fsanitize=address
71with-asan = ["libsqlite3-sys/with-asan"]
Haibo Huangb5372b72020-08-22 02:25:09 -070072column_decltype = []
73wasm32-wasi-vfs = ["libsqlite3-sys/wasm32-wasi-vfs"]
Haibo Huanga7ec67b2020-12-05 00:04:04 -080074winsqlite3 = ["libsqlite3-sys/winsqlite3"]
Joel Galenson8b0df7f2020-07-28 13:34:02 -070075
David LeGare82c86ae2022-03-02 16:21:10 +000076# Helper feature for enabling most non-build-related optional features
77# or dependencies (except `session`). This is useful for running tests / clippy
78# / etc. New features and optional dependencies that don't conflict with anything
79# else should be added here.
80modern-full = [
Joel Galenson8b0df7f2020-07-28 13:34:02 -070081 "array",
82 "backup",
83 "blob",
David LeGare82c86ae2022-03-02 16:21:10 +000084 "modern_sqlite",
Joel Galenson8b0df7f2020-07-28 13:34:02 -070085 "chrono",
86 "collation",
Haibo Huangb5372b72020-08-22 02:25:09 -070087 "column_decltype",
Joel Galenson8b0df7f2020-07-28 13:34:02 -070088 "csvtab",
89 "extra_check",
90 "functions",
91 "hooks",
92 "i128_blob",
93 "limits",
94 "load_extension",
95 "serde_json",
96 "series",
David LeGare82c86ae2022-03-02 16:21:10 +000097 "time",
Joel Galenson8b0df7f2020-07-28 13:34:02 -070098 "trace",
99 "unlock_notify",
100 "url",
101 "uuid",
102 "vtab",
103 "window",
104]
105
David LeGare82c86ae2022-03-02 16:21:10 +0000106bundled-full = ["modern-full", "bundled"]
107
Joel Galenson8b0df7f2020-07-28 13:34:02 -0700108[dependencies]
David LeGare82c86ae2022-03-02 16:21:10 +0000109time = { version = "0.3.0", features = ["formatting", "macros", "parsing"], optional = true }
Haibo Huanga7ec67b2020-12-05 00:04:04 -0800110bitflags = "1.2"
Joel Galenson570a9292021-05-19 16:59:22 -0700111hashlink = "0.7"
David LeGare82c86ae2022-03-02 16:21:10 +0000112chrono = { version = "0.4", optional = true, default-features = false, features = ["clock"] }
Joel Galenson8b0df7f2020-07-28 13:34:02 -0700113serde_json = { version = "1.0", optional = true }
Haibo Huanga7ec67b2020-12-05 00:04:04 -0800114csv = { version = "1.1", optional = true }
115url = { version = "2.1", optional = true }
116lazy_static = { version = "1.4", optional = true }
Joel Galenson8b0df7f2020-07-28 13:34:02 -0700117fallible-iterator = "0.2"
118fallible-streaming-iterator = "0.1"
Haibo Huanga7ec67b2020-12-05 00:04:04 -0800119memchr = "2.3"
Joel Galenson8b0df7f2020-07-28 13:34:02 -0700120uuid = { version = "0.8", optional = true }
Joel Galenson570a9292021-05-19 16:59:22 -0700121smallvec = "1.6.1"
Joel Galenson8b0df7f2020-07-28 13:34:02 -0700122
123[dev-dependencies]
124doc-comment = "0.3"
125tempfile = "3.1.0"
Haibo Huanga7ec67b2020-12-05 00:04:04 -0800126lazy_static = "1.4"
127regex = "1.3"
Joel Galenson8b0df7f2020-07-28 13:34:02 -0700128uuid = { version = "0.8", features = ["v4"] }
Haibo Huanga7ec67b2020-12-05 00:04:04 -0800129unicase = "2.6.0"
Joel Galenson570a9292021-05-19 16:59:22 -0700130# Use `bencher` over criterion because it builds much faster and we don't have
Joel Galenson8b0df7f2020-07-28 13:34:02 -0700131# many benchmarks
132bencher = "0.1"
133
134[dependencies.libsqlite3-sys]
135path = "libsqlite3-sys"
David LeGare82c86ae2022-03-02 16:21:10 +0000136version = "0.24.0"
Joel Galenson8b0df7f2020-07-28 13:34:02 -0700137
138[[test]]
139name = "config_log"
140harness = false
141
142[[test]]
143name = "deny_single_threaded_sqlite_config"
144
145[[test]]
146name = "vtab"
147
148[[bench]]
149name = "cache"
150harness = false
151
Haibo Huangb5372b72020-08-22 02:25:09 -0700152[[bench]]
153name = "exec"
154harness = false
155
Joel Galenson8b0df7f2020-07-28 13:34:02 -0700156[package.metadata.docs.rs]
David LeGare82c86ae2022-03-02 16:21:10 +0000157features = ["modern-full"]
Joel Galenson8b0df7f2020-07-28 13:34:02 -0700158all-features = false
159no-default-features = true
160default-target = "x86_64-unknown-linux-gnu"
David LeGare82c86ae2022-03-02 16:21:10 +0000161rustdoc-args = ["--cfg", "docsrs"]
Joel Galenson8b0df7f2020-07-28 13:34:02 -0700162
163[package.metadata.playground]
164features = ["bundled-full"]
165all-features = false