Skip to content

Commit

Permalink
2018 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaeroxe committed Dec 6, 2018
1 parent 863b795 commit 452b938
Show file tree
Hide file tree
Showing 87 changed files with 286 additions and 273 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "amethyst"
version = "0.9.0"
authors = ["Eyal Kalderon <[email protected]>"]
edition = "2018"
description = "Data-oriented game engine written in Rust"
exclude = ["examples/*", "book/*"]
keywords = ["game", "engine", "sdk", "amethyst"]
Expand Down
1 change: 1 addition & 0 deletions amethyst_animation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "amethyst_animation"
version = "0.4.0"
authors = ["Simon Rönnberg <[email protected]>"]
edition = "2018"
description = "Animation support for Amethyst"
keywords = ["game", "engine", "animation", "3d", "amethyst"]

Expand Down
16 changes: 8 additions & 8 deletions amethyst_animation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,20 @@
#![warn(missing_docs, rust_2018_idioms, rust_2018_compatibility)]

extern crate amethyst_assets;
extern crate amethyst_core;


#[macro_use]
extern crate amethyst_derive;
extern crate amethyst_renderer;

#[macro_use]
extern crate derivative;
extern crate fnv;
extern crate hibitset;
extern crate itertools;



#[macro_use]
extern crate log;
extern crate minterpolate;
extern crate num_traits;


#[macro_use]
extern crate serde;

Expand Down
2 changes: 1 addition & 1 deletion amethyst_animation/src/skinning/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl<'a> System<'a> for VertexSkinningSystem {
}
}

for (_, mesh_global, mut joint_transform) in
for (_, mesh_global, joint_transform) in
(&self.updated, &global_transforms, &mut matrices).join()
{
if let Some(global_inverse) = mesh_global.0.try_inverse() {
Expand Down
1 change: 1 addition & 0 deletions amethyst_assets/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "amethyst_assets"
version = "0.5.0"
authors = ["torkleyy <[email protected]>"]
readme = "README.md"
edition = "2018"
description = """
Asynchronous asset management for games.
"""
Expand Down
8 changes: 4 additions & 4 deletions amethyst_assets/examples/ll.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! Defining a custom asset and format.
extern crate amethyst_assets;
extern crate amethyst_core;
extern crate rayon;




use std::{str::from_utf8, sync::Arc, thread::sleep, time::Duration};

Expand Down Expand Up @@ -30,7 +30,7 @@ impl Format<DummyAsset> for DummyFormat {
fn import(
&self,
name: String,
source: Arc<Source>,
source: Arc<dyn Source>,
_: (),
_create_reload: bool,
) -> Result<FormatValue<DummyAsset>> {
Expand Down
16 changes: 8 additions & 8 deletions amethyst_assets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@
#![warn(missing_docs, rust_2018_idioms, rust_2018_compatibility)]

extern crate amethyst_core;
extern crate crossbeam;
use amethyst_core;

#[macro_use]
extern crate derivative;
#[macro_use]
extern crate error_chain;
extern crate fnv;
extern crate hibitset;


#[macro_use]
extern crate log;
extern crate parking_lot;
extern crate rayon;
extern crate ron;



#[macro_use]
extern crate serde;
#[cfg(feature = "json")]
extern crate serde_json;
extern crate shred;
use shred;
#[macro_use]
extern crate shred_derive;

Expand Down
1 change: 1 addition & 0 deletions amethyst_audio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "amethyst_audio"
version = "0.4.0"
authors = ["Xaeroxe <[email protected]>"]
edition = "2018"
description = "Audio support for Amethyst"
exclude = ["examples/*"]
keywords = ["game", "engine", "audio","amethyst"]
Expand Down
10 changes: 5 additions & 5 deletions amethyst_audio/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#![warn(missing_docs, rust_2018_idioms, rust_2018_compatibility)]

//! Loading and playing of audio files.
extern crate amethyst_assets;
extern crate amethyst_core;
extern crate cpal;


#[macro_use]
extern crate log;
extern crate rodio;

#[macro_use]
extern crate serde;
extern crate smallvec;


#[macro_use]
#[cfg(feature = "profiler")]
Expand Down
1 change: 1 addition & 0 deletions amethyst_config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "amethyst_config"
version = "0.8.0"
authors = ["Aceeri <[email protected]>"]
edition = "2018"
description = "Loading from .ron files into Rust structures with defaults to prevent hard errors."
exclude = ["examples/*"]

Expand Down
2 changes: 1 addition & 1 deletion amethyst_config/examples/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extern crate amethyst_config;

#[macro_use]
extern crate serde_derive;

Expand Down
4 changes: 2 additions & 2 deletions amethyst_config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

#[macro_use]
extern crate log;
extern crate ron;
extern crate serde;
use ron;


use std::{
error::Error,
Expand Down
1 change: 1 addition & 0 deletions amethyst_controls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "amethyst_controls"
version = "0.3.0"
authors = ["Joël Lupien <[email protected]>"]
edition = "2018"
description = "Amethyst controls"

documentation = "https://www.amethyst.rs/doc/master/doc/amethyst_controls/"
Expand Down
10 changes: 5 additions & 5 deletions amethyst_controls/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
#![warn(missing_docs, rust_2018_idioms, rust_2018_compatibility)]

extern crate amethyst_assets;
extern crate amethyst_core;
extern crate amethyst_input;
extern crate amethyst_renderer;

use amethyst_core;


#[macro_use]
extern crate serde;
extern crate winit;


mod bundles;
mod components;
Expand Down
1 change: 1 addition & 0 deletions amethyst_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "amethyst_core"
version = "0.4.0"
authors = ["Simon Rönnberg <[email protected]>"]
edition = "2018"
description = "Amethyst core"

documentation = "https://www.amethyst.rs/doc/master/doc/amethyst_core/"
Expand Down
16 changes: 8 additions & 8 deletions amethyst_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
#![warn(missing_docs, rust_2018_idioms, rust_2018_compatibility)]

pub extern crate approx;
pub extern crate nalgebra;
pub extern crate shred;
pub extern crate shrev;
pub extern crate specs;
pub use approx;
pub use nalgebra;
pub use shred;
pub use shrev;
pub use specs;

#[macro_use]
extern crate error_chain;
extern crate hibitset;
extern crate rayon;

use rayon;
#[macro_use]
extern crate serde;
extern crate specs_hierarchy;


#[macro_use]
#[cfg(feature = "profiler")]
Expand Down
1 change: 1 addition & 0 deletions amethyst_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "amethyst_derive"
version = "0.2.0"
authors = ["Simon Rönnberg <[email protected]>"]
edition = "2018"
description = "Amethyst derive"

documentation = "https://www.amethyst.rs/doc/master/doc/amethyst_derive/"
Expand Down
2 changes: 1 addition & 1 deletion amethyst_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![warn(rust_2018_idioms, rust_2018_compatibility)]

extern crate proc_macro;
extern crate proc_macro2;

#[macro_use]
extern crate syn;
#[macro_use]
Expand Down
4 changes: 2 additions & 2 deletions amethyst_derive/tests/test.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#[macro_use]
extern crate amethyst_derive;
extern crate amethyst_assets;
extern crate amethyst_core;



use amethyst_assets::{PrefabData, PrefabError, ProgressCounter};
use amethyst_core::{
Expand Down
1 change: 1 addition & 0 deletions amethyst_gltf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "amethyst_gltf"
version = "0.4.0"
authors = ["Rhuagh <[email protected]>"]
edition = "2018"
description = "GLTF asset loading"

documentation = "https://www.amethyst.rs/doc/master/doc/amethyst_gltf/"
Expand Down
2 changes: 1 addition & 1 deletion amethyst_gltf/src/format/mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub fn load_mesh(
});

trace!("Loading positions");
let mut positions = reader
let positions = reader
.read_positions()
.map(|positions| match faces {
Some(ref faces) => {
Expand Down
20 changes: 10 additions & 10 deletions amethyst_gltf/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
#![warn(missing_docs, rust_2018_idioms, rust_2018_compatibility)]

extern crate amethyst_animation as animation;
extern crate amethyst_assets as assets;
extern crate amethyst_core as core;
extern crate amethyst_renderer as renderer;
extern crate base64;
extern crate gfx;
extern crate gltf;
extern crate itertools;
use amethyst_animation as animation;
use amethyst_assets as assets;
use amethyst_core as core;
use amethyst_renderer as renderer;
use base64;

use gltf;

#[macro_use]
extern crate log;
extern crate mikktspace;
use mikktspace;
#[macro_use]
extern crate serde;

Expand Down Expand Up @@ -271,7 +271,7 @@ impl<'a> PrefabData<'a> for GltfPrefab {
let mut ret = false;
if let Some(ref mut mats) = self.materials {
mat_set.materials.clear();
for (id, mut material) in mats.materials.iter_mut() {
for (id, material) in mats.materials.iter_mut() {
if material.load_sub_assets(progress, materials)? {
ret = true;
}
Expand Down
1 change: 1 addition & 0 deletions amethyst_input/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "amethyst_input"
version = "0.5.0"
authors = ["Rhuagh <[email protected]>", "Xaeroxe <[email protected]>"]
edition = "2018"
description = "Input rebinding "

documentation = "https://www.amethyst.rs/doc/master/doc/amethyst_input/"
Expand Down
12 changes: 6 additions & 6 deletions amethyst_input/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
#![warn(missing_docs, rust_2018_idioms, rust_2018_compatibility)]

extern crate amethyst_config;
extern crate amethyst_core;
extern crate amethyst_renderer;

use amethyst_core;

#[macro_use]
extern crate derivative;
extern crate fnv;

#[macro_use]
extern crate serde;
extern crate smallvec;
extern crate winit;
use smallvec;
use winit;

#[cfg(feature = "sdl_controller")]
extern crate sdl2;
Expand Down
1 change: 1 addition & 0 deletions amethyst_locale/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "amethyst_locale"
version = "0.3.0"
authors = ["Joël Lupien <[email protected]>"]
readme = "README.md"
edition = "2018"
description = """
Localisation bindings.
"""
Expand Down
6 changes: 3 additions & 3 deletions amethyst_locale/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
//! Localisation binding a `Fluent` file to an Asset<Locale> via the use of amethyst_assets.
#![warn(missing_docs, rust_2018_idioms, rust_2018_compatibility)]

extern crate amethyst_assets;
extern crate amethyst_core;
extern crate fluent;




use fluent::bundle::FluentBundle;

Expand Down
1 change: 1 addition & 0 deletions amethyst_network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ authors = [
"Joël Lupien (Jojolepro) <[email protected]>",
"Lucio Franco (LucioFranco) <[email protected]>"
]
edition = "2018"
description = "Amethyst networking crate"
keywords = ["networking", "specs", "ecs", "amethyst", "serialization"]
categories = ["game-engines"]
Expand Down
10 changes: 5 additions & 5 deletions amethyst_network/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
#![warn(missing_docs, rust_2018_idioms, rust_2018_compatibility)]

extern crate amethyst_core;

#[macro_use]
extern crate log;
#[macro_use]
extern crate serde;
extern crate bincode;
extern crate laminar;
extern crate shrev;
extern crate uuid;





mod bundle;
mod connection;
Expand Down
Loading

0 comments on commit 452b938

Please sign in to comment.