Commit 25d7b0fa authored by Fabio Utzig's avatar Fabio Utzig Committed by David Brown
Browse files

Update simulator dependencies

Since logging was broken due to incompatibility between log and
env_logger versions, those crates were updated to known to be compatible
versions. Update initialization of env_logger that does not return a
Result<> anymore.

Other crates were updated to remove duplicated versions as much as
possible.

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent 401d7b33
Loading
Loading
Loading
Loading
+287 −274

File changed.

Preview size limit exceeded, changes collapsed.

+6 −6
Changes for sim/Cargo.toml: 6 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -17,19 +17,19 @@ bootstrap = ["mcuboot-sys/bootstrap"]

[dependencies]
libc = "0.2.0"
rand = "0.3.0"
rand = "0.4.0"
docopt = "0.8"
serde = "1.0"
serde_derive = "1.0"
log = "0.4"
env_logger = "0.4"
env_logger = "0.5"
simflash = { path = "simflash" }
mcuboot-sys = { path = "mcuboot-sys" }
ring = { version = "0.12.1", features = ["rsa_signing"] }
untrusted = "0.5"
ring = { version = "0.13.5", features = ["rsa_signing"] }
untrusted = "0.6.2"
pem = "0.5"
aes-ctr = "0.1.0"
base64 = "0.9.2"
aes-ctr = "0.2.0"
base64 = "0.9.3"

# The simulator runs very slowly without optimization.  A value of 1
# compiles in about half the time, but runs about 5-6 times slower.  2
+1 −1
Changes for sim/simflash/Cargo.toml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -6,5 +6,5 @@ edition = "2018"

[dependencies]
error-chain = "0.12.0"
rand = "0.3.0"
rand = "0.4.5"
log = "0.4"
+1 −1
Changes for sim/src/main.rs: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ use env_logger;
use bootsim;

fn main() {
    env_logger::init().unwrap();
    env_logger::init();

    bootsim::main();
}
+1 −1
Changes for sim/src/testlog.rs: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -14,6 +14,6 @@ static INIT: Once = ONCE_INIT;
/// Setup the logging system.  Intended to be called at the beginning of each test.
pub fn setup() {
    INIT.call_once(|| {
        env_logger::init().unwrap();
        env_logger::init();
    });
}