Initial commit

main
copygirl 4 days ago
commit f638218463
  1. 1
      .gitignore
  2. 27
      .vscode/launch.json
  3. 21
      Cargo.lock
  4. 9
      Cargo.toml
  5. 7
      client/Cargo.toml
  6. 3
      client/src/main.rs
  7. 6
      common/Cargo.toml
  8. 14
      common/src/lib.rs
  9. 7
      server/Cargo.toml
  10. 3
      server/src/main.rs

1
.gitignore vendored

@ -0,0 +1 @@
/target/

@ -0,0 +1,27 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug client",
"cargo": {
"args": [ "build", "--bin=gaemstone-client", "--package=gaemstone-client" ],
"filter": { "name": "gaemstone-client", "kind": "bin" },
},
"cwd": "${workspaceFolder}",
"args": [],
},
{
"type": "lldb",
"request": "launch",
"name": "Debug server",
"cargo": {
"args": [ "build", "--bin=gaemstone-server", "--package=gaemstone-server" ],
"filter": { "name": "gaemstone-server", "kind": "bin" },
},
"cwd": "${workspaceFolder}",
"args": [],
}
]
}

21
Cargo.lock generated

@ -0,0 +1,21 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "gaemstone-client"
version = "0.1.0"
dependencies = [
"gaemstone-common",
]
[[package]]
name = "gaemstone-common"
version = "0.1.0"
[[package]]
name = "gaemstone-server"
version = "0.1.0"
dependencies = [
"gaemstone-common",
]

@ -0,0 +1,9 @@
[workspace]
resolver = "2"
members = [
"client",
"common",
"server",
]
[workspace.dependencies]

@ -0,0 +1,7 @@
[package]
name = "gaemstone-client"
version = "0.1.0"
edition = "2021"
[dependencies]
common = { package = "gaemstone-common", path = "../common" }

@ -0,0 +1,3 @@
fn main() {
println!("Hello, client!");
}

@ -0,0 +1,6 @@
[package]
name = "gaemstone-common"
version = "0.1.0"
edition = "2021"
[dependencies]

@ -0,0 +1,14 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}

@ -0,0 +1,7 @@
[package]
name = "gaemstone-server"
version = "0.1.0"
edition = "2021"
[dependencies]
common = { package = "gaemstone-common", path = "../common" }

@ -0,0 +1,3 @@
fn main() {
println!("Hello, server!");
}
Loading…
Cancel
Save