Skip to content

Commit

Permalink
Refactor reverse proxy configuration to include libbpf-dev and bpf_st…
Browse files Browse the repository at this point in the history
…atic dependencies
  • Loading branch information
arloor committed Oct 22, 2024
1 parent ef71fbe commit 779a9ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ jobs:
use_musl: false
extra_deps: cmake zlib1g-dev libelf-dev pkg-config clang autoconf autopoint flex bison gawk make libbpf-dev
after_install: |
ls -lh /usr/lib/x86_64-linux-gnu/libelf.a
# ls -lh /usr/lib/x86_64-linux-gnu/libelf.a
export LIBBPF_SYS_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
echo \$LIBBPF_SYS_LIBRARY_PATH
args: -p rust_http_proxy --no-default-features --features aws_lc_rs,bpf_vendored
echo LIBBPF_SYS_LIBRARY_PATH=$LIBBPF_SYS_LIBRARY_PATH
args: -p rust_http_proxy --no-default-features --features aws_lc_rs,bpf_static -v
apt_mirror: mirrors.mit.edu
rust_flags: -C target-feature=+crt-static
debug: false
Expand Down
7 changes: 1 addition & 6 deletions rust_http_proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ default = ["ring"]
jemalloc = ["jemallocator"]
bpf = ["socket_filter", "cgroup_traffic"]
bpf_vendored = ["bpf", "libbpf-sys/vendored"]
bpf_static = [
"bpf",
"libbpf-sys/static-zlib",
"libbpf-sys/static-libelf",
"libbpf-sys/static-libbpf",
]
bpf_static = ["bpf", "libbpf-sys/static"]
aws_lc_rs = ["tokio-rustls/aws-lc-rs", "hyper-rustls/aws-lc-rs"]
ring = ["tokio-rustls/ring", "hyper-rustls/ring"]

0 comments on commit 779a9ec

Please sign in to comment.