bodil / vgtk

A declarative desktop UI framework for Rust built on GTK and Gtk-rs
http://bodil.lol/vgtk/
Other
1.05k stars 37 forks source link

latest nightly error: `extern crate` is not idiomatic in the new edition #31

Closed omac777 closed 4 years ago

omac777 commented 4 years ago

When using the latest rust nightly:

cargo --version --verbose
cargo 1.42.0-nightly (86134e766 2019-12-23)
release: 1.42.0
commit-hash: 86134e7666a088682f20b76278c3ee096a315218
commit-date: 2019-12-23

and building vgtk:

cargo build --release

produces the following error:

error: `extern crate` is not idiomatic in the new edition
 --> macros/src/lib.rs:4:1
  |
4 | extern crate proc_macro;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert it to a `use`

The following fixes it:

use proc_macro;