Browse Source

taplo: reorder-keys

Group non-workspace keys before workspace ones for readability.
Tamir Duberstein 1 week ago
parent
commit
49a828ec56

+ 1 - 0
.taplo.toml

@@ -2,3 +2,4 @@
 
 [rule.formatting]
 indent_string = "    "
+reorder_keys = true

+ 3 - 3
Cargo.toml

@@ -49,11 +49,11 @@ default-members = [
 
 [workspace.package]
 authors = ["Aya Contributors"]
+edition = "2024"
+homepage = "https://aya-rs.dev"
 license = "MIT OR Apache-2.0"
 repository = "https://github.com/aya-rs/aya"
-homepage = "https://aya-rs.dev"
 rust-version = "1.85.0"
-edition = "2024"
 
 # NOTE(vadorovsky): Neither cargo-udeps nor cargo-machete are able to detect
 # unused crates defined in this section. It would be nice to teach either of
@@ -107,8 +107,8 @@ xdpilone = { version = "1.0.5", default-features = false }
 unused-extern-crates = "warn"
 
 [profile.release.package.integration-ebpf]
-debug = 2
 codegen-units = 1
+debug = 2
 
 [patch.crates-io]
 # TODO: Remove when https://github.com/rust-random/getrandom/commit/b75db5cede302bc9734f5bf2b9048a6e05c7f11e appears in a release.

+ 4 - 3
aya-build/Cargo.toml

@@ -1,13 +1,14 @@
 [package]
+description = "Build-time support for aya projects"
 name = "aya-build"
 version = "0.1.2"
-description = "Build-time support for aya projects"
+
 authors.workspace = true
+edition.workspace = true
+homepage.workspace = true
 license.workspace = true
 repository.workspace = true
-homepage.workspace = true
 rust-version.workspace = true
-edition.workspace = true
 
 [lints]
 workspace = true

+ 4 - 3
aya-ebpf-macros/Cargo.toml

@@ -1,13 +1,14 @@
 [package]
+description = "Proc macros used by aya-ebpf"
 name = "aya-ebpf-macros"
 version = "0.1.1"
-description = "Proc macros used by aya-ebpf"
+
 authors.workspace = true
+edition.workspace = true
+homepage.workspace = true
 license.workspace = true
 repository.workspace = true
-homepage.workspace = true
 rust-version.workspace = true
-edition.workspace = true
 
 [lints]
 workspace = true

+ 6 - 5
aya-log-common/Cargo.toml

@@ -1,15 +1,16 @@
 [package]
-name = "aya-log-common"
-version = "0.1.15"
 description = "A logging library for eBPF programs."
-keywords = ["bpf", "ebpf", "log", "logging"]
 documentation = "https://docs.rs/aya-log"
+keywords = ["bpf", "ebpf", "log", "logging"]
+name = "aya-log-common"
+version = "0.1.15"
+
 authors.workspace = true
+edition.workspace = true
+homepage.workspace = true
 license.workspace = true
 repository.workspace = true
-homepage.workspace = true
 rust-version.workspace = true
-edition.workspace = true
 
 [lints]
 workspace = true

+ 4 - 3
aya-log-ebpf-macros/Cargo.toml

@@ -1,13 +1,14 @@
 [package]
+description = "Proc macros used by aya-log-ebpf"
 name = "aya-log-ebpf-macros"
 version = "0.1.0"
-description = "Proc macros used by aya-log-ebpf"
+
 authors.workspace = true
+edition.workspace = true
+homepage.workspace = true
 license.workspace = true
 repository.workspace = true
-homepage.workspace = true
 rust-version.workspace = true
-edition.workspace = true
 
 [lints]
 workspace = true

+ 4 - 3
aya-log-parser/Cargo.toml

@@ -1,13 +1,14 @@
 [package]
+description = "A parser for the aya log format strings"
 name = "aya-log-parser"
 version = "0.1.13"
-description = "A parser for the aya log format strings"
+
 authors.workspace = true
+edition.workspace = true
+homepage.workspace = true
 license.workspace = true
 repository.workspace = true
-homepage.workspace = true
 rust-version.workspace = true
-edition.workspace = true
 
 [lints]
 workspace = true

+ 6 - 5
aya-log/Cargo.toml

@@ -1,16 +1,17 @@
 [package]
-name = "aya-log"
-version = "0.2.1"
 description = "A logging library for eBPF programs."
+documentation = "https://docs.rs/aya-log"
 keywords = ["bpf", "ebpf", "log", "logging"]
+name = "aya-log"
 readme = "README.md"
-documentation = "https://docs.rs/aya-log"
+version = "0.2.1"
+
 authors.workspace = true
+edition.workspace = true
+homepage.workspace = true
 license.workspace = true
 repository.workspace = true
-homepage.workspace = true
 rust-version.workspace = true
-edition.workspace = true
 
 [lints]
 workspace = true

+ 6 - 5
aya-obj/Cargo.toml

@@ -1,16 +1,17 @@
 [package]
-name = "aya-obj"
-version = "0.2.1"
 description = "An eBPF object file parsing library with BTF and relocation support."
+documentation = "https://docs.rs/aya-obj"
 keywords = ["bpf", "btf", "ebpf", "elf", "object"]
+name = "aya-obj"
 readme = "README.md"
-documentation = "https://docs.rs/aya-obj"
+version = "0.2.1"
+
 authors.workspace = true
+edition.workspace = true
+homepage.workspace = true
 license.workspace = true
 repository.workspace = true
-homepage.workspace = true
 rust-version.workspace = true
-edition.workspace = true
 
 [lints]
 workspace = true

+ 7 - 6
aya-tool/Cargo.toml

@@ -1,21 +1,22 @@
 [package]
+description = "A tool for generating bindings for Linux Kernel types"
 name = "aya-tool"
-version = "0.1.0"
 publish = false
-description = "A tool for generating bindings for Linux Kernel types"
+version = "0.1.0"
+
 authors.workspace = true
+edition.workspace = true
+homepage.workspace = true
 license.workspace = true
 repository.workspace = true
-homepage.workspace = true
 rust-version.workspace = true
-edition.workspace = true
 
 [lints]
 workspace = true
 
 [dependencies]
+anyhow = { workspace = true, default-features = true }
 bindgen = { workspace = true, default-features = true }
 clap = { workspace = true, default-features = true, features = ["derive"] }
-anyhow = { workspace = true, default-features = true }
-thiserror = { workspace = true }
 tempfile = { workspace = true }
+thiserror = { workspace = true }

+ 8 - 7
aya/Cargo.toml

@@ -1,16 +1,17 @@
 [package]
-name = "aya"
-version = "0.13.1"
 description = "An eBPF library with a focus on developer experience and operability."
+documentation = "https://docs.rs/aya"
 keywords = ["bpf", "ebpf", "kernel", "linux"]
+name = "aya"
 readme = "README.md"
-documentation = "https://docs.rs/aya"
+version = "0.13.1"
+
 authors.workspace = true
+edition.workspace = true
+homepage.workspace = true
 license.workspace = true
 repository.workspace = true
-homepage.workspace = true
 rust-version.workspace = true
-edition.workspace = true
 
 [lints]
 workspace = true
@@ -33,9 +34,9 @@ tokio = { workspace = true, features = ["rt"], optional = true }
 tempfile = { workspace = true }
 
 [features]
-default = []
-async_tokio = ["tokio/net"]
 async_std = ["dep:async-io"]
+async_tokio = ["tokio/net"]
+default = []
 
 [package.metadata.docs.rs]
 all-features = true

+ 4 - 3
ebpf/aya-ebpf-bindings/Cargo.toml

@@ -1,12 +1,13 @@
 [package]
+description = "Bindings for Linux Kernel eBPF types and helpers"
 name = "aya-ebpf-bindings"
 version = "0.1.1"
-description = "Bindings for Linux Kernel eBPF types and helpers"
+
 authors.workspace = true
+edition.workspace = true
+homepage.workspace = true
 license.workspace = true
 repository.workspace = true
-homepage.workspace = true
-edition.workspace = true
 
 [lints]
 workspace = true

+ 3 - 2
ebpf/aya-ebpf-cty/Cargo.toml

@@ -4,12 +4,13 @@ description = "Type aliases to C types like c_int for use with bindgen"
 documentation = "https://docs.rs/aya-bpf-cty"
 name = "aya-ebpf-cty"
 version = "0.2.2"
+
 authors.workspace = true
+edition.workspace = true
+homepage.workspace = true
 license.workspace = true
 repository.workspace = true
-homepage.workspace = true
 rust-version.workspace = true
-edition.workspace = true
 
 [lints]
 workspace = true

+ 5 - 4
ebpf/aya-ebpf/Cargo.toml

@@ -1,21 +1,22 @@
 [package]
+description = "A library for writing eBPF programs"
 name = "aya-ebpf"
 version = "0.1.1"
-description = "A library for writing eBPF programs"
+
 authors.workspace = true
+edition.workspace = true
+homepage.workspace = true
 license.workspace = true
 repository.workspace = true
-homepage.workspace = true
 rust-version.workspace = true
-edition.workspace = true
 
 [lints]
 workspace = true
 
 [dependencies]
+aya-ebpf-bindings = { version = "^0.1.1", path = "../aya-ebpf-bindings" }
 aya-ebpf-cty = { version = "^0.2.2", path = "../aya-ebpf-cty" }
 aya-ebpf-macros = { version = "^0.1.1", path = "../../aya-ebpf-macros" }
-aya-ebpf-bindings = { version = "^0.1.1", path = "../aya-ebpf-bindings" }
 
 [build-dependencies]
 rustversion = { workspace = true }

+ 4 - 3
ebpf/aya-log-ebpf/Cargo.toml

@@ -1,13 +1,14 @@
 [package]
+description = "Logging for eBPF programs"
 name = "aya-log-ebpf"
 version = "0.1.1"
-description = "Logging for eBPF programs"
+
 authors.workspace = true
+edition.workspace = true
+homepage.workspace = true
 license.workspace = true
 repository.workspace = true
-homepage.workspace = true
 rust-version.workspace = true
-edition.workspace = true
 
 [lints]
 workspace = true

+ 4 - 3
init/Cargo.toml

@@ -1,13 +1,14 @@
 [package]
 name = "init"
-version = "0.1.0"
 publish = false
+version = "0.1.0"
+
 authors.workspace = true
+edition.workspace = true
+homepage.workspace = true
 license.workspace = true
 repository.workspace = true
-homepage.workspace = true
 rust-version.workspace = true
-edition.workspace = true
 
 [lints]
 workspace = true

+ 1 - 1
netlify.toml

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

+ 1 - 1
release.toml

@@ -1,2 +1,2 @@
-pre-release-commit-message = "{{crate_name}}: release version {{version}}"
 consolidate-commits = true
+pre-release-commit-message = "{{crate_name}}: release version {{version}}"

+ 4 - 3
test/integration-common/Cargo.toml

@@ -1,13 +1,14 @@
 [package]
 name = "integration-common"
-version = "0.1.0"
 publish = false
+version = "0.1.0"
+
 authors.workspace = true
+edition.workspace = true
+homepage.workspace = true
 license.workspace = true
 repository.workspace = true
-homepage.workspace = true
 rust-version.workspace = true
-edition.workspace = true
 
 [lints]
 workspace = true

+ 4 - 3
test/integration-ebpf/Cargo.toml

@@ -1,13 +1,14 @@
 [package]
 name = "integration-ebpf"
-version = "0.1.0"
 publish = false
+version = "0.1.0"
+
 authors.workspace = true
+edition.workspace = true
+homepage.workspace = true
 license.workspace = true
 repository.workspace = true
-homepage.workspace = true
 rust-version.workspace = true
-edition.workspace = true
 
 [lints]
 workspace = true

+ 4 - 3
test/integration-test/Cargo.toml

@@ -1,13 +1,14 @@
 [package]
 name = "integration-test"
-version = "0.1.0"
 publish = false
+version = "0.1.0"
+
 authors.workspace = true
+edition.workspace = true
+homepage.workspace = true
 license.workspace = true
 repository.workspace = true
-homepage.workspace = true
 rust-version.workspace = true
-edition.workspace = true
 
 [lints]
 workspace = true

+ 4 - 3
xtask/Cargo.toml

@@ -1,13 +1,14 @@
 [package]
 name = "xtask"
-version = "0.1.0"
 publish = false
+version = "0.1.0"
+
 authors.workspace = true
+edition.workspace = true
+homepage.workspace = true
 license.workspace = true
 repository.workspace = true
-homepage.workspace = true
 rust-version.workspace = true
-edition.workspace = true
 
 [lints]
 workspace = true