diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e53d9d19..16edbf5b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.taplo.toml b/.taplo.toml new file mode 100644 index 00000000..f8e816ca --- /dev/null +++ b/.taplo.toml @@ -0,0 +1,5 @@ +[[rule]] + +[rule.formatting] +indent_string = " " +reorder_arrays = true diff --git a/aya-bpf-macros/Cargo.toml b/aya-bpf-macros/Cargo.toml index 4c57a5bd..8d7ee76d 100644 --- a/aya-bpf-macros/Cargo.toml +++ b/aya-bpf-macros/Cargo.toml @@ -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" } diff --git a/aya-log-common/Cargo.toml b/aya-log-common/Cargo.toml index 5eb0d060..3f757f7a 100644 --- a/aya-log-common/Cargo.toml +++ b/aya-log-common/Cargo.toml @@ -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" diff --git a/aya-log/Cargo.toml b/aya-log/Cargo.toml index 5fb83a32..a4064b4a 100644 --- a/aya-log/Cargo.toml +++ b/aya-log/Cargo.toml @@ -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" @@ -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" diff --git a/bpf/aya-bpf-bindings/Cargo.toml b/bpf/aya-bpf-bindings/Cargo.toml index 4588e895..4eccbd66 100644 --- a/bpf/aya-bpf-bindings/Cargo.toml +++ b/bpf/aya-bpf-bindings/Cargo.toml @@ -6,4 +6,3 @@ edition = "2021" [dependencies] aya-bpf-cty = { path = "../aya-bpf-cty" } - diff --git a/bpf/aya-bpf-cty/Cargo.toml b/bpf/aya-bpf-cty/Cargo.toml index 5cd8d69c..08a60623 100644 --- a/bpf/aya-bpf-cty/Cargo.toml +++ b/bpf/aya-bpf-cty/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ["Jorge Aparicio "] 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" diff --git a/netlify.toml b/netlify.toml index 3ad62912..178413df 100644 --- a/netlify.toml +++ b/netlify.toml @@ -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" diff --git a/rustfmt.toml b/rustfmt.toml index 0c3bc0ee..1cdefeb0 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,4 +1,3 @@ unstable_features = true reorder_imports = true imports_granularity = "Crate" -