Skip to content

Commit

Permalink
toml: add formatter and check in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tamird committed Jul 17, 2023
1 parent 893ab76 commit c8bf646
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:

- uses: Swatinem/rust-cache@v2

- run: cargo install taplo-cli
- run: taplo fmt --check

- name: Check formatting
run: cargo fmt --all -- --check

Expand Down
5 changes: 5 additions & 0 deletions .taplo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[[rule]]

[rule.formatting]
indent_string = " "
reorder_arrays = true
2 changes: 1 addition & 1 deletion aya-bpf-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ proc-macro = true
[dependencies]
proc-macro2 = "1.0"
quote = "1.0"
syn = {version = "2.0", features = ["full"]}
syn = { version = "2.0", features = ["full"] }

[dev-dependencies]
aya-bpf = { path = "../bpf/aya-bpf" }
2 changes: 1 addition & 1 deletion aya-log-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "aya-log-common"
version = "0.1.13"
description = "A logging library for eBPF programs."
keywords = ["ebpf", "bpf", "log", "logging"]
keywords = ["bpf", "ebpf", "log", "logging"]
license = "MIT OR Apache-2.0"
authors = ["The Aya Contributors"]
repository = "https://github.com/aya-rs/aya-log"
Expand Down
4 changes: 2 additions & 2 deletions aya-log/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "aya-log"
version = "0.1.13"
description = "A logging library for eBPF programs."
keywords = ["ebpf", "bpf", "log", "logging"]
keywords = ["bpf", "ebpf", "log", "logging"]
license = "MIT OR Apache-2.0"
authors = ["The Aya Contributors"]
repository = "https://github.com/aya-rs/aya-log"
Expand All @@ -11,7 +11,7 @@ documentation = "https://docs.rs/aya-log"
edition = "2021"

[dependencies]
aya = { path = "../aya", version = "0.11.0", features=["async_tokio"] }
aya = { path = "../aya", version = "0.11.0", features = ["async_tokio"] }
aya-log-common = { path = "../aya-log-common", version = "0.1.13" }
thiserror = "1"
log = "0.4"
Expand Down
1 change: 0 additions & 1 deletion bpf/aya-bpf-bindings/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ edition = "2021"

[dependencies]
aya-bpf-cty = { path = "../aya-bpf-cty" }

2 changes: 1 addition & 1 deletion bpf/aya-bpf-cty/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["Jorge Aparicio <jorge@japaric.io>"]
edition = "2021"
categories = ["embedded", "external-ffi-bindings" ,"no-std"]
categories = ["embedded", "external-ffi-bindings", "no-std"]
description = "Type aliases to C types like c_int for use with bindgen"
documentation = "https://docs.rs/cty"
license = "MIT OR Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[build]
publish = "site"
command = "rustup toolchain install nightly -c rust-src && cargo xtask docs"
publish = "site"
command = "rustup toolchain install nightly -c rust-src && cargo xtask docs"
1 change: 0 additions & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
unstable_features = true
reorder_imports = true
imports_granularity = "Crate"

0 comments on commit c8bf646

Please sign in to comment.