Skip to content

Commit 91aaf0f

Browse files
authored
Merge pull request #253 from EmixamPP/refactor/rust
7.0.0-beta
2 parents 464d466 + b94acb1 commit 91aaf0f

101 files changed

Lines changed: 7910 additions & 3310 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cargo/config.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[env]
2+
LOG = "$HOME/.local/state/linux-enable-ir-emitter.log"
3+
CONFIG="$HOME/.config/linux-enable-ir-emitter.toml"
4+
5+
[target.aarch64-unknown-linux-gnu]
6+
linker = "aarch64-linux-gnu-gcc"

.clang-format

Lines changed: 0 additions & 2 deletions
This file was deleted.

.clang-tidy

Lines changed: 0 additions & 21 deletions
This file was deleted.

.githooks/pre-commit

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
git diff --quiet
3+
dirty_workspace=$?
4+
fmt_args="--check"
5+
clippy_args=""
6+
if [ $dirty_workspace -eq 0 ]; then
7+
fmt_args=""
8+
clippy_args="--fix --allow-dirty"
9+
fi
10+
11+
# Enable debug output and exit on error
12+
set -ex
13+
14+
cargo test
15+
cargo fmt $fmt_args
16+
cargo clippy $clippy_args -- --deny warnings
17+
CARGO_BUILD_RUSTDOCFLAGS="--deny warnings" cargo doc --document-private-items
18+
19+
set +x
20+
21+
[ $dirty_workspace -eq 0 ] && git add .

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/configuration-has-failed.md

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/does-not-work-at-boot.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Feature Request
2+
description: Suggest a new feature or improvement
3+
title: ""
4+
labels: enhancement
5+
assignees: ""
6+
body:
7+
- type: textarea
8+
attributes:
9+
label: Describe your feature request
10+
validations:
11+
required: true
12+
- type: textarea
13+
attributes:
14+
label: Why would it be useful or what problem can it solve?
15+
validations:
16+
required: true
17+
- type: textarea
18+
attributes:
19+
label: Describe your implementation ideas
20+
description: Optional
21+
validations:
22+
required: false
23+
- type: input
24+
attributes:
25+
label: Computer (or camera) model
26+
description: If applicable
27+
validations:
28+
required: false
29+
- type: input
30+
attributes:
31+
label: Linux distribution
32+
description: If applicable
33+
validations:
34+
required: false
35+
- type: dropdown
36+
attributes:
37+
label: Installation method
38+
description: If applicable
39+
multiple: true
40+
options:
41+
- Distro package
42+
- Prebuilt binary from GitHub Releases
43+
- Built from source
44+
validations:
45+
required: false
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Help Wanted or Bug Report
2+
description: Describe your situation to receive help
3+
title: ""
4+
labels: ""
5+
assignees: ""
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
This structured issue template is designed to help you provide the necessary information for us to assist you effectively.
11+
Please fill out the fields below with as much detail as possible.
12+
- type: checkboxes
13+
attributes:
14+
label: Documentation
15+
description: You read the [documentation](https://github.com/EmixamPP/linux-enable-ir-emitter/blob/master/README.md).
16+
options:
17+
- label: I agree to follow this project's Code of Conduct
18+
required: true
19+
- type: textarea
20+
attributes:
21+
label: Output of `linux-enable-ir-emitter --config`
22+
render: toml
23+
validations:
24+
required: true
25+
- type: textarea
26+
attributes:
27+
label: Output of `linux-enable-ir-emitter --log`
28+
render: shell
29+
validations:
30+
required: true
31+
- type: textarea
32+
attributes:
33+
label: Output of `linux-enable-ir-emitter --grey-devices`
34+
validations:
35+
required: true
36+
- type: input
37+
attributes:
38+
label: Computer (or camera) model
39+
validations:
40+
required: true
41+
- type: input
42+
attributes:
43+
label: Linux distribution
44+
validations:
45+
required: true
46+
- type: dropdown
47+
attributes:
48+
label: Installation method
49+
multiple: true
50+
options:
51+
- Distro package
52+
- Prebuilt binary from GitHub Releases
53+
- Built from source
54+
validations:
55+
required: true
56+
- type: textarea
57+
attributes:
58+
label: Additional information
59+
description: Give more information if you have.

0 commit comments

Comments
 (0)