Browse Source

Merge pull request #882 from dave-tucker/metadata

chore: Use the cargo workspace package table
Dave Tucker 1 year ago
parent
commit
0fadd69537

+ 7 - 0
Cargo.toml

@@ -43,6 +43,13 @@ default-members = [
     # CARGO_CFG_BPF_TARGET_ARCH={x86_64,aarch64,arm,riscv64}
     # CARGO_CFG_BPF_TARGET_ARCH={x86_64,aarch64,arm,riscv64}
 ]
 ]
 
 
+[workspace.package]
+authors = ["Aya Contributors"]
+license = "MIT OR Apache-2.0"
+repository = "https://github.com/aya-rs/aya"
+homepage = "https://aya-rs.dev"
+edition = "2021"
+
 # NOTE(vadorovsky): Neither cargo-udeps nor cargo-machete are able to detect
 # 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
 # unused crates defined in this section. It would be nice to teach either of
 # them to do that, but in the meantime we need to be careful.
 # them to do that, but in the meantime we need to be careful.

+ 6 - 2
aya-bpf-macros/Cargo.toml

@@ -1,8 +1,12 @@
 [package]
 [package]
 name = "aya-bpf-macros"
 name = "aya-bpf-macros"
 version = "0.1.0"
 version = "0.1.0"
-authors = ["Alessandro Decina <[email protected]>"]
-edition = "2021"
+description = "Proc macros used by aya-bpf"
+authors.workspace = true
+license.workspace = true
+repository.workspace = true
+homepage.workspace = true
+edition.workspace = true
 
 
 [lib]
 [lib]
 proc-macro = true
 proc-macro = true

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

@@ -3,11 +3,12 @@ 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 = ["bpf", "ebpf", "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"
 documentation = "https://docs.rs/aya-log"
 documentation = "https://docs.rs/aya-log"
-edition = "2021"
+authors.workspace = true
+license.workspace = true
+repository.workspace = true
+homepage.workspace = true
+edition.workspace = true
 
 
 [dependencies]
 [dependencies]
 num_enum = { workspace = true }
 num_enum = { workspace = true }

+ 6 - 1
aya-log-ebpf-macros/Cargo.toml

@@ -1,7 +1,12 @@
 [package]
 [package]
 name = "aya-log-ebpf-macros"
 name = "aya-log-ebpf-macros"
 version = "0.1.0"
 version = "0.1.0"
-edition = "2021"
+description = "Proc macros used by aya-log-ebpf"
+authors.workspace = true
+license.workspace = true
+repository.workspace = true
+homepage.workspace = true
+edition.workspace = true
 
 
 [dependencies]
 [dependencies]
 aya-log-common = { workspace = true }
 aya-log-common = { workspace = true }

+ 6 - 1
aya-log-parser/Cargo.toml

@@ -1,7 +1,12 @@
 [package]
 [package]
 name = "aya-log-parser"
 name = "aya-log-parser"
 version = "0.1.11-dev.0"
 version = "0.1.11-dev.0"
-edition = "2021"
+description = "A parser for the aya log format strings"
+authors.workspace = true
+license.workspace = true
+repository.workspace = true
+homepage.workspace = true
+edition.workspace = true
 
 
 [dependencies]
 [dependencies]
 aya-log-common = { workspace = true }
 aya-log-common = { workspace = true }

+ 5 - 4
aya-log/Cargo.toml

@@ -3,12 +3,13 @@ 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 = ["bpf", "ebpf", "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"
 readme = "README.md"
 readme = "README.md"
 documentation = "https://docs.rs/aya-log"
 documentation = "https://docs.rs/aya-log"
-edition = "2021"
+authors.workspace = true
+license.workspace = true
+repository.workspace = true
+homepage.workspace = true
+edition.workspace = true
 
 
 [dependencies]
 [dependencies]
 aya = { workspace = true, features = ["async_tokio"] }
 aya = { workspace = true, features = ["async_tokio"] }

+ 5 - 4
aya-obj/Cargo.toml

@@ -3,12 +3,13 @@ name = "aya-obj"
 version = "0.1.0"
 version = "0.1.0"
 description = "An eBPF object file parsing library with BTF and relocation support."
 description = "An eBPF object file parsing library with BTF and relocation support."
 keywords = ["bpf", "btf", "ebpf", "elf", "object"]
 keywords = ["bpf", "btf", "ebpf", "elf", "object"]
-license = "MIT OR Apache-2.0"
-authors = ["The Aya Contributors"]
-repository = "https://github.com/aya-rs/aya"
 readme = "README.md"
 readme = "README.md"
 documentation = "https://docs.rs/aya-obj"
 documentation = "https://docs.rs/aya-obj"
-edition = "2021"
+authors.workspace = true
+license.workspace = true
+repository.workspace = true
+homepage.workspace = true
+edition.workspace = true
 
 
 [dependencies]
 [dependencies]
 bytes = { workspace = true }
 bytes = { workspace = true }

+ 6 - 2
aya-tool/Cargo.toml

@@ -1,8 +1,12 @@
 [package]
 [package]
 name = "aya-tool"
 name = "aya-tool"
 version = "0.1.0"
 version = "0.1.0"
-authors = ["Alessandro Decina <[email protected]>"]
-edition = "2021"
+description = "A tool for generating bindings for Linux Kernel types"
+authors.workspace = true
+license.workspace = true
+repository.workspace = true
+homepage.workspace = true
+edition.workspace = true
 
 
 [dependencies]
 [dependencies]
 bindgen = { workspace = true, default-features = true }
 bindgen = { workspace = true, default-features = true }

+ 5 - 4
aya/Cargo.toml

@@ -3,13 +3,14 @@ name = "aya"
 version = "0.11.0"
 version = "0.11.0"
 description = "An eBPF library with a focus on developer experience and operability."
 description = "An eBPF library with a focus on developer experience and operability."
 keywords = ["bpf", "ebpf", "kernel", "linux"]
 keywords = ["bpf", "ebpf", "kernel", "linux"]
-license = "MIT OR Apache-2.0"
-authors = ["The Aya Contributors"]
-repository = "https://github.com/aya-rs/aya"
 readme = "README.md"
 readme = "README.md"
 documentation = "https://docs.rs/aya"
 documentation = "https://docs.rs/aya"
-edition = "2021"
 rust-version = "1.66"
 rust-version = "1.66"
+authors.workspace = true
+license.workspace = true
+repository.workspace = true
+homepage.workspace = true
+edition.workspace = true
 
 
 [dependencies]
 [dependencies]
 assert_matches = { workspace = true }
 assert_matches = { workspace = true }

+ 6 - 2
bpf/aya-bpf-bindings/Cargo.toml

@@ -1,8 +1,12 @@
 [package]
 [package]
 name = "aya-bpf-bindings"
 name = "aya-bpf-bindings"
 version = "0.1.0"
 version = "0.1.0"
-authors = ["Alessandro Decina <[email protected]>"]
-edition = "2021"
+description = "Bindings for Linux Kernel eBPF types and helpers"
+authors.workspace = true
+license.workspace = true
+repository.workspace = true
+homepage.workspace = true
+edition.workspace = true
 
 
 [dependencies]
 [dependencies]
 aya-bpf-cty = { path = "../aya-bpf-cty" }
 aya-bpf-cty = { path = "../aya-bpf-cty" }

+ 6 - 4
bpf/aya-bpf-cty/Cargo.toml

@@ -1,9 +1,11 @@
 [package]
 [package]
-authors = ["Jorge Aparicio <[email protected]>"]
-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"
-license = "MIT OR Apache-2.0"
+documentation = "https://docs.rs/aya-bpf-cty"
 name = "aya-bpf-cty"
 name = "aya-bpf-cty"
 version = "0.2.1"
 version = "0.2.1"
+authors.workspace = true
+license.workspace = true
+repository.workspace = true
+homepage.workspace = true
+edition.workspace = true

+ 6 - 2
bpf/aya-bpf/Cargo.toml

@@ -1,8 +1,12 @@
 [package]
 [package]
 name = "aya-bpf"
 name = "aya-bpf"
 version = "0.1.0"
 version = "0.1.0"
-authors = ["Alessandro Decina <[email protected]>"]
-edition = "2021"
+description = "A library for writing eBPF programs"
+authors.workspace = true
+license.workspace = true
+repository.workspace = true
+homepage.workspace = true
+edition.workspace = true
 
 
 [dependencies]
 [dependencies]
 aya-bpf-cty = { path = "../aya-bpf-cty" }
 aya-bpf-cty = { path = "../aya-bpf-cty" }

+ 6 - 1
bpf/aya-log-ebpf/Cargo.toml

@@ -1,7 +1,12 @@
 [package]
 [package]
 name = "aya-log-ebpf"
 name = "aya-log-ebpf"
 version = "0.1.0"
 version = "0.1.0"
-edition = "2021"
+description = "Logging for eBPF programs"
+authors.workspace = true
+license.workspace = true
+repository.workspace = true
+homepage.workspace = true
+edition.workspace = true
 
 
 [dependencies]
 [dependencies]
 aya-bpf = { path = "../aya-bpf" }
 aya-bpf = { path = "../aya-bpf" }

+ 5 - 2
init/Cargo.toml

@@ -1,9 +1,12 @@
 [package]
 [package]
 name = "init"
 name = "init"
 version = "0.1.0"
 version = "0.1.0"
-authors = ["Tamir Duberstein <[email protected]>"]
-edition = "2021"
 publish = false
 publish = false
+authors.workspace = true
+license.workspace = true
+repository.workspace = true
+homepage.workspace = true
+edition.workspace = true
 
 
 [dependencies]
 [dependencies]
 anyhow = { workspace = true, features = ["std"] }
 anyhow = { workspace = true, features = ["std"] }

+ 5 - 1
test/integration-ebpf/Cargo.toml

@@ -1,8 +1,12 @@
 [package]
 [package]
 name = "integration-ebpf"
 name = "integration-ebpf"
 version = "0.1.0"
 version = "0.1.0"
-edition = "2021"
 publish = false
 publish = false
+authors.workspace = true
+license.workspace = true
+repository.workspace = true
+homepage.workspace = true
+edition.workspace = true
 
 
 [dependencies]
 [dependencies]
 aya-bpf = { path = "../../bpf/aya-bpf" }
 aya-bpf = { path = "../../bpf/aya-bpf" }

+ 5 - 1
test/integration-test/Cargo.toml

@@ -1,8 +1,12 @@
 [package]
 [package]
 name = "integration-test"
 name = "integration-test"
 version = "0.1.0"
 version = "0.1.0"
-edition = "2021"
 publish = false
 publish = false
+authors.workspace = true
+license.workspace = true
+repository.workspace = true
+homepage.workspace = true
+edition.workspace = true
 
 
 [dependencies]
 [dependencies]
 anyhow = { workspace = true, features = ["std"] }
 anyhow = { workspace = true, features = ["std"] }

+ 5 - 2
xtask/Cargo.toml

@@ -1,9 +1,12 @@
 [package]
 [package]
 name = "xtask"
 name = "xtask"
 version = "0.1.0"
 version = "0.1.0"
-authors = ["Alessandro Decina <[email protected]>"]
-edition = "2021"
 publish = false
 publish = false
+authors.workspace = true
+license.workspace = true
+repository.workspace = true
+homepage.workspace = true
+edition.workspace = true
 
 
 [dependencies]
 [dependencies]
 anyhow = { workspace = true, features = ["std"] }
 anyhow = { workspace = true, features = ["std"] }