Commit Graph

13 Commits (80ff80aa9ecbd86213ee27b0e7ec06872adc2ced)

Author SHA1 Message Date
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>
Tamir Duberstein 6580d77fa4 Use aya-build
Tamir Duberstein 59c882cebf Enable unwinding in userspace
Xiaobo Liu 1b37aad7f5 Update aya crate to 0.13.1
Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
Tamir Duberstein b1d6fb31ea Always build eBPF; remove xtask
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.
Tamir Duberstein ee45752006 Move dependencies to workspace
Add "{{project-name}}-ebpf" to workspace. Update various cargo configs
to match main aya repo.
Chris Pick 2ad877309a build: Set `resolver = "2"` at the workspace's Cargo.toml
This is the default resolver for the 2021 edition, but needs to be set
manually in virtual workspaces.

https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html#detail
Tamir Duberstein afdb45341f Remove branch specifications
The branch should be dictated by the repository.
Dave Tucker 3b2b186e0b Update dependency
Use `aya = ">=0.11"` and therefore the Aya version picked by
Cargo will be bounded by the latest version supported in
`aya-log = "0.1"` - once it's been released again.

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
Michal Rostecki 9f69ee52b2 aya: Switch (again) from crates.io to git
This time we need to switch to git again, because of this unreleased
change:

aya-rs/aya@d1f2215193

Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
Dave Tucker 5d018fd6ba Add xtask for building ebpf programs
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
Dave Tucker 9e1c761d8d Initial Commit
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>