This commit is contained in:
novacrazy
2025-09-23 09:24:07 -05:00
parent 0fb885b846
commit c83a989df5
2 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -23,10 +23,10 @@ diesel-pg = ["diesel", "diesel/postgres_backend"]
js = ["js-sys"]
pg = ["postgres-types", "bytes", "std", "postgres-protocol"]
rkyv_08 = ["dep:rkyv_08"]
rusqlite = ["dep:rusqlite", "std"]
rusqlite = ["dep:rusqlite"]
rand = ["dep:rand", "time/rand"]
quickcheck = ["dep:quickcheck", "time/quickcheck"]
schema = ["dep:schemars", "std"]
schema = ["dep:schemars"]
verify = [] # Verify numeric input during parsing
default = ["std", "serde"]
+7 -1
View File
@@ -674,6 +674,10 @@ mod rusqlite_impl {
use core::{error, fmt, str};
extern crate alloc;
use alloc::borrow::ToOwned;
impl error::Error for InvalidTimestamp {}
impl fmt::Display for InvalidTimestamp {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
@@ -736,7 +740,9 @@ mod rusqlite_impl {
mod schema_impl {
use schemars::{json_schema, JsonSchema, Schema, SchemaGenerator};
use std::borrow::Cow;
extern crate alloc;
use alloc::borrow::Cow;
use super::Timestamp;