toml: add formatter and check in CI

pull/666/head
Tamir Duberstein 1 year ago
parent 893ab76afa
commit c8bf646ef0
No known key found for this signature in database

@ -27,6 +27,9 @@ jobs:
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
- run: cargo install taplo-cli
- run: taplo fmt --check
- name: Check formatting - name: Check formatting
run: cargo fmt --all -- --check run: cargo fmt --all -- --check

@ -0,0 +1,5 @@
[[rule]]
[rule.formatting]
indent_string = " "
reorder_arrays = true

@ -10,7 +10,7 @@ proc-macro = true
[dependencies] [dependencies]
proc-macro2 = "1.0" proc-macro2 = "1.0"
quote = "1.0" quote = "1.0"
syn = {version = "2.0", features = ["full"]} syn = { version = "2.0", features = ["full"] }
[dev-dependencies] [dev-dependencies]
aya-bpf = { path = "../bpf/aya-bpf" } aya-bpf = { path = "../bpf/aya-bpf" }

@ -2,7 +2,7 @@
name = "aya-log-common" name = "aya-log-common"
version = "0.1.13" version = "0.1.13"
description = "A logging library for eBPF programs." description = "A logging library for eBPF programs."
keywords = ["ebpf", "bpf", "log", "logging"] keywords = ["bpf", "ebpf", "log", "logging"]
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
authors = ["The Aya Contributors"] authors = ["The Aya Contributors"]
repository = "https://github.com/aya-rs/aya-log" repository = "https://github.com/aya-rs/aya-log"

@ -2,7 +2,7 @@
name = "aya-log" name = "aya-log"
version = "0.1.13" version = "0.1.13"
description = "A logging library for eBPF programs." description = "A logging library for eBPF programs."
keywords = ["ebpf", "bpf", "log", "logging"] keywords = ["bpf", "ebpf", "log", "logging"]
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
authors = ["The Aya Contributors"] authors = ["The Aya Contributors"]
repository = "https://github.com/aya-rs/aya-log" repository = "https://github.com/aya-rs/aya-log"
@ -11,7 +11,7 @@ documentation = "https://docs.rs/aya-log"
edition = "2021" edition = "2021"
[dependencies] [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" } aya-log-common = { path = "../aya-log-common", version = "0.1.13" }
thiserror = "1" thiserror = "1"
log = "0.4" log = "0.4"

@ -6,4 +6,3 @@ edition = "2021"
[dependencies] [dependencies]
aya-bpf-cty = { path = "../aya-bpf-cty" } aya-bpf-cty = { path = "../aya-bpf-cty" }

@ -1,7 +1,7 @@
[package] [package]
authors = ["Jorge Aparicio <jorge@japaric.io>"] authors = ["Jorge Aparicio <jorge@japaric.io>"]
edition = "2021" 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" description = "Type aliases to C types like c_int for use with bindgen"
documentation = "https://docs.rs/cty" documentation = "https://docs.rs/cty"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"

@ -1,3 +1,3 @@
[build] [build]
publish = "site" publish = "site"
command = "rustup toolchain install nightly -c rust-src && cargo xtask docs" command = "rustup toolchain install nightly -c rust-src && cargo xtask docs"

@ -1,4 +1,3 @@
unstable_features = true unstable_features = true
reorder_imports = true reorder_imports = true
imports_granularity = "Crate" imports_granularity = "Crate"

Loading…
Cancel
Save