Skip to content

Commit

Permalink
Add Rust Tocket: A TCP socket tool
Browse files Browse the repository at this point in the history
* Add TCP Server
* Retrieve TCP file using libc:getsockopt
* Add scripts/visualize to plot logged timedata
  • Loading branch information
bastian-src committed Jun 24, 2024
1 parent d8fa7a2 commit 77643af
Show file tree
Hide file tree
Showing 7 changed files with 948 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Clippy Lint

on:
push:
branches:
- main
pull_request:

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"

jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Clippy
run: cargo clippy --all-targets --all-features
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Cargo Build & Test

on:
push:
branches:
- main
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
build_and_test:
name: Rust project - latest
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
.logs/
Loading

0 comments on commit 77643af

Please sign in to comment.