Skip to content

Commit

Permalink
Merge branch 'winapi'
Browse files Browse the repository at this point in the history
  • Loading branch information
gentoo90 committed Jan 12, 2025
2 parents 6d6f35b + 5baac5d commit aeb8ca4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ jobs:
env:
RUST_BACKTRACE: full
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install rust-${{ matrix.channel }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.channel }}
profile: minimal
override: true
- name: Cache cargo registry
uses: actions/cache@v2
uses: actions/cache@v4
continue-on-error: true
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.cargo/registry/index/
~/.cargo/registry/cache/
key: ${{ runner.os }}-cargo-${{ matrix.channel }}
restore-keys: |
${{ runner.os }}-cargo-${{ matrix.channel }}
Expand Down Expand Up @@ -131,7 +131,15 @@ jobs:
with:
command: update
args: --package num-traits --precise 0.2.18
- name: Check formatting
- name: Setup Taplo
if: matrix.lint
uses: uncenter/setup-taplo@v1
with:
version: "0.8.1"
- name: Check Cargo.toml formatting
if: matrix.lint
run: taplo fmt --check --diff
- name: Check sourcecode formatting
if: matrix.lint
uses: actions-rs/cargo@v1
with:
Expand Down
4 changes: 4 additions & 0 deletions .taplo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include = [".taplo.toml", "Cargo.toml"]

[formatting]
indent_string = " "
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ categories = ["api-bindings", "os::windows-apis"]

[dependencies]
cfg-if = "1.0"
windows-sys = {version = "0.48", features = [
windows-sys = { version = "0.48", features = [
"Win32_Foundation",
"Win32_System_Time",
"Win32_System_Registry",
"Win32_Security",
"Win32_Storage_FileSystem",
"Win32_System_Diagnostics_Debug"
]}
"Win32_System_Diagnostics_Debug",
] }
chrono = { version = "0.4.6", optional = true }
serde = { version = "1", optional = true }

Expand Down

0 comments on commit aeb8ca4

Please sign in to comment.