Skip to content

Commit 4521ef0

Browse files
est31zonyitoo
authored andcommitted
Update dependencies and replace try_from by std builtin (#124)
* Update rand to 0.7 * Update md5 dependency to 0.3 * Remove try_from dependency in favour of std feature This requires Rust 1.34 which is a bit recent but I haven't seen any explicit MSRV notice. * Add dependency status badge * Update serde_bytes to 0.11
1 parent dbb9b6c commit 4521ef0

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

Cargo.toml

+3-4
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,16 @@ name = "bson"
2424
byteorder = "1"
2525
chrono = "0.4"
2626
libc = "0.2"
27-
rand = "0.5"
27+
rand = "0.7"
2828
serde = "1.0"
2929
serde_json = { version = "1.0", features = ["preserve_order"] }
3030
time = "0.1"
3131
linked-hash-map = "0.5"
3232
hex = "0.3"
33-
md5 = "0.3"
34-
try_from = "0.2"
33+
md5 = "0.6"
3534
decimal = "2.0.4"
3635

3736
[dev-dependencies]
3837
assert_matches = "1.2"
3938
serde_derive = "1.0"
40-
serde_bytes = "0.10"
39+
serde_bytes = "0.11"

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![Build Status](https://img.shields.io/travis/zonyitoo/bson-rs.svg)](https://travis-ci.org/zonyitoo/bson-rs)
44
[![crates.io](https://img.shields.io/crates/v/bson.svg)](https://crates.io/crates/bson)
55
[![crates.io](https://img.shields.io/crates/l/bson.svg)](https://crates.io/crates/bson)
6+
[![dependency status](https://deps.rs/repo/github/zonyitoo/bson-rs/status.svg)](https://deps.rs/repo/github/zonyitoo/bson-rs)
67

78
Encoding and decoding support for BSON in Rust
89

src/encoder/serde.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use serde::ser::{
66
use bson::{Array, Bson, Document, TimeStamp, UtcDateTime};
77
use decimal128::Decimal128;
88
use oid::ObjectId;
9-
use try_from::TryFrom;
9+
use std::convert::TryFrom;
1010

1111
use super::{to_bson, EncoderError, EncoderResult};
1212

src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ extern crate serde;
5252
extern crate serde_json;
5353
extern crate md5;
5454
extern crate time;
55-
extern crate try_from;
5655
extern crate decimal;
5756

5857
pub use self::bson::{Array, Bson, Document, TimeStamp, UtcDateTime};

0 commit comments

Comments
 (0)