commit
f638218463
10 changed files with 98 additions and 0 deletions
@ -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": [], |
||||
} |
||||
] |
||||
} |
@ -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…
Reference in new issue