mirror of https://github.com/aya-rs/aya
ebpf: Add example
This ensures that macro expansion works properly and that expanded code compiles Signed-off-by: Dave Tucker <dave@dtucker.co.uk>pull/350/head
parent
5d82d9a73e
commit
5789585994
@ -1,2 +1,12 @@
|
|||||||
[workspace]
|
[workspace]
|
||||||
members = ["aya-log-ebpf", "aya-log-ebpf-macros"]
|
members = ["aya-log-ebpf", "aya-log-ebpf-macros", "example"]
|
||||||
|
|
||||||
|
|
||||||
|
[profile.dev]
|
||||||
|
panic = "abort"
|
||||||
|
debug = 1
|
||||||
|
opt-level = 2
|
||||||
|
overflow-checks = false
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
panic = "abort"
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
[package]
|
||||||
|
name = "example"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2018"
|
||||||
|
publish = false
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
aya-bpf = { git = "https://github.com/aya-rs/aya", branch = "main" }
|
||||||
|
aya-log-ebpf = { path = "../aya-log-ebpf" }
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "example"
|
||||||
|
path = "src/main.rs"
|
Loading…
Reference in New Issue