Skip to content

Commit

Permalink
Update meta
Browse files Browse the repository at this point in the history
  • Loading branch information
aecsocket committed Jun 30, 2024
1 parent 93fbee2 commit 0f6a542
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 2 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
on:
pull_request:
push:
branches:
- main

env:
CARGO_TERM_COLOR: always

jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- run: cargo fmt --check
taplo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: uncenter/setup-taplo@v1
with:
version: "0.8.1"
- run: taplo fmt --check
typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@master
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
- run: cargo clippy --workspace --all-features -- -Dwarnings
doc:
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: "-Dwarnings"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: cargo doc --workspace --all-features
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: sudo apt-get install -y libudev-dev
- run: cargo test --workspace --all-features
18 changes: 17 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
[package]
edition = "2021"
description = "Emulate a trackpad with your physical mouse"
name = "fukomaster"
version = "0.1.0"

authors = ["aecsocket <aecsocket@tutanota.com>"]
categories = ["command-line-utilities"]
edition = "2021"
keywords = ["mouse", "trackpad", "touchpad"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/aecsocket/fukomaster"
rust-version = "1.76.0"

[lints.rust]
missing_docs = "warn"
unused_crate_dependencies = "warn"

[lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }

[dependencies]
# uinput = "0.1.3"
# evdev = "0.12.2"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ cargo run
## Etymology

- `master`: because I wrote it for my MX Master 3S
- `fuko`: [:)](https://steamcommunity.com/stats/324160/achievements)
- `fuko`: iykyk :)
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]

use std::{
io, thread,
time::{Duration, SystemTime},
Expand Down

0 comments on commit 0f6a542

Please sign in to comment.