I try to build the grin node today
i got following error
Compiling grin_servers v1.1.0-beta.2
(/media/extendgrin/servers)
error[E0599]: no method named checked_sub found for type std::time::Instant in the current scope
--> servers/src/grin/dandelion_monitor.rs:51:6
|
51 | .checked_sub(Duration::from_secs(20))
| ^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try rustc --explain E0599.
error: Could not compile grin_servers.
I am using ubuntu 18.04 Rust version in rustc 1.31.0
Some recent changes require rust 1.34.0.
Running rustup update to get the latest stable rust release should resolve this.
The app should probably be less cryptic about this and check for the rust version before running into errors.
Agreed with @Giszmo, it would be more friendly to require the right version of Rust at compile time instead of breaking at the first incompatibility. Maybe by using a build script?
https://doc.rust-lang.org/cargo/reference/build-scripts.html

Same here on UBuntu 18.04
@antiochp
I also build error with docker,maybe the developer shoud update Dockerfile?
Most helpful comment
Some recent changes require rust
1.34.0.Running
rustup updateto get the latest stable rust release should resolve this.