Update generator and examples to edition 2018
This commit is contained in:
parent
284043b605
commit
1ba1d46eb2
|
@ -23,8 +23,6 @@
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
|
|
||||||
extern crate shared_library;
|
|
||||||
|
|
||||||
pub use crate::device::Device;
|
pub use crate::device::Device;
|
||||||
pub use crate::entry::{Entry, EntryCustom, InstanceError, LoadingError};
|
pub use crate::entry::{Entry, EntryCustom, InstanceError, LoadingError};
|
||||||
pub use crate::instance::Instance;
|
pub use crate::instance::Instance;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern crate ash;
|
use ash;
|
||||||
|
|
||||||
use ash::vk::{PhysicalDeviceProperties, PipelineColorBlendStateCreateInfo};
|
use ash::vk::{PhysicalDeviceProperties, PipelineColorBlendStateCreateInfo};
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern crate ash;
|
|
||||||
use ash::vk;
|
use ash::vk;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
name = "examples"
|
name = "examples"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["maik klein <maikklein@googlemail.com>"]
|
authors = ["maik klein <maikklein@googlemail.com>"]
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
winit = "0.16"
|
winit = "0.16"
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
extern crate ash;
|
|
||||||
extern crate examples;
|
|
||||||
extern crate image;
|
|
||||||
|
|
||||||
use std::default::Default;
|
use std::default::Default;
|
||||||
use std::ffi::CString;
|
use std::ffi::CString;
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
extern crate ash;
|
|
||||||
extern crate examples;
|
|
||||||
|
|
||||||
use ash::util::*;
|
use ash::util::*;
|
||||||
use ash::vk;
|
use ash::vk;
|
||||||
use examples::*;
|
use examples::*;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern crate generator;
|
|
||||||
use generator::write_source_code;
|
use generator::write_source_code;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
#![recursion_limit = "256"]
|
#![recursion_limit = "256"]
|
||||||
extern crate heck;
|
|
||||||
extern crate itertools;
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate nom;
|
extern crate nom;
|
||||||
extern crate proc_macro2;
|
use proc_macro2;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate quote;
|
extern crate quote;
|
||||||
extern crate syn;
|
use syn;
|
||||||
pub extern crate vk_parse;
|
pub use vk_parse;
|
||||||
pub extern crate vkxml;
|
pub use vkxml;
|
||||||
|
|
||||||
use heck::{CamelCase, ShoutySnakeCase, SnakeCase};
|
use heck::{CamelCase, ShoutySnakeCase, SnakeCase};
|
||||||
use itertools::Itertools;
|
use itertools::Itertools;
|
||||||
|
|
Loading…
Reference in a new issue