Skip to content

Commit c50dc59

Browse files
committed
Initial Commit
0 parents  commit c50dc59

30 files changed

Lines changed: 5584 additions & 0 deletions

.github/workflows/main.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Main
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
name: check
15+
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest, windows-latest, macos-latest]
19+
20+
runs-on: ${{ matrix.os }}
21+
22+
steps:
23+
- name: checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Install libudev (Linux)
27+
if: runner.os == 'Linux'
28+
run: sudo apt-get update && sudo apt-get install -y libudev-dev pkg-config
29+
30+
- uses: actions/cache@v4
31+
with:
32+
path: |
33+
~/.cargo/bin/
34+
~/.cargo/registry/index/
35+
~/.cargo/registry/cache/
36+
~/.cargo/git/db/
37+
target/
38+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
39+
40+
- name: rust environment
41+
run: rustc --version && cargo --version
42+
43+
- name: cargo clippy
44+
run: cargo clippy --all-targets --all-features -- --deny "warnings"
45+
46+
- name: cargo fmt
47+
run: cargo fmt --all --check
48+
49+
- name: cargo test
50+
run: cargo test
51+
52+
- name: cargo doc
53+
run: cargo doc --no-deps
54+
env:
55+
RUSTDOCFLAGS: '-D warnings'
56+
57+
- name: cargo build
58+
run: cargo build --release

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/.vscode
2+
/target

Cargo.lock

Lines changed: 274 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
[package]
2+
name = "high_flow_next"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
anyhow = "1.0"
8+
arrayvec = "0.7"
9+
bitflags = "2.9"
10+
color_space = "0.5"
11+
crc = "3.3"
12+
hidapi = "2.6"
13+
thiserror = "2.0"
14+
15+
[build-dependencies]
16+
base64 = "0.22"
17+
regex = "1.11"
18+
19+
[lints.rust]
20+
future_incompatible = { level = "warn", priority = -1}
21+
incomplete_features = "allow"
22+
missing_debug_implementations = { level = "warn", priority = -1}
23+
missing_docs = { level = "warn", priority = -1}
24+
nonstandard_style = { level = "warn", priority = -1}
25+
rust_2018_idioms = { level = "warn", priority = -1}
26+
rust_2021_compatibility = { level = "warn", priority = -1}
27+
unreachable_pub = { level = "warn", priority = -1}
28+
unused = { level = "warn", priority = -1}
29+
30+
[lints.clippy]
31+
cast_possible_truncation = "warn"
32+
default_trait_access = "allow"
33+
explicit_iter_loop = "allow"
34+
match_same_arms = "allow"
35+
match_wildcard_for_single_variants = "allow"
36+
missing_errors_doc = "allow"
37+
missing_panics_doc = "allow"
38+
module_name_repetitions = "allow"
39+
no_effect_underscore_binding = "allow"
40+
pedantic = { level = "warn", priority = -1}
41+
similar_names = "allow"
42+
single_match_else = "allow"
43+
struct_field_names = "allow"
44+
uninlined_format_args = "allow"

0 commit comments

Comments
 (0)