Skip to content

Commit

Permalink
Build BPF decoder
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Young <[email protected]>
  • Loading branch information
seanyoung committed Apr 7, 2024
1 parent 1d30288 commit adac1a4
Show file tree
Hide file tree
Showing 6 changed files with 953 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup LLVM
uses: KyleMayes/[email protected]
with:
version: "17"
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ rust-version = "1.70.0"
exclude = [ "/.git*", "/testdata", "/tests" ]

[dependencies]
irp = { version = "0.3.2", path = "irp" }
irp = { version = "0.3.2", path = "irp", features = [ "bpf" ] }
clap = "3.1"
toml = "0.8"
serde = { version = "1.0", features = [ "derive" ] }
Expand Down
13 changes: 12 additions & 1 deletion irp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repository = "https://github.com/seanyoung/cir"
edition = "2021"
description = "Infrared IRP encoder and decoder"
documentation = "https://docs.rs/irp/"
keywords = [ "IRP", "IR", "infrared", "pronto" ]
keywords = [ "BPF", "IR", "infrared", "pronto" ]
readme = "README.md"
license = "MIT"
rust-version = "1.68.0"
Expand All @@ -23,8 +23,19 @@ log = "0.4"
peg = "0.8"
itertools = "0.12"
num-rational = "0.4"
inkwell = { version = "0.4", features = [ "target-bpf", "no-libffi-linking", "llvm17-0" ], optional = true }
once_cell = { version = "1.19", optional = true }

[features]
default = [ "bpf" ]
bpf = [ "inkwell", "once_cell" ]

[package.metadata.docs.rs]
no-default-features = true

[dev-dependencies]
cir = { path = ".." }
rand = "0.8"
irptransmogrifier = { path = "tests/rust-irptransmogrifier" }
aya-obj = "0.1"
rbpf = "0.2"
Loading

0 comments on commit adac1a4

Please sign in to comment.