Update generator and examples to edition 2018

This commit is contained in:
Aaron Loucks 2019-05-25 15:34:18 -04:00
parent 284043b605
commit 1ba1d46eb2
8 changed files with 10 additions and 18 deletions

View file

@ -23,8 +23,6 @@
//! ```
//!
extern crate shared_library;
pub use crate::device::Device;
pub use crate::entry::{Entry, EntryCustom, InstanceError, LoadingError};
pub use crate::instance::Instance;

View file

@ -1,4 +1,4 @@
extern crate ash;
use ash;
use ash::vk::{PhysicalDeviceProperties, PipelineColorBlendStateCreateInfo};

View file

@ -1,4 +1,4 @@
extern crate ash;
use ash::vk;
#[test]

View file

@ -2,6 +2,7 @@
name = "examples"
version = "0.1.0"
authors = ["maik klein <maikklein@googlemail.com>"]
edition = "2018"
[dependencies]
winit = "0.16"

View file

@ -1,7 +1,3 @@
extern crate ash;
extern crate examples;
extern crate image;
use std::default::Default;
use std::ffi::CString;
use std::fs::File;

View file

@ -1,6 +1,3 @@
extern crate ash;
extern crate examples;
use ash::util::*;
use ash::vk;
use examples::*;

View file

@ -1,4 +1,4 @@
extern crate generator;
use generator::write_source_code;
use std::path::Path;

View file

@ -1,14 +1,14 @@
#![recursion_limit = "256"]
extern crate heck;
extern crate itertools;
#[macro_use]
extern crate nom;
extern crate proc_macro2;
use proc_macro2;
#[macro_use]
extern crate quote;
extern crate syn;
pub extern crate vk_parse;
pub extern crate vkxml;
use syn;
pub use vk_parse;
pub use vkxml;
use heck::{CamelCase, ShoutySnakeCase, SnakeCase};
use itertools::Itertools;