# bpf-script-derive
[](https://github.com/arcjustin/bpf-script-derive/actions?query=workflow%3Abuild)
[](https://crates.io/crates/bpf-script-derive)
[](https://docs.rs/bpf-script-derive/)
[](https://tokei.rs/b1/github/arcjustin/bpf-script-derive?category=code)
Provides a derive macro for `AddToDatabase` to make adding Rust types to a `bpf_script::types::TypeDatabase` easier.
## Usage
For usage examples, see code located in [examples/](examples/) :
|[custom-type](examples/custom-type.rs)| Creates and inserts a custom type into an empty BTF database|