Add support to jiff Date / DateTime / Time

This commit is contained in:
gwenn 2024-07-27 10:22:46 +02:00
parent b5efc6a02b
commit 377cf5730b
2 changed files with 19 additions and 3 deletions

View File

@ -47,7 +47,10 @@ trace = []
release_memory = [] release_memory = []
bundled = ["libsqlite3-sys/bundled", "modern_sqlite"] bundled = ["libsqlite3-sys/bundled", "modern_sqlite"]
bundled-sqlcipher = ["libsqlite3-sys/bundled-sqlcipher", "bundled"] bundled-sqlcipher = ["libsqlite3-sys/bundled-sqlcipher", "bundled"]
bundled-sqlcipher-vendored-openssl = ["libsqlite3-sys/bundled-sqlcipher-vendored-openssl", "bundled-sqlcipher"] bundled-sqlcipher-vendored-openssl = [
"libsqlite3-sys/bundled-sqlcipher-vendored-openssl",
"bundled-sqlcipher",
]
buildtime_bindgen = ["libsqlite3-sys/buildtime_bindgen"] buildtime_bindgen = ["libsqlite3-sys/buildtime_bindgen"]
limits = [] limits = []
loadable_extension = ["libsqlite3-sys/loadable_extension"] loadable_extension = ["libsqlite3-sys/loadable_extension"]
@ -97,6 +100,7 @@ modern-full = [
"functions", "functions",
"hooks", "hooks",
"i128_blob", "i128_blob",
"jiff",
"limits", "limits",
"load_extension", "load_extension",
"serde_json", "serde_json",
@ -113,10 +117,19 @@ modern-full = [
bundled-full = ["modern-full", "bundled"] bundled-full = ["modern-full", "bundled"]
[dependencies] [dependencies]
time = { version = "0.3.36", features = ["formatting", "macros", "parsing"], optional = true } jiff = { version = "0.1", optional = true, default-features = false, features = [
"std",
] }
time = { version = "0.3.36", features = [
"formatting",
"macros",
"parsing",
], optional = true }
bitflags = "2.6.0" bitflags = "2.6.0"
hashlink = "0.9" hashlink = "0.9"
chrono = { version = "0.4.38", optional = true, default-features = false, features = ["clock"] } chrono = { version = "0.4.38", optional = true, default-features = false, features = [
"clock",
] }
serde_json = { version = "1.0", optional = true } serde_json = { version = "1.0", optional = true }
csv = { version = "1.1", optional = true } csv = { version = "1.1", optional = true }
url = { version = "2.1", optional = true } url = { version = "2.1", optional = true }

View File

@ -81,6 +81,9 @@ use std::fmt;
#[cfg_attr(docsrs, doc(cfg(feature = "chrono")))] #[cfg_attr(docsrs, doc(cfg(feature = "chrono")))]
mod chrono; mod chrono;
mod from_sql; mod from_sql;
#[cfg(feature = "jiff")]
#[cfg_attr(docsrs, doc(cfg(feature = "jiff")))]
mod jiff;
#[cfg(feature = "serde_json")] #[cfg(feature = "serde_json")]
#[cfg_attr(docsrs, doc(cfg(feature = "serde_json")))] #[cfg_attr(docsrs, doc(cfg(feature = "serde_json")))]
mod serde_json; mod serde_json;