Skip to content

Commit

Permalink
Merge pull request #3 from weezy20/part3
Browse files Browse the repository at this point in the history
Kvs-client-server implementation
  • Loading branch information
weezy20 authored Feb 26, 2024
2 parents b4fda64 + 2fc8e50 commit 70b32a9
Show file tree
Hide file tree
Showing 29 changed files with 2,302 additions and 442 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,27 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Free up space on runner
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Install protoc
run: |
sudo apt-get install -y protobuf-compiler
protoc --version
- name: Rust Cache
uses: Swatinem/[email protected]
with:
cache-on-failure: true
cache-all-crates: true

- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
run: cargo build --workspace --verbose

- name: Run tests
run: cargo test --verbose
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
target
*.log
*.index
21 changes: 21 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "cppvsdbg",
"request": "launch",
"name": "Debug cmd in executable 'kvs'",
"program": "${workspaceFolder}/target/debug/kvs.exe",
"args": [
"set",
"horseradish",
"clams"
],
"cwd": "${workspaceFolder}",
"preLaunchTask": "rust: cargo build",
},
]
}
21 changes: 21 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "rust: cargo build",
"type": "cargo",
"command": "build",
"args": [
// "--package kvs",
// "--bin kvs"
],
"options": {
"cwd": "${workspaceFolder}",
},
"problemMatcher": [
"$rustc"
],
"group": "build",
}
]
}
Loading

0 comments on commit 70b32a9

Please sign in to comment.