Remove `bson-uuid` feature #1032

This commit is contained in:
Sunli 2022-09-01 22:50:07 +08:00
parent a50f65b920
commit ee89321b57
2 changed files with 5 additions and 5 deletions

View File

@ -56,7 +56,10 @@ thiserror = "1.0.24"
base64 = "0.13.0"
# 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 = [
"clock",
"std",

View File

@ -1,8 +1,6 @@
#[cfg(feature = "chrono")]
use bson::DateTime as UtcDateTime;
#[cfg(feature = "bson-uuid")]
use bson::Uuid;
use bson::{oid::ObjectId, Bson, Document};
use bson::{oid::ObjectId, Bson, Document, Uuid};
#[cfg(feature = "chrono")]
use chrono::{DateTime, Utc};
@ -22,7 +20,6 @@ impl ScalarType for ObjectId {
}
}
#[cfg(feature = "bson-uuid")]
#[Scalar(internal, name = "UUID")]
impl ScalarType for Uuid {
fn parse(value: Value) -> InputValueResult<Self> {