Skip to content

Commit 8d12c13

Browse files
authored
Publish fixups (#5)
* fixup * more gitignore * clarify * Add action for llvm
1 parent c542163 commit 8d12c13

5 files changed

Lines changed: 31 additions & 2 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: 'Install LLVM Dependencies'
2+
description: 'Install LLVM and Clang dependencies'
3+
runs:
4+
using: composite
5+
steps:
6+
- name: Install llvm deps
7+
shell: bash
8+
run: |
9+
sudo apt-get update
10+
sudo apt-get install -y clang cmake build-essential llvm-dev libclang-dev

.github/workflows/ci-code.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
submodules: recursive
3030
persist-credentials: false
3131

32+
- name: Install llvm deps
33+
uses: ./.github/actions/install-llvm
34+
3235
- name: 'cargo fmt'
3336
run: cargo fmt --all -- --check
3437

@@ -54,6 +57,9 @@ jobs:
5457
submodules: recursive
5558
persist-credentials: false
5659

60+
- name: Install llvm deps
61+
uses: ./.github/actions/install-llvm
62+
5763
- name: cargo build
5864
run: cargo build
5965

@@ -77,5 +83,9 @@ jobs:
7783
with:
7884
submodules: recursive
7985
persist-credentials: false
86+
87+
- name: Install llvm deps
88+
uses: ./.github/actions/install-llvm
89+
8090
- name: 'cargo clippy'
8191
run: cargo clippy

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/target
22
/local
3+
*.orig

Cargo.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@ name = "libscap-bindings"
33
description = "Bindings for Falco's `libscap` eBPF monitoring backend C library"
44
version = "0.0.1"
55
license = "Apache-2.0"
6-
version = "0.0.1"
76
homepage = "https://github.com/edera-dev/libscap-bindings"
87
repository = "https://github.com/edera-dev/libscap-bindings"
98
edition = "2024"
9+
keywords = ["falco", "libscap", "eBPF", "bindings"]
10+
categories = ["exteral-ffi-bindings", "os::linux-apis"]
11+
exclude = [
12+
".github",
13+
".release-plz.toml",
14+
"**/*.orig"
15+
]
1016

1117
[dependencies]
1218
anyhow = "1.0.99"
@@ -29,7 +35,7 @@ tar = "0.4.44"
2935
libc = "0.2.175"
3036

3137
[target.'cfg(target_env = "musl")'.build-dependencies]
32-
bindgen = { workspace = true, default-features = false, features = ["logging", "prettyplease", "static"] }
38+
bindgen = { version = "0.72", default-features = false, features = ["logging", "prettyplease", "static"] }
3339

3440
[features]
3541
default = ["full_bindings"]

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Basic `bindgen` types and glue generated against [Falco's libscap C library](https://github.com/falcosecurity/libs/tree/master/userspace/libscap).
44

5+
Currently, only `gnu` and `musl` x86 targets are tested, and only Linux is supported.
6+
57
## Usage
68

79
This crate needs build tools and build libraries sufficient to compile Falco's `libscap` C lib, which is the bulk of what [`build.rs`](./build.rs) sets up.

0 commit comments

Comments
 (0)