Skip to content

Commit

Permalink
Refactor reverse proxy configuration to include clang and update comm…
Browse files Browse the repository at this point in the history
…ents
  • Loading branch information
arloor committed Oct 22, 2024
1 parent a6ec28c commit a57e632
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
uses: arloor/rust_musl_action@latest
with:
use_musl: false
extra_deps: cmake zlib1g-dev libelf-dev libbpf-dev pkg-config make clang
extra_deps: cmake zlib1g-dev libelf-dev libbpf-dev clang
after_install: |
# find / -name libelf.a
# find / -name libbpf.a
Expand Down
12 changes: 5 additions & 7 deletions rust_http_proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,15 @@ serde_yaml = "0.9"
serde = { version = "1.0", features = ["derive"] }

[target.'cfg(target_os = "linux")'.dependencies]
socket_filter = { version = "0.2", optional = true }
# socket_filter = { git = "https://github.com/arloor/bpf_rs_hub", optional = true }
cgroup_traffic = { version = "0.2", optional = true }
libbpf-sys = { version = "1", optional = true }
socket_filter = { version = "0.2", optional = true, default-features = false }
cgroup_traffic = { version = "0.2", optional = true, default-features = false }
pnet = { version = "0.35", optional = true }

[features]
default = ["ring"]
jemalloc = ["jemallocator"]
bpf = ["socket_filter", "cgroup_traffic"]
bpf_vendored = ["bpf", "socket_filter/vendored"]
bpf_static = ["bpf", "socket_filter/static"]
bpf = ["socket_filter/default", "cgroup_traffic/default"]
bpf_vendored = ["socket_filter/vendored", "cgroup_traffic/vendored"]
bpf_static = ["socket_filter/static", "cgroup_traffic/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 a57e632

Please sign in to comment.