Remove bson-uuid
feature #1032
This commit is contained in:
parent
a50f65b920
commit
ee89321b57
|
@ -56,7 +56,10 @@ thiserror = "1.0.24"
|
||||||
base64 = "0.13.0"
|
base64 = "0.13.0"
|
||||||
|
|
||||||
# Feature optional dependencies
|
# Feature optional dependencies
|
||||||
bson = { version = "2.0.0", optional = true, features = ["chrono-0_4"] }
|
bson = { version = "2.4.0", optional = true, features = [
|
||||||
|
"chrono-0_4",
|
||||||
|
"uuid-1",
|
||||||
|
] }
|
||||||
chrono = { version = "0.4.19", optional = true, default-features = false, features = [
|
chrono = { version = "0.4.19", optional = true, default-features = false, features = [
|
||||||
"clock",
|
"clock",
|
||||||
"std",
|
"std",
|
||||||
|
|
5
src/types/external/bson.rs
vendored
5
src/types/external/bson.rs
vendored
|
@ -1,8 +1,6 @@
|
||||||
#[cfg(feature = "chrono")]
|
#[cfg(feature = "chrono")]
|
||||||
use bson::DateTime as UtcDateTime;
|
use bson::DateTime as UtcDateTime;
|
||||||
#[cfg(feature = "bson-uuid")]
|
use bson::{oid::ObjectId, Bson, Document, Uuid};
|
||||||
use bson::Uuid;
|
|
||||||
use bson::{oid::ObjectId, Bson, Document};
|
|
||||||
#[cfg(feature = "chrono")]
|
#[cfg(feature = "chrono")]
|
||||||
use chrono::{DateTime, Utc};
|
use chrono::{DateTime, Utc};
|
||||||
|
|
||||||
|
@ -22,7 +20,6 @@ impl ScalarType for ObjectId {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "bson-uuid")]
|
|
||||||
#[Scalar(internal, name = "UUID")]
|
#[Scalar(internal, name = "UUID")]
|
||||||
impl ScalarType for Uuid {
|
impl ScalarType for Uuid {
|
||||||
fn parse(value: Value) -> InputValueResult<Self> {
|
fn parse(value: Value) -> InputValueResult<Self> {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user