Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-kie committed Nov 28, 2024
0 parents commit 0cd259b
Show file tree
Hide file tree
Showing 20 changed files with 3,116 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Rust CI/CD

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
name: Build and Test
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-unknown-linux-gnu
profile: minimal
override: true

- name: Install Dependencies
run: sudo apt install libdbus-1-dev pkg-config && rustup component add clippy rustfmt

- name: Run Clippy (Linting)
run: cargo clippy --all-targets --all-features -- -D warnings

- name: Run Tests
run: cargo test --all-targets --all-features --verbose

- name: Build Project
run: cargo build --release

- name: Upload Build Artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: hrv-rs-build
path: target/release/

- name: Install cargo-tarpaulin
run: cargo install cargo-tarpaulin

- name: Run Coverage Analysis
run: cargo tarpaulin --out Xml --all-targets --all-features
env:
RUSTFLAGS: "-C link-dead-code" # Required for accurate coverage analysis

- name: Upload Coverage Report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: tarpaulin-report.xml

- name: Upload to Codecov
uses: codecov/codecov-action@v3
with:
files: tarpaulin-report.xml
fail_ci_if_error: true
flags: unittests
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# Added by cargo

/target


# pdf docs
*.pdf

# misc
.hide*
.vscode
29 changes: 29 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[package]
name = "hrv-rs"
version = "0.2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
egui = "0.29.1"
egui_extras = "0.29.1"
egui_plot = "0.29.0"
eframe = { version = "0.29.1", features = ["default"] }
image = { version = "0.25.1", default-features = false, features = ["png"] }
rfd = "0.15.1"
env_logger = { version = "0.11.5", default-features = false, features = [
"auto-color",
"humantime",
] }
btleplug = "0.11.6"
uuid = {version = "1.11.0", features = ["v4"]}
tokio = { version = "1.41.1", features = ['full'] }
futures = "0.3.31"
nalgebra = "0.33.2"
time = { version = "0.3.36", features = ["macros", "serde", "serde-human-readable", "serde-well-known"] }
log = { version = "0.4.22", features = [] }
serde = { version = "1.0.215", features = ["derive", "serde_derive"] }
serde_json = "1.0.133"
async-trait = "0.1.83"
mockall = "0.13.1"
Loading

0 comments on commit 0cd259b

Please sign in to comment.