with crate

This commit is contained in:
Kasper Juul Hermansen 2022-10-25 19:07:37 +02:00
parent d7fbea4380
commit 1be156d911
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
8 changed files with 53 additions and 5 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

11
Cargo.lock generated Normal file
View File

@ -0,0 +1,11 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "octopush"
version = "0.1.0"
[[package]]
name = "octopush_cli"
version = "0.1.0"

13
Cargo.toml Normal file
View File

@ -0,0 +1,13 @@
[package]
name = "octopush"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[workspace]
members = [
"crates/octopush_cli"
]
[dependencies]

2
crates/octopush_cli/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/target
/Cargo.lock

View File

@ -0,0 +1,8 @@
[package]
name = "octopush_cli"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

View File

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

View File

@ -1,6 +1,6 @@
# yaml-language-server: $schema=https://git.front.kjuulh.io/kjuulh/cuddle/raw/branch/main/schemas/base.json # yaml-language-server: $schema=https://git.front.kjuulh.io/kjuulh/cuddle/raw/branch/main/schemas/base.json
base: "git@git.front.kjuulh.io:kjuulh/cuddle-go-plan.git" base: "git@git.front.kjuulh.io:kjuulh/cuddle-rust-plan.git"
vars: vars:
service: "octopush" service: "octopush"
@ -9,9 +9,5 @@ vars:
scripts: scripts:
push_github: push_github:
type: shell type: shell
run_server:
type: shell
run_client:
type: shell
run: run:
type: shell type: shell

3
src/main.rs Normal file
View File

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