2014-10-20 07:56:41 +08:00
|
|
|
[package]
|
|
|
|
name = "rusqlite"
|
2018-10-21 21:41:25 +08:00
|
|
|
version = "0.15.0"
|
2014-10-20 07:56:41 +08:00
|
|
|
authors = ["John Gallagher <jgallagher@bignerdranch.com>"]
|
2014-11-21 22:48:57 +08:00
|
|
|
description = "Ergonomic wrapper for SQLite"
|
2015-02-24 10:54:46 +08:00
|
|
|
repository = "https://github.com/jgallagher/rusqlite"
|
2016-08-30 02:22:58 +08:00
|
|
|
documentation = "http://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"]
|
|
|
|
|
|
|
|
[badges]
|
|
|
|
travis-ci = { repository = "jgallagher/rusqlite" }
|
|
|
|
appveyor = { repository = "jgallagher/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
|
|
|
|
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)
|
|
|
|
backup = ["libsqlite3-sys/min_sqlite_version_3_6_23"]
|
|
|
|
# sqlite3_blob_reopen: 3.7.4
|
|
|
|
blob = ["libsqlite3-sys/min_sqlite_version_3_7_7"]
|
|
|
|
# sqlite3_create_function_v2: 3.7.3 (2010-10-08)
|
|
|
|
functions = ["libsqlite3-sys/min_sqlite_version_3_7_7"]
|
|
|
|
# sqlite3_log: 3.6.23 (2010-03-09)
|
2017-03-04 03:57:40 +08:00
|
|
|
trace = ["libsqlite3-sys/min_sqlite_version_3_6_23"]
|
2016-06-15 22:34:13 +08:00
|
|
|
bundled = ["libsqlite3-sys/bundled"]
|
2017-03-04 03:57:40 +08:00
|
|
|
buildtime_bindgen = ["libsqlite3-sys/buildtime_bindgen"]
|
2017-02-04 18:01:38 +08:00
|
|
|
limits = []
|
2017-04-26 02:58:22 +08:00
|
|
|
hooks = []
|
Add a feature for storing i128 as blobs.
This is behind the `i128_blob` feature.
Blobs are stored as 16 byte big-endian values, with their most significant bit
flipped. This is so that sorting, comparison, etc all work properly, even with
negative numbers. This also allows the representation to be stable across
different computers.
It's possible that the `FromSql` implementation should handle the case that the
real value is stored in an integer. I didn't do this, but would be willing to
make the change. I don't think we should store them this way though, since I
don't think users would be able to sort/compare them sanely.
Support for `u128` is not implemented, as comparison with i128 values would work
strangely. This also is consistent with `u64` not being allowed, not that I
think that would be reason enough on it's own.
The `byteorder` crate is used if this feature is flipped, as it's quite small
and implements things more or less optimally. If/when `i128::{to,from}_be_bytes`
gets stabilized (https://github.com/rust-lang/rust/issues/52963), we should
probably use that instead.
2018-10-09 03:04:07 +08:00
|
|
|
i128_blob = ["byteorder"]
|
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)
|
2018-07-15 00:47:52 +08:00
|
|
|
vtab = ["libsqlite3-sys/min_sqlite_version_3_7_7", "lazy_static"]
|
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"]
|
2015-02-24 08:52:48 +08:00
|
|
|
|
2014-11-21 22:52:44 +08:00
|
|
|
[dependencies]
|
2017-01-26 07:01:03 +08:00
|
|
|
time = "0.1.0"
|
2017-10-10 03:55:55 +08:00
|
|
|
bitflags = "1.0"
|
2016-12-04 17:17:53 +08:00
|
|
|
lru-cache = "0.1"
|
2017-10-10 03:55:55 +08:00
|
|
|
chrono = { version = "0.4", optional = true }
|
2017-04-22 01:47:47 +08:00
|
|
|
serde_json = { version = "1.0", optional = true }
|
2018-05-13 18:21:58 +08:00
|
|
|
csv = { version = "1.0", optional = true }
|
2018-07-15 00:47:52 +08:00
|
|
|
lazy_static = { version = "1.0", optional = true }
|
Add a feature for storing i128 as blobs.
This is behind the `i128_blob` feature.
Blobs are stored as 16 byte big-endian values, with their most significant bit
flipped. This is so that sorting, comparison, etc all work properly, even with
negative numbers. This also allows the representation to be stable across
different computers.
It's possible that the `FromSql` implementation should handle the case that the
real value is stored in an integer. I didn't do this, but would be willing to
make the change. I don't think we should store them this way though, since I
don't think users would be able to sort/compare them sanely.
Support for `u128` is not implemented, as comparison with i128 values would work
strangely. This also is consistent with `u64` not being allowed, not that I
think that would be reason enough on it's own.
The `byteorder` crate is used if this feature is flipped, as it's quite small
and implements things more or less optimally. If/when `i128::{to,from}_be_bytes`
gets stabilized (https://github.com/rust-lang/rust/issues/52963), we should
probably use that instead.
2018-10-09 03:04:07 +08:00
|
|
|
byteorder = { version = "1.2", features = ["i128"], optional = true }
|
2015-02-24 04:22:34 +08:00
|
|
|
|
2015-05-05 03:22:11 +08:00
|
|
|
[dev-dependencies]
|
2016-09-18 19:37:41 +08:00
|
|
|
tempdir = "0.3"
|
2018-04-07 03:37:03 +08:00
|
|
|
lazy_static = "1.0"
|
2018-05-03 00:21:35 +08:00
|
|
|
regex = "1.0"
|
2015-05-05 03:22:11 +08:00
|
|
|
|
2015-02-24 04:22:34 +08:00
|
|
|
[dependencies.libsqlite3-sys]
|
|
|
|
path = "libsqlite3-sys"
|
2018-10-21 21:41:25 +08:00
|
|
|
version = "0.10"
|
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"
|
|
|
|
|
2017-06-10 02:04:28 +08:00
|
|
|
[package.metadata.docs.rs]
|
2018-07-15 00:47:52 +08:00
|
|
|
features = [ "backup", "blob", "chrono", "functions", "limits", "load_extension", "serde_json", "trace", "vtab" ]
|
2017-06-10 02:04:28 +08:00
|
|
|
all-features = false
|
|
|
|
no-default-features = true
|
|
|
|
default-target = "x86_64-unknown-linux-gnu"
|