diff --git a/.deny.toml b/.deny.toml index 797bbb7..bec7c1a 100644 --- a/.deny.toml +++ b/.deny.toml @@ -13,13 +13,7 @@ notice = "warn" default = "deny" unlicensed = "deny" copyleft = "warn" -allow = [ - "Apache-2.0", - "ISC", - "MIT", - "MPL-2.0", - "Unicode-DFS-2016", -] +allow = ["Apache-2.0", "ISC", "MIT", "MPL-2.0", "Unicode-DFS-2016"] [bans] multiple-versions = "warn" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9f51fd1..86bf2bf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -49,6 +49,11 @@ repos: hooks: - id: check-github-actions - id: check-github-workflows + - repo: https://github.com/ComPWA/taplo-pre-commit + rev: v0.9.3 + hooks: + - id: taplo-format + - id: taplo-lint - repo: https://github.com/doublify/pre-commit-rust rev: v1.0 hooks: diff --git a/.taplo.toml b/.taplo.toml new file mode 100644 index 0000000..8372445 --- /dev/null +++ b/.taplo.toml @@ -0,0 +1,5 @@ +# SPDX-FileCopyrightText: The djio authors +# SPDX-License-Identifier: CC0-1.0 + +[formatting] +column_width = 100 diff --git a/Cargo.toml b/Cargo.toml index 5163d08..2a1fdbc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,26 +15,19 @@ edition = "2021" include = ["README.md", "LICENSES", "src/"] [dependencies] -anyhow = "1.0.89" -derive_more = { version = "1.0.0", features = [ - "display", - "from", - "deref", - "deref_mut", -] } +anyhow = "1.0.91" +derive_more = { version = "1.0.0", features = ["display", "from", "deref", "deref_mut"] } float-cmp = "0.10.0" futures-core = { version = "0.3.31", default-features = false } -futures-util = { version = "0.3.31", default-features = false, features = [ - "std", -] } +futures-util = { version = "0.3.31", default-features = false, features = ["std"] } log = "0.4.22" strum = { version = "0.26.3", features = ["derive"] } -thiserror = "1.0.64" +thiserror = "1.0.65" # Optional dependencies discro = { version = "0.29.3", optional = true } midir = { version = "0.10.0", optional = true } -tokio = { version = "1.40.0", default-features = false, optional = true } +tokio = { version = "1.41.0", default-features = false, optional = true } # Optional dependencies (experimental features) crossbeam-utils = { version = "0.8.20", optional = true } @@ -45,18 +38,18 @@ enum-as-inner = { version = "0.6.1", optional = true } hidapi = { version = "2.6.3", optional = true } [dev-dependencies] -anyhow = "1.0.89" +anyhow = "1.0.91" hidapi = "2.6.3" pretty_env_logger = "0.5.0" [features] # All cross-platform features are enabled by default. default = [ - "all-controllers", - "midir", - "observables", - "blinking-led-task-tokio-rt", - "controller-thread", + "all-controllers", + "midir", + "observables", + "blinking-led-task-tokio-rt", + "controller-thread", ] midi = [] midir = ["dep:midir"]