Update Cargo.tomls to Rust edition 2018, fix crate imports. Closes #13

This commit is contained in:
ice_iix 2018-11-04 12:15:34 -08:00
parent a40cd43a2e
commit 0d8696286c
9 changed files with 11 additions and 6 deletions

View File

@ -2,6 +2,7 @@
name = "steven"
version = "0.0.1"
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
edition = "2018"
[profile.dev]
# Steven runs horrendously slow with no optimizations, and often freezes.

View File

@ -2,6 +2,7 @@
name = "steven_blocks"
version = "0.0.1"
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
edition = "2018"
[dependencies]
lazy_static = "1.1.0"

View File

@ -7,7 +7,7 @@ extern crate collision;
extern crate lazy_static;
extern crate steven_shared as shared;
use shared::{Axis, Direction, Position};
use crate::shared::{Axis, Direction, Position};
use collision::Aabb3;
use cgmath::Point3;

View File

@ -2,6 +2,7 @@
name = "steven_gl"
version = "0.0.1"
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
edition = "2018"
build = "build.rs"
[build-dependencies]

View File

@ -2,4 +2,5 @@
name = "steven_resources"
version = "0.1.0"
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
edition = "2018"
build = "build.rs"

View File

@ -2,5 +2,6 @@
name = "steven_shared"
version = "0.0.1"
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
edition = "2018"
[dependencies]

View File

@ -1,5 +1,5 @@
use axis::Axis;
use crate::axis::Axis;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum Direction {

View File

@ -1,9 +1,9 @@
pub mod axis;
pub use axis::Axis;
pub use self::axis::Axis;
pub mod direction;
pub use direction::Direction;
pub use self::direction::Direction;
pub mod position;
pub use position::Position;
pub use self::position::Position;

View File

@ -1,6 +1,6 @@
use std::fmt;
use direction::Direction;
use crate::direction::Direction;
use std::ops;
#[derive(Clone, Copy, PartialEq, Eq, Hash)]