blob: 857bb869b3fc336b54b28e1f11d1451bfbcf6f6f [file] [log] [blame]
Joel Galenson8b0df7f2020-07-28 13:34:02 -07001[package]
2name = "rusqlite"
Haibo Huanga7ec67b2020-12-05 00:04:04 -08003version = "0.24.2"
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
14[badges]
15travis-ci = { repository = "rusqlite/rusqlite" }
16appveyor = { repository = "rusqlite/rusqlite" }
17codecov = { repository = "rusqlite/rusqlite" }
18maintenance = { status = "actively-developed" }
19
20[lib]
21name = "rusqlite"
22
23[workspace]
24members = ["libsqlite3-sys"]
25
26[features]
27load_extension = []
28# hot-backup interface: 3.6.11 (2009-02-18)
29backup = ["libsqlite3-sys/min_sqlite_version_3_6_23"]
30# sqlite3_blob_reopen: 3.7.4
31blob = ["libsqlite3-sys/min_sqlite_version_3_7_7"]
32collation = []
33# sqlite3_create_function_v2: 3.7.3 (2010-10-08)
34functions = ["libsqlite3-sys/min_sqlite_version_3_7_7"]
35# sqlite3_log: 3.6.23 (2010-03-09)
36trace = ["libsqlite3-sys/min_sqlite_version_3_6_23"]
37bundled = ["libsqlite3-sys/bundled", "modern_sqlite"]
38buildtime_bindgen = ["libsqlite3-sys/buildtime_bindgen"]
39limits = []
40hooks = []
41i128_blob = ["byteorder"]
42sqlcipher = ["libsqlite3-sys/sqlcipher"]
43unlock_notify = ["libsqlite3-sys/unlock_notify"]
44# xSavepoint, xRelease and xRollbackTo: 3.7.7 (2011-06-23)
45vtab = ["libsqlite3-sys/min_sqlite_version_3_7_7", "lazy_static"]
46csvtab = ["csv", "vtab"]
47# pointer passing interfaces: 3.20.0
48array = ["vtab"]
49# session extension: 3.13.0
50session = ["libsqlite3-sys/session", "hooks"]
51# window functions: 3.25.0
52window = ["functions"]
53# 3.9.0
54series = ["vtab"]
55# check for invalid query.
56extra_check = []
57modern_sqlite = ["libsqlite3-sys/bundled_bindings"]
58in_gecko = ["modern_sqlite", "libsqlite3-sys/in_gecko"]
59bundled-windows = ["libsqlite3-sys/bundled-windows"]
60# Build bundled sqlite with -fsanitize=address
61with-asan = ["libsqlite3-sys/with-asan"]
Haibo Huangb5372b72020-08-22 02:25:09 -070062column_decltype = []
63wasm32-wasi-vfs = ["libsqlite3-sys/wasm32-wasi-vfs"]
Haibo Huanga7ec67b2020-12-05 00:04:04 -080064winsqlite3 = ["libsqlite3-sys/winsqlite3"]
Joel Galenson8b0df7f2020-07-28 13:34:02 -070065
66# Helper feature for enabling both `bundled` and most non-build-related optional
67# features or dependencies. This is useful for running tests / clippy / etc. New
68# features and optional dependencies that don't conflict with anything else
69# should be added here.
70bundled-full = [
71 "array",
72 "backup",
73 "blob",
74 "bundled",
75 "chrono",
76 "collation",
Haibo Huangb5372b72020-08-22 02:25:09 -070077 "column_decltype",
Joel Galenson8b0df7f2020-07-28 13:34:02 -070078 "csvtab",
79 "extra_check",
80 "functions",
81 "hooks",
82 "i128_blob",
83 "limits",
84 "load_extension",
85 "serde_json",
86 "series",
Haibo Huangb5372b72020-08-22 02:25:09 -070087 # time v0.2 does not work with tarpaulin v0.14.0. See time-rs/time#265.
88 # Re-enable when time v0.3 is released with the fix.
89 # "time",
Joel Galenson8b0df7f2020-07-28 13:34:02 -070090 "trace",
91 "unlock_notify",
92 "url",
93 "uuid",
94 "vtab",
95 "window",
96]
97
98[dependencies]
Haibo Huangb5372b72020-08-22 02:25:09 -070099time = { version = "0.2", optional = true }
Haibo Huanga7ec67b2020-12-05 00:04:04 -0800100bitflags = "1.2"
101hashlink = "0.6"
Joel Galenson8b0df7f2020-07-28 13:34:02 -0700102chrono = { version = "0.4", optional = true }
103serde_json = { version = "1.0", optional = true }
Haibo Huanga7ec67b2020-12-05 00:04:04 -0800104csv = { version = "1.1", optional = true }
105url = { version = "2.1", optional = true }
106lazy_static = { version = "1.4", optional = true }
107byteorder = { version = "1.3", features = ["i128"], optional = true }
Joel Galenson8b0df7f2020-07-28 13:34:02 -0700108fallible-iterator = "0.2"
109fallible-streaming-iterator = "0.1"
Haibo Huanga7ec67b2020-12-05 00:04:04 -0800110memchr = "2.3"
Joel Galenson8b0df7f2020-07-28 13:34:02 -0700111uuid = { version = "0.8", optional = true }
Haibo Huanga7ec67b2020-12-05 00:04:04 -0800112smallvec = "1.0"
Joel Galenson8b0df7f2020-07-28 13:34:02 -0700113
114[dev-dependencies]
115doc-comment = "0.3"
116tempfile = "3.1.0"
Haibo Huanga7ec67b2020-12-05 00:04:04 -0800117lazy_static = "1.4"
118regex = "1.3"
Joel Galenson8b0df7f2020-07-28 13:34:02 -0700119uuid = { version = "0.8", features = ["v4"] }
Haibo Huanga7ec67b2020-12-05 00:04:04 -0800120unicase = "2.6.0"
Joel Galenson8b0df7f2020-07-28 13:34:02 -0700121# Use `bencher` over criterion becasue it builds much faster and we don't have
122# many benchmarks
123bencher = "0.1"
124
125[dependencies.libsqlite3-sys]
126path = "libsqlite3-sys"
Haibo Huanga7ec67b2020-12-05 00:04:04 -0800127version = "0.20.1"
Joel Galenson8b0df7f2020-07-28 13:34:02 -0700128
129[[test]]
130name = "config_log"
131harness = false
132
133[[test]]
134name = "deny_single_threaded_sqlite_config"
135
136[[test]]
137name = "vtab"
138
139[[bench]]
140name = "cache"
141harness = false
142
Haibo Huangb5372b72020-08-22 02:25:09 -0700143[[bench]]
144name = "exec"
145harness = false
146
Joel Galenson8b0df7f2020-07-28 13:34:02 -0700147[package.metadata.docs.rs]
Haibo Huanga7ec67b2020-12-05 00:04:04 -0800148features = [ "array", "backup", "blob", "chrono", "collation", "functions", "limits", "load_extension", "serde_json", "time", "trace", "url", "vtab", "window", "modern_sqlite", "column_decltype" ]
Joel Galenson8b0df7f2020-07-28 13:34:02 -0700149all-features = false
150no-default-features = true
151default-target = "x86_64-unknown-linux-gnu"
152
153[package.metadata.playground]
154features = ["bundled-full"]
155all-features = false