How do you update a crate


#1

I get the following when compiling rust
$ rustc src/main.rs --extern iron=target/debug/deps/libiron-09d928974ca04cb0.rlib
src/main.rs:2:1: 2:19 error: found possibly newer version of crate log which iron depends on [E0460]
src/main.rs:2 extern crate iron;
^~~~~~~~~~~~~~~~~~
src/main.rs:2:1: 2:19 note: perhaps this crate needs to be recompiled?
src/main.rs:2 extern crate iron;
^~~~~~~~~~~~~~~~~~
src/main.rs:2:1: 2:19 note: crate log path #1: /usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblog-d16b8f0e.so
src/main.rs:2:1: 2:19 note: crate iron path #1: /home/tepkes/Development/Rust/rustless/target/debug/deps/libiron-09d928974ca04cb0.rlib
error: aborting due to previous error

So if log is out of date, how do I bring it in date? Thanks in advance

Tim


#2

Is there a reason your not using cargo?


#3

Cargo was failing and wasn’t giving me the reason for the failure. I think I got it now I updated my Cargo.toml with iron in dependancies. Now I get a whole different error, but doesn’t have anything to do with this. I think I answered this one after digging some more. Thanks