From ef7259b185e6723790d64ec48ae58fc05f140eb0 Mon Sep 17 00:00:00 2001 From: Kyle Fleming Date: Fri, 7 Aug 2020 14:59:57 -0700 Subject: [PATCH] [MC-1766] Use mobilecoinofficial/serde_cbor fork (#356) --- Cargo.lock | 3 +-- Cargo.toml | 5 +++++ consensus/enclave/trusted/Cargo.lock | 6 +++--- consensus/enclave/trusted/Cargo.toml | 5 +++++ 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5a8fab1ad3..8e04cb29fa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4860,8 +4860,7 @@ dependencies = [ [[package]] name = "serde_cbor" version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e18acfa2f90e8b735b2836ab8d538de304cbb6729a7360729ea5a895d15a622" +source = "git+https://github.com/mobilecoinofficial/cbor?rev=4c886a7c1d523aae1ec4aa7386f402cb2f4341b5#4c886a7c1d523aae1ec4aa7386f402cb2f4341b5" dependencies = [ "half", "serde", diff --git a/Cargo.toml b/Cargo.toml index 98e27158d7..40ea31e2c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -116,3 +116,8 @@ console = { git = "https://github.com/mitsuhiko/console", rev = "1307823" } # Override lmdb-rkv for a necessary bugfix (see https://github.com/mozilla/lmdb-rs/pull/80) lmdb-rkv = { git = "https://github.com/mozilla/lmdb-rs", rev = "df1c2f5" } + +# Fixes the following: +# * Allow enabling `serde/std` without also requiring `serde_cbor/std` to be enabled. +# See: https://github.com/pyfisch/cbor/pull/198 +serde_cbor = { git = "https://github.com/mobilecoinofficial/cbor", rev = "4c886a7c1d523aae1ec4aa7386f402cb2f4341b5" } diff --git a/consensus/enclave/trusted/Cargo.lock b/consensus/enclave/trusted/Cargo.lock index 3477541fe7..b0abd1b5f0 100644 --- a/consensus/enclave/trusted/Cargo.lock +++ b/consensus/enclave/trusted/Cargo.lock @@ -1147,7 +1147,7 @@ version = "0.5.0" dependencies = [ "prost 0.6.1 (git+https://github.com/danburkert/prost?rev=6113789f70b69709820becba4242824b4fb3ffec)", "serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_cbor 0.11.1 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_cbor 0.11.1 (git+https://github.com/mobilecoinofficial/cbor?rev=4c886a7c1d523aae1ec4aa7386f402cb2f4341b5)", ] [[package]] @@ -1382,7 +1382,7 @@ dependencies = [ [[package]] name = "serde_cbor" version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" +source = "git+https://github.com/mobilecoinofficial/cbor?rev=4c886a7c1d523aae1ec4aa7386f402cb2f4341b5#4c886a7c1d523aae1ec4aa7386f402cb2f4341b5" dependencies = [ "half 1.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1783,7 +1783,7 @@ dependencies = [ "checksum schnorrkel 0.9.1 (git+https://github.com/sugargoat/schnorrkel?rev=60eedb2d3e005539052e1a2aef864bc78323c66c)" = "" "checksum secrecy 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "9eb052cf770a381fa9a6ee63038ff9a0b11d30abb53be970672e950649ff0bfb" "checksum serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)" = "414115f25f818d7dfccec8ee535d76949ae78584fc4f79a6f45a904bf8ab4449" -"checksum serde_cbor 0.11.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1e18acfa2f90e8b735b2836ab8d538de304cbb6729a7360729ea5a895d15a622" +"checksum serde_cbor 0.11.1 (git+https://github.com/mobilecoinofficial/cbor?rev=4c886a7c1d523aae1ec4aa7386f402cb2f4341b5)" = "" "checksum serde_derive 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)" = "128f9e303a5a29922045a830221b8f78ec74a5f544944f3d5984f8ec3895ef64" "checksum sha2 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "27044adfd2e1f077f649f59deb9490d3941d674002f7d062870a60ebe9bd47a0" "checksum sha2-asm 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "817aaf5c624a7ccba7b46fb2caea2c3192831a5a2e5f66a288de21eac5e6784c" diff --git a/consensus/enclave/trusted/Cargo.toml b/consensus/enclave/trusted/Cargo.toml index d2cb434010..23c0d0c0d5 100644 --- a/consensus/enclave/trusted/Cargo.toml +++ b/consensus/enclave/trusted/Cargo.toml @@ -64,4 +64,9 @@ overflow-checks = false prost = { git = "https://github.com/danburkert/prost", rev = "6113789f70b69709820becba4242824b4fb3ffec" } prost-derive = { git = "https://github.com/danburkert/prost", rev = "6113789f70b69709820becba4242824b4fb3ffec" } +# Fixes the following: +# * Allow enabling `serde/std` without also requiring `serde_cbor/std` to be enabled. +# See: https://github.com/pyfisch/cbor/pull/198 +serde_cbor = { git = "https://github.com/mobilecoinofficial/cbor", rev = "4c886a7c1d523aae1ec4aa7386f402cb2f4341b5" } + [workspace]