Skip to content

Commit

Permalink
Merge pull request #148 from haimgel/feature/mac-m3-support
Browse files Browse the repository at this point in the history
Apple Silicon Macs support
  • Loading branch information
haimgel authored Nov 9, 2024
2 parents 2c5add7 + 4c6d0cb commit a73892f
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 96 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- main
tags:
- '**'
pull_request:
types: [opened, synchronize, reopened]
pull_request:
types: [opened, synchronize, reopened]

env:
CARGO_TERM_COLOR: always
Expand Down
103 changes: 30 additions & 73 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 16 additions & 20 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,27 @@ readme = "README.md"
repository = "https://github.com/haimgel/display-switch/"
license = "MIT"

[build-dependencies]
serde = { version = "^1.0", features = ["derive"] }
serde_json = "^1.0"

[dependencies]
config = { version = "^0.14", features = ["ini"], default-features = false }
paste = "^1"
dirs = "^5.0"
serde = { version = "^1.0", features = ["derive"] }
anyhow = "^1.0"
log = "^0.4"
simplelog = "^0.12"
ddc = "^0.3"
config = { version = "0.14", features = ["ini"], default-features = false }
paste = "1.0"
dirs = "5.0"
serde = { version = "1.0", features = ["derive"] }
anyhow = "1.0"
log = "0.4"
simplelog = "0.12"
ddc = "0.2"
ddc-hi = "0.4"
rusb = "^0.9"
shell-words = "^1"
ddc-hi = "0.4.1"
shell-words = "1.0"

[target.'cfg(target_os = "macos")'.dependencies]
ddc-macos = "^0.2"
ddc-macos = "0.2.2"

[target.'cfg(target_os = "linux")'.dependencies]
ddc-i2c = "^0.2"
uinput = "^0.1"
ddc-i2c = "0.2"
uinput = "0.1"

[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "^0.3", features = ["winuser", "libloaderapi", "wincon"] }
ddc-winapi = "^0.2"
nvapi = "^0.1"
winapi = { version = "0.3", features = ["winuser", "libloaderapi", "wincon"] }
ddc-winapi = "0.2"
nvapi = "0.1"
2 changes: 1 addition & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
max_width = 120
edition = "2021"
style_edition = "2021"
use_try_shorthand = true

0 comments on commit a73892f

Please sign in to comment.