mirror of
https://github.com/stoatchat/iso8601-timestamp.git
synced 2026-07-01 21:45:22 -04:00
Less STD
This commit is contained in:
+2
-2
@@ -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
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user