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"
|
name = "steven"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
|
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
# Steven runs horrendously slow with no optimizations, and often freezes.
|
# Steven runs horrendously slow with no optimizations, and often freezes.
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
name = "steven_blocks"
|
name = "steven_blocks"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
|
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
lazy_static = "1.1.0"
|
lazy_static = "1.1.0"
|
||||||
|
|
|
@ -7,7 +7,7 @@ extern crate collision;
|
||||||
extern crate lazy_static;
|
extern crate lazy_static;
|
||||||
extern crate steven_shared as shared;
|
extern crate steven_shared as shared;
|
||||||
|
|
||||||
use shared::{Axis, Direction, Position};
|
use crate::shared::{Axis, Direction, Position};
|
||||||
use collision::Aabb3;
|
use collision::Aabb3;
|
||||||
use cgmath::Point3;
|
use cgmath::Point3;
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
name = "steven_gl"
|
name = "steven_gl"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
|
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
|
||||||
|
edition = "2018"
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
|
|
|
@ -2,4 +2,5 @@
|
||||||
name = "steven_resources"
|
name = "steven_resources"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
|
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
|
||||||
|
edition = "2018"
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
name = "steven_shared"
|
name = "steven_shared"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
|
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
use axis::Axis;
|
use crate::axis::Axis;
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||||
pub enum Direction {
|
pub enum Direction {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
|
|
||||||
pub mod axis;
|
pub mod axis;
|
||||||
pub use axis::Axis;
|
pub use self::axis::Axis;
|
||||||
|
|
||||||
pub mod direction;
|
pub mod direction;
|
||||||
pub use direction::Direction;
|
pub use self::direction::Direction;
|
||||||
|
|
||||||
pub mod position;
|
pub mod position;
|
||||||
pub use position::Position;
|
pub use self::position::Position;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use direction::Direction;
|
use crate::direction::Direction;
|
||||||
use std::ops;
|
use std::ops;
|
||||||
|
|
||||||
#[derive(Clone, Copy, PartialEq, Eq, Hash)]
|
#[derive(Clone, Copy, PartialEq, Eq, Hash)]
|
||||||
|
|
Loading…
Reference in New Issue