Cargo.toml: Overwrite the log crate
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
diff --git a/Cargo.toml b/Cargo.toml
index 62b382c..caeae02 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -30,6 +30,12 @@
subtle = { version = "2.3.0", default-features = false, features = ["i128"] }
generic-array = { version = "0.14.3" }
+# We need to override this to allow builds for targets that don't support atomics.
+# Once a version newer then 0.4.11 is released we can update to use that.
+# See: https://github.com/rust-lang/log/releases
+[patch.crates-io]
+log = { git = "https://github.com/rust-lang/log.git", branch = "master" }
+
[[example]]
name = "alloc_error"
path = "examples-features/alloc_error.rs"