miniduikboot
afb0920b84
Merge 1f3cd0446d into 608b6910e2
1 week ago
Tamir Duberstein
608b6910e2
Update for perf_event API
2 weeks ago
Ez-FlawLess
b61f19a54d
Move sudo runner configuration to .cargo/config.toml ( #155 )
...
This simplifies common usage.
4 weeks ago
Tamir Duberstein
c8970881ef
Update to macOS 15
1 month ago
Joseph Ligier
a515461033
Add xdp and classifier interface
1 month ago
miniduikboot
1f3cd0446d
Add docs for bin source, not lib source code
...
If a crate has both a lib and a bin target, cargo will prefer to
generate for the library target[1]. By renaming the library target, we
force cargo to document the binary instead.
[1]: 3b379fcc54/src/doc/src/reference/cargo-targets.md (the-doc-field)
2 months ago
miniduikboot
b97fd36ad5
Check in CI if unified docs can be generated
2 months ago
miniduikboot
59d0627d72
Rename output of -ebpf crate
...
This makes it possible to run `cargo doc --workspace` and get both the
eBPF and normal crate and their dependencies in the output docs.
Fixes: https://github.com/aya-rs/aya/issues/1260
2 months ago
Tamir Duberstein
0158e1b8e0
Adapt to removal of `async_tokio` feature
...
See https://github.com/aya-rs/aya/commit/35332f2288b0bbb8981233ae464715 .
2 months ago
脑袋里进花生了
b263338358
fix: use the correct return value for cgroup_skb
...
`cgroup_skb` returns 0 will block traffic in the current direction.
An example program should not block traffic, this can cause difficulties for beginners.
2 months ago
dependabot[bot]
0fc3f2934e
Merge pull request #154 from aya-rs/dependabot/github_actions/actions/checkout-5
2 months ago
dependabot[bot]
a5f3162412
Bump actions/checkout from 4 to 5
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2 months ago
Tamir Duberstein
648b7b791d
Supply LLVM version feature to fix mac CI
2 months ago
Tamir Duberstein
e50b81fd67
Bump edition to 2024
4 months ago
Pravin Kamble
71c366d943
fix: update tracepoint_name regex to allow colon (:)
5 months ago
Tamir Duberstein
c5300da1a1
appease `clippy::uninlined-format-args`
6 months ago
Dave Tucker
80ff80aa9e
Merge pull request #144 from dave-tucker/license
...
chore: Add LICENSE
7 months ago
Dave Tucker
dc44c8cd99
chore: Add LICENSE
...
This adds a LICENSE to the generated code, but also to the code included
in this repository. To make things simple, userspace code is Apache/MIT
licensed - like Aya. eBPF code is MIT/GPL which is GPL compatible to
allow use of all the eBPF helper functions, but is also permissively
licensed via the MIT license.
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
7 months ago
Tamir Duberstein
ab8d5d7c0a
ci: `brew update` to install LLVM 20
7 months ago
Andras Gemes
bc8848eb62
docs: update LSM hook prompt to reference lsm_hook_defs.h
9 months ago
Tamir Duberstein
273f30a0da
ci: use latest stable rust
...
cargo_metadata depends on e.g. `home`[0] whose MSRV is N-2[1], so we
can't easily pin our Rust version.
Link: https://crates.io/crates/home [0]
Link: https://github.com/rust-lang/cargo/commit/c6c1df47 [1]
10 months ago
Tamir Duberstein
6580d77fa4
Use aya-build
11 months ago
Tamir Duberstein
cb9ab79705
toml: fmt
11 months ago
Tamir Duberstein
77cbc8bcf9
Remove rust-toolchain
...
Doesn't make much sense in a workspace.
11 months ago
Tamir Duberstein
59c882cebf
Enable unwinding in userspace
11 months ago
Xiaobo Liu
1b37aad7f5
Update aya crate to 0.13.1
...
Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
11 months ago
Tamir Duberstein
b1d6fb31ea
Always build eBPF; remove xtask
1 year ago
Tamir Duberstein
27e7867528
Add cross-compilation to CI
...
Updates the README to use cargo target config instead of RUSTFLAGS to
avoid setting the linker for ebpf in cargo-in-cargo.
1 year ago
Tamir Duberstein
89eb550856
Reformat test.sh
1 year ago
Zero King
0c8fb43804
chore: Format Cargo.toml
1 year ago
Tamir Duberstein
20ce988ecf
Document cross-compilation on macOS
...
The instructions in the book are now out of date for projects generated
with this template. Since the instructions are much shorter these days,
put them in the README.
1 year ago
Tamir Duberstein
5622ca4df1
Test execution of projects
1 year ago
Tamir Duberstein
940a60e0a3
Move user-facing messages to from log to print
1 year ago
Tamir Duberstein
32f914aa6d
Add error context
1 year ago
Tamir Duberstein
263f115fdc
Use destructuring
1 year ago
Tamir Duberstein
f131e87764
Use TCP listener instead of stream
...
This doesn't require a listener on the other side.
1 year ago
Tamir Duberstein
dec0021b58
Use cancel-in-progress
1 year ago
Tamir Duberstein
b6ecbb8bd1
Appease shellcheck
1 year ago
Tamir Duberstein
7425e7bd2d
Add Rust 1.80.1 to CI
1 year ago
Tamir Duberstein
8250a09bc0
Add rustfmt to CI
1 year ago
Tamir Duberstein
5811d6ff56
Replace xtask builds with build scripts
...
Adapt https://github.com/aya-rs/aya/commit/3d463a3 and subsequent work
to the template. This has worked very well for us in the main project,
and our users should get the same hotness.
Note that xtask is still used for running, as it is in the main project.
1 year ago
Tamir Duberstein
4da4bf4729
Run clippy in CI
...
Install Rust stable *after* nightly so that the default is stable.
1 year ago
Tamir Duberstein
ee45752006
Move dependencies to workspace
...
Add "{{project-name}}-ebpf" to workspace. Update various cargo configs
to match main aya repo.
1 year ago
Dave Tucker
e064758d59
Merge pull request #122 from cppcoffee/main
...
Update aya version to 0.13
1 year ago
Xiaobo Liu
d889dd373b
Upgrade aya version
...
Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
1 year ago
Xiaobo Liu
44c1f66b7e
ebpf: merge rust-analyzer settings
...
Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
1 year ago
Xiaobo Liu
04b631eb7c
ebpf: consolidate rust-analyzer settings
...
Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
1 year ago
Tamir Duberstein
91518b64b3
Build on ubuntu-22.04
...
This matches the version used in the bpf-linker binstall job. Otherwise
we fail with:
```
= note: bpf-linker: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by bpf-linker)
bpf-linker: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by bpf-linker)
bpf-linker: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by bpf-linker)
```
Add a nightly build so we catch these earlier.
1 year ago
Zero King
0afbca858c
chore: remove Cargo.lock from .gitignore ( #113 )
...
Fixes #112
1 year ago
Zero King
79b73bf2ef
fix: emacs directory locals
...
- Emacs vectors do not have "," separator.
- The .dir-locals.el list is checked against major mode names, but
lsp-mode could be a minor mode. Use the generic prog-mode instead.
1 year ago