Most of the refactor. Need to switch machines.
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
[package]
|
||||
name = "demo"
|
||||
version = "0.1.0"
|
||||
#authors = ["Olivia Brooks", "Adrian Long"]
|
||||
#repository = "https://gitea.cutieguwu.ca/Cutieguwu/raven"
|
||||
#license = "MIT"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0"
|
||||
bytesize = "2.3"
|
||||
pathsub = "0.1.1"
|
||||
ron = "0.12"
|
||||
sha256 = "1.6"
|
||||
subprocess = "0.2"
|
||||
toml = "0.9"
|
||||
|
||||
[dependencies.clap]
|
||||
version = "4.5"
|
||||
#features = ["cargo", "derive"]
|
||||
@@ -1,5 +0,0 @@
|
||||
[package]
|
||||
name = "main"
|
||||
version = "0.1.0"
|
||||
is_test = false
|
||||
entry_point = "Main"
|
||||
26
templates/demo/Nest.toml
Normal file
26
templates/demo/Nest.toml
Normal file
@@ -0,0 +1,26 @@
|
||||
[workspace]
|
||||
default_package = "main" # PathBuf || String ?
|
||||
|
||||
[meta]
|
||||
name = "demo" # String
|
||||
version = "0.1.0" # semver::Version
|
||||
authors = ["Olivia Brooks", "Adrian Long"] # Option<Vec<String>>
|
||||
repository = "https://gitea.cutieguwu.ca/Cutieguwu/raven" # Option<URL> struct?
|
||||
license = "MIT" # Option<enum License>
|
||||
license-file = "LICENSE"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0" # semver::VersionReq
|
||||
bytesize = "2.3"
|
||||
pathsub = "0.1.1"
|
||||
ron = "0.12"
|
||||
sha256 = "1.6"
|
||||
subprocess = "0.2"
|
||||
toml = "0.9"
|
||||
|
||||
[dependencies.clap]
|
||||
version = "4.5"
|
||||
#features = ["cargo", "derive"] # Is this a concept in POM?
|
||||
|
||||
[pom] # Only POM-specific data
|
||||
model_version = "4.0.0" # semver::Version
|
||||
@@ -1,5 +1,5 @@
|
||||
[[classes]]
|
||||
path = "Main"
|
||||
path = "Main" # PathBuf to .class
|
||||
checksum = "24dffb40073ff21878cf879bf8c67d189ad600115f9a8ecead11a3ca6c086767"
|
||||
|
||||
[[classes]]
|
||||
6
templates/demo/src/main/Prey.toml
Normal file
6
templates/demo/src/main/Prey.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[package]
|
||||
entry_point = "Main" # PathBuf
|
||||
|
||||
[meta]
|
||||
name = "main"
|
||||
version = "0.1.0"
|
||||
@@ -1,17 +0,0 @@
|
||||
// Acknowledge sister/child
|
||||
mod module;
|
||||
|
||||
// std
|
||||
use std::*;
|
||||
|
||||
// sister/child
|
||||
use module1::*;
|
||||
|
||||
// parent
|
||||
use super::*;
|
||||
|
||||
// ancestor of parent
|
||||
use crate::*;
|
||||
|
||||
// external
|
||||
use external::*;
|
||||
84
templates/pom.xml
Normal file
84
templates/pom.xml
Normal file
@@ -0,0 +1,84 @@
|
||||
<project
|
||||
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
|
||||
http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
||||
>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>com.viffx</groupId>
|
||||
<artifactId>GameEngine</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>21</maven.compiler.source>
|
||||
<maven.compiler.target>21</maven.compiler.target>
|
||||
<lwjgl.version>3.4.0</lwjgl.version>
|
||||
<lwjgl.natives>natives-windows</lwjgl.natives>
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.lwjgl</groupId>
|
||||
<artifactId>lwjgl-bom</artifactId>
|
||||
<version>${lwjgl.version}</version>
|
||||
<scope>import</scope>
|
||||
<type>pom</type>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.lwjgl</groupId>
|
||||
<artifactId>lwjgl</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.lwjgl</groupId>
|
||||
<artifactId>lwjgl-assimp</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.lwjgl</groupId>
|
||||
<artifactId>lwjgl-glfw</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.lwjgl</groupId>
|
||||
<artifactId>lwjgl-openal</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.lwjgl</groupId>
|
||||
<artifactId>lwjgl-stb</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.lwjgl</groupId>
|
||||
<artifactId>lwjgl-vulkan</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.lwjgl</groupId>
|
||||
<artifactId>lwjgl</artifactId>
|
||||
<classifier>${lwjgl.natives}</classifier>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.lwjgl</groupId>
|
||||
<artifactId>lwjgl-assimp</artifactId>
|
||||
<classifier>${lwjgl.natives}</classifier>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.lwjgl</groupId>
|
||||
<artifactId>lwjgl-glfw</artifactId>
|
||||
<classifier>${lwjgl.natives}</classifier>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.lwjgl</groupId>
|
||||
<artifactId>lwjgl-openal</artifactId>
|
||||
<classifier>${lwjgl.natives}</classifier>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.lwjgl</groupId>
|
||||
<artifactId>lwjgl-stb</artifactId>
|
||||
<classifier>${lwjgl.natives}</classifier>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
Reference in New Issue
Block a user