Skip to content

Commit

Permalink
Remove bson-uuid feature #875
Browse files Browse the repository at this point in the history
  • Loading branch information
sunli829 committed Sep 1, 2022
1 parent 873c085 commit de3bcf9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 1 addition & 4 deletions src/types/external/bson.rs
Original file line number Diff line number Diff line change
@@ -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};

Expand All @@ -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> {
Expand Down

0 comments on commit de3bcf9

Please sign in to comment.