-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "{{project-name}}-ebpf" to workspace. Update various cargo configs to match main aya repo.
- Loading branch information
Showing
13 changed files
with
91 additions
and
93 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,35 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = ["xtask", "{{project-name}}", "{{project-name}}-common"] | ||
members = ["xtask", "{{project-name}}", "{{project-name}}-common", "{{project-name}}-ebpf"] | ||
default-members = ["xtask", "{{project-name}}", "{{project-name}}-common"] | ||
|
||
[workspace.dependencies] | ||
aya = { version = "0.13.0", default-features = false } | ||
aya-ebpf = { version = "0.1.1", default-features = false } | ||
aya-log = { version = "0.2.1", default-features = false } | ||
aya-log-ebpf = { version = "0.1.1", default-features = false } | ||
|
||
anyhow = { version = "1", default-features = false } | ||
# `std` feature is currently required to build `clap`. | ||
# | ||
# See https://github.com/clap-rs/clap/blob/61f5ee5/clap_builder/src/lib.rs#L15. | ||
clap = { version = "4.5.20", default-features = false, features = ["std"] } | ||
env_logger = { version = "0.11.5", default-features = false } | ||
libc = { version = "0.2.159", default-features = false } | ||
log = { version = "0.4.22", default-features = false } | ||
tokio = { version = "1.40.0", default-features = false } | ||
|
||
[profile.dev] | ||
opt-level = 3 | ||
debug = false | ||
overflow-checks = false | ||
lto = true | ||
panic = "abort" | ||
incremental = false | ||
codegen-units = 1 | ||
rpath = false | ||
|
||
[profile.release] | ||
lto = true | ||
panic = "abort" | ||
codegen-units = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
# We have this so that one doesn't need to manually pass | ||
# --target=bpfel-unknown-none -Z build-std=core when running cargo | ||
# check/build/doc etc. | ||
# | ||
# NB: this file gets loaded only if you run cargo from this directory, it's | ||
# ignored if you run from the workspace root. See | ||
# https://doc.rust-lang.org/cargo/reference/config.html#hierarchical-structure | ||
[build] | ||
target-dir = "../target" | ||
target = "bpfel-unknown-none" | ||
target = ["bpfeb-unknown-none", "bpfel-unknown-none"] | ||
|
||
[unstable] | ||
build-std = ["core"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,2 @@ | ||
[toolchain] | ||
channel = "nightly" | ||
# The source code of rustc, provided by the rust-src component, is needed for | ||
# building eBPF programs. | ||
components = [ | ||
"cargo", | ||
"clippy", | ||
"rust-docs", | ||
"rust-src", | ||
"rust-std", | ||
"rustc", | ||
"rustfmt", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters