Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ axes:
- id: "extra-rust-versions"
values:
- id: "min"
display_name: "1.61 (minimum supported version)"
display_name: "1.64 (minimum supported version)"
variables:
RUST_VERSION: "1.61.0"
RUST_VERSION: "1.64.0"
MSRV: "true"
- id: "nightly"
display_name: "nightly"
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ chrono = { version = "0.4.15", features = ["std"], default-features = false, opt
rand = "0.8"
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0", features = ["preserve_order"] }
indexmap = "1.6.2"
indexmap = "2.1.0"
hex = "0.4.2"
base64 = "0.13.0"
once_cell = "1.5.1"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Note that if you are using `bson` through the `mongodb` crate, you do not need t
| `uuid-0_8` | Enable support for v0.8 of the [`uuid`](https://docs.rs/uuid/0.8) crate in the public API. | n/a | no |
| `uuid-1` | Enable support for v1.x of the [`uuid`](https://docs.rs/uuid/1.0) crate in the public API. | n/a | no |
| `serde_with` | Enable [`serde_with`](https://docs.rs/serde_with/1.x) 1.x integrations for `bson::DateTime` and `bson::Uuid`.| serde_with | no |
| `serde_with-3` | Enable [`serde_with`](https://docs.rs/serde_with/3.x) 3.x integrations for `bson::DateTime` and `bson::Uuid`. Requires Rust 1.61. | serde_with | no |
| `serde_with-3` | Enable [`serde_with`](https://docs.rs/serde_with/3.x) 3.x integrations for `bson::DateTime` and `bson::Uuid`.| serde_with | no |
## Overview of the BSON Format

BSON, short for Binary JSON, is a binary-encoded serialization of JSON-like documents.
Expand Down Expand Up @@ -257,7 +257,7 @@ This crate compiles to the `wasm32-unknown-unknown` target; when doing so, the `

## Minimum supported Rust version (MSRV)

The MSRV for this crate is currently 1.61.0. This will be rarely be increased, and if it ever is,
The MSRV for this crate is currently 1.64.0. This will be rarely be increased, and if it ever is,
it will only happen in a minor or major version release.

## Contributing
Expand Down
2 changes: 1 addition & 1 deletion clippy.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
msrv = "1.61.0"
msrv = "1.64.0"
9 changes: 2 additions & 7 deletions src/bson.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use crate::{
};

/// Possible BSON value types.
#[derive(Clone, PartialEq)]
#[derive(Clone, Default, PartialEq)]
pub enum Bson {
/// 64-bit binary floating point
Double(f64),
Expand All @@ -50,6 +50,7 @@ pub enum Bson {
/// Boolean value
Boolean(bool),
/// Null value
#[default]
Null,
/// Regular expression
RegularExpression(Regex),
Expand Down Expand Up @@ -86,12 +87,6 @@ pub enum Bson {
/// Alias for `Vec<Bson>`.
pub type Array = Vec<Bson>;

impl Default for Bson {
fn default() -> Self {
Bson::Null
}
}

impl Display for Bson {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
match *self {
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
//!
//! ## Installation
//! ### Requirements
//! - Rust 1.61+
//! - Rust 1.64+
//!
//! ### Importing
//! This crate is available on [crates.io](https://crates.io/crates/bson). To use it in your application,
Expand Down Expand Up @@ -267,7 +267,7 @@
//!
//! ## Minimum supported Rust version (MSRV)
//!
//! The MSRV for this crate is currently 1.61.0. This will be rarely be increased, and if it ever is,
//! The MSRV for this crate is currently 1.64.0. This will be rarely be increased, and if it ever is,
//! it will only happen in a minor or major version release.

#![allow(clippy::cognitive_complexity, clippy::derive_partial_eq_without_eq)]
Expand Down