Update Cargo.tomls to Rust edition 2018, fix crate imports. Closes #13
This commit is contained in:
parent
a40cd43a2e
commit
0d8696286c
|
@ -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.
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
name = "steven_blocks"
|
||||
version = "0.0.1"
|
||||
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
lazy_static = "1.1.0"
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
name = "steven_gl"
|
||||
version = "0.0.1"
|
||||
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
|
||||
edition = "2018"
|
||||
build = "build.rs"
|
||||
|
||||
[build-dependencies]
|
||||
|
|
|
@ -2,4 +2,5 @@
|
|||
name = "steven_resources"
|
||||
version = "0.1.0"
|
||||
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
|
||||
edition = "2018"
|
||||
build = "build.rs"
|
||||
|
|
|
@ -2,5 +2,6 @@
|
|||
name = "steven_shared"
|
||||
version = "0.0.1"
|
||||
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
use axis::Axis;
|
||||
use crate::axis::Axis;
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub enum Direction {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
use std::fmt;
|
||||
use direction::Direction;
|
||||
use crate::direction::Direction;
|
||||
use std::ops;
|
||||
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Hash)]
|
||||
|
|
Loading…
Reference in New Issue