summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-03-12 17:54:43 +0100
committermetamuffin <metamuffin@disroot.org>2025-03-12 17:54:43 +0100
commitdc8304afefa71037bea99722bee29f7645753836 (patch)
tree4fd2b70d6faec18573bd590442b443b7d7a53c1a
parent3ed621256f1e02032250477fa574eab38bd34976 (diff)
downloadweareserver-dc8304afefa71037bea99722bee29f7645753836.tar
weareserver-dc8304afefa71037bea99722bee29f7645753836.tar.bz2
weareserver-dc8304afefa71037bea99722bee29f7645753836.tar.zst
rename crates and binaries
-rw-r--r--Cargo.lock46
-rw-r--r--Cargo.toml2
-rw-r--r--cli/Cargo.toml14
-rw-r--r--cli/src/main.rs3
-rw-r--r--client/Cargo.toml4
-rw-r--r--import/Cargo.toml (renamed from world/Cargo.toml)14
-rw-r--r--import/src/animation.rs (renamed from world/src/animation.rs)0
-rw-r--r--import/src/main.rs (renamed from world/src/main.rs)0
-rw-r--r--import/src/mesh.rs (renamed from world/src/mesh.rs)0
-rw-r--r--import/src/physics.rs (renamed from world/src/physics.rs)0
-rw-r--r--import/src/prefab.rs (renamed from world/src/prefab.rs)16
-rw-r--r--import/src/vrm.rs (renamed from world/src/vrm.rs)0
-rw-r--r--server/Cargo.toml4
13 files changed, 79 insertions, 24 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 33b9453..85123c8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3411,6 +3411,16 @@ dependencies = [
]
[[package]]
+name = "wearecli"
+version = "0.1.0"
+dependencies = [
+ "anyhow",
+ "clap 4.5.23",
+ "env_logger",
+ "weareshared",
+]
+
+[[package]]
name = "weareclient"
version = "0.1.0"
dependencies = [
@@ -3438,48 +3448,48 @@ dependencies = [
]
[[package]]
-name = "weareserver"
+name = "weareimport"
version = "0.1.0"
dependencies = [
"anyhow",
"clap 4.5.23",
"env_logger",
+ "glam",
+ "gltf",
+ "humansize",
+ "image",
"log",
+ "rand 0.9.0-beta.1",
+ "rayon",
+ "serde",
+ "serde_json",
"weareshared",
- "xdg",
]
[[package]]
-name = "weareshared"
+name = "weareserver"
version = "0.1.0"
dependencies = [
"anyhow",
- "bincode",
- "blake3",
- "glam",
+ "clap 4.5.23",
+ "env_logger",
"log",
- "rand 0.9.0-beta.1",
- "redb",
+ "weareshared",
"xdg",
]
[[package]]
-name = "weareworld"
+name = "weareshared"
version = "0.1.0"
dependencies = [
"anyhow",
- "clap 4.5.23",
- "env_logger",
+ "bincode",
+ "blake3",
"glam",
- "gltf",
- "humansize",
- "image",
"log",
"rand 0.9.0-beta.1",
- "rayon",
- "serde",
- "serde_json",
- "weareshared",
+ "redb",
+ "xdg",
]
[[package]]
diff --git a/Cargo.toml b/Cargo.toml
index 53b56f8..722342f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,3 +1,3 @@
[workspace]
-members = ["shared", "server", "client", "world"]
+members = ["shared", "server", "client", "import", "cli"]
resolver = "3"
diff --git a/cli/Cargo.toml b/cli/Cargo.toml
new file mode 100644
index 0000000..84587ba
--- /dev/null
+++ b/cli/Cargo.toml
@@ -0,0 +1,14 @@
+[package]
+name = "wearecli"
+version = "0.1.0"
+edition = "2024"
+
+[[bin]]
+name = "wearecontrolling"
+path = "src/main.rs"
+
+[dependencies]
+anyhow = "1.0.95"
+clap = { version = "4.5.23", features = ["derive"] }
+env_logger = "0.11.6"
+weareshared = { path = "../shared" }
diff --git a/cli/src/main.rs b/cli/src/main.rs
new file mode 100644
index 0000000..e7a11a9
--- /dev/null
+++ b/cli/src/main.rs
@@ -0,0 +1,3 @@
+fn main() {
+ println!("Hello, world!");
+}
diff --git a/client/Cargo.toml b/client/Cargo.toml
index d00335c..d73c282 100644
--- a/client/Cargo.toml
+++ b/client/Cargo.toml
@@ -3,6 +3,10 @@ name = "weareclient"
version = "0.1.0"
edition = "2024"
+[[bin]]
+name = "weareplaying"
+path = "src/main.rs"
+
[dependencies]
anyhow = "1.0.95"
audiopus = "0.2.0"
diff --git a/world/Cargo.toml b/import/Cargo.toml
index 8ce9a77..b8b3a10 100644
--- a/world/Cargo.toml
+++ b/import/Cargo.toml
@@ -1,8 +1,12 @@
[package]
-name = "weareworld"
+name = "weareimport"
version = "0.1.0"
edition = "2024"
+[[bin]]
+name = "weareimporting"
+path = "src/main.rs"
+
[dependencies]
anyhow = "1.0.95"
clap = { version = "4.5.23", features = ["derive"] }
@@ -18,11 +22,11 @@ gltf = { version = "1.4.1", features = [
"KHR_materials_volume",
"KHR_materials_emissive_strength",
] }
+glam = "0.29.2"
+humansize = "2.1.3"
+image = "0.25.5"
log = "0.4.22"
-weareshared = { path = "../shared" }
rand = "0.9.0-beta.1"
-image = "0.25.5"
rayon = "1.10.0"
-humansize = "2.1.3"
serde_json = "1.0.138"
-glam = "0.29.2"
+weareshared = { path = "../shared" }
diff --git a/world/src/animation.rs b/import/src/animation.rs
index ca049e5..ca049e5 100644
--- a/world/src/animation.rs
+++ b/import/src/animation.rs
diff --git a/world/src/main.rs b/import/src/main.rs
index 554a2bd..554a2bd 100644
--- a/world/src/main.rs
+++ b/import/src/main.rs
diff --git a/world/src/mesh.rs b/import/src/mesh.rs
index ffc0f2f..ffc0f2f 100644
--- a/world/src/mesh.rs
+++ b/import/src/mesh.rs
diff --git a/world/src/physics.rs b/import/src/physics.rs
index 3beb49b..3beb49b 100644
--- a/world/src/physics.rs
+++ b/import/src/physics.rs
diff --git a/world/src/prefab.rs b/import/src/prefab.rs
index bf45f01..62690f7 100644
--- a/world/src/prefab.rs
+++ b/import/src/prefab.rs
@@ -1,3 +1,19 @@
+/*
+ wearechat - generic multiplayer game with voip
+ Copyright (C) 2025 metamuffin
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, version 3 of the License only.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+*/
use crate::{
Args, TextureCache, animation::import_animation, mesh::import_mesh, physics::import_physics,
transform_to_affine, vrm::extract_vrm_data,
diff --git a/world/src/vrm.rs b/import/src/vrm.rs
index f014e66..f014e66 100644
--- a/world/src/vrm.rs
+++ b/import/src/vrm.rs
diff --git a/server/Cargo.toml b/server/Cargo.toml
index 9f7f37a..50440fb 100644
--- a/server/Cargo.toml
+++ b/server/Cargo.toml
@@ -3,6 +3,10 @@ name = "weareserver"
version = "0.1.0"
edition = "2024"
+[[bin]]
+name = "wearehosting"
+path = "src/main.rs"
+
[dependencies]
anyhow = "1.0.95"
clap = { version = "4.5.23", features = ["derive"] }