Skip to content

Commit bad7343

Browse files
Alxandrarcnmx
andauthored
feat: create mqtt client (#26)
BREAKING-CHANGE: rename most of the crates Co-authored-by: arcnmx <[email protected]>
1 parent 38d4304 commit bad7343

98 files changed

Lines changed: 5523 additions & 1439 deletions

Some content is hidden

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

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ indent_style = tab
99
indent_size = 2
1010
charset = utf-8
1111
trim_trailing_whitespace = true
12+
13+
[*.{yml,yaml}]
14+
indent_style = space

.github/workflows/ci.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@ jobs:
2121
(github.ref != 'refs/heads/main' &&
2222
!startsWith(github.ref, 'refs/tags/')) }}
2323
matrix:
24-
os: [macos-latest, windows-latest, ubuntu-latest]
24+
os:
25+
- macos-latest
26+
# - windows-latest
27+
- ubuntu-latest
28+
channel:
29+
- stable
30+
# - beta
31+
- nightly
2532

2633
steps:
2734
- name: Configure git
@@ -31,14 +38,20 @@ jobs:
3138
git config --global fetch.parallel 32
3239
3340
- uses: actions/checkout@v3
34-
- uses: dtolnay/rust-toolchain@stable
41+
- uses: dtolnay/rust-toolchain@master
42+
with:
43+
toolchain: ${{ matrix.channel }}
44+
components: clippy
3545
- uses: Swatinem/rust-cache@v2
3646

3747
- name: Clippy
38-
run: cargo clippy -- -D warnings
48+
run: cargo clippy --all-features -- -D warnings
3949

40-
- name: Run tests
41-
uses: actions-rs/cargo@v1
42-
with:
43-
command: test
44-
args: --all --all-features
50+
- name: Install cargo-all-features
51+
run: cargo install cargo-featurex
52+
53+
- name: Run check (all feature permutations)
54+
run: cargo featurex clippy
55+
56+
- name: Run tests (all feature permutations)
57+
run: cargo featurex test

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"crates/discovery":"0.2.0","crates/entity-state":"0.2.0"}
1+
{}

.vscode/launch.json

Lines changed: 33 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,35 @@
11
{
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5-
"version": "0.2.0",
6-
"configurations": [
7-
{
8-
"type": "lldb",
9-
"request": "launch",
10-
"name": "Debug unit tests in library 'hass-mqtt-discovery-macros'",
11-
"cargo": {
12-
"args": [
13-
"test",
14-
"--no-run",
15-
"--lib",
16-
"--package=hass-mqtt-discovery-macros"
17-
],
18-
"filter": {
19-
// "name": "hass_mqtt_discovery_macros"
20-
}
21-
},
22-
"args": [],
23-
"cwd": "${workspaceFolder}"
24-
}
25-
]
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "lldb",
9+
"request": "launch",
10+
"name": "Debug mqtt-light",
11+
"cargo": {
12+
"args": ["build", "--package=mqtt-light"]
13+
},
14+
"args": []
15+
},
16+
{
17+
"type": "lldb",
18+
"request": "launch",
19+
"name": "Debug unit tests in library 'hass-mqtt-discovery-macros'",
20+
"cargo": {
21+
"args": [
22+
"test",
23+
"--no-run",
24+
"--lib",
25+
"--package=hass-mqtt-discovery-macros"
26+
],
27+
"filter": {
28+
// "name": "hass_mqtt_discovery_macros"
29+
}
30+
},
31+
"args": [],
32+
"cwd": "${workspaceFolder}"
33+
}
34+
]
2635
}

0 commit comments

Comments
 (0)