Skip to content

Commit 6e1f213

Browse files
committed
Stop specifying version for vmlinux dependency
The vmlinux crate isn't really versioned as such, as the only compatibility guarantee provided is that git history won't be clobbered. There is also no intention of publishing it. As such, there is no point in specifying a version -- the SHA1 pinning the git commit is sufficient. Remove any version specifications. Signed-off-by: Daniel Müller <deso@posteo.net>
1 parent 6821942 commit 6e1f213

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

examples/capable/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "LGPL-2.1-only OR BSD-2-Clause"
77

88
[build-dependencies]
99
libbpf-cargo = { path = "../../libbpf-cargo" }
10-
vmlinux = { version = "0.0", git = "https://github.com/libbpf/vmlinux.h.git", rev = "83a228cf37fc65f2d14e4896a04922b5ee531a94" }
10+
vmlinux = { git = "https://github.com/libbpf/vmlinux.h.git", rev = "83a228cf37fc65f2d14e4896a04922b5ee531a94" }
1111

1212
[dependencies]
1313
anyhow = "1.0.4"

examples/netfilter_blocklist/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ license = "LGPL-2.1-only OR BSD-2-Clause"
66

77
[build-dependencies]
88
libbpf-cargo = { path = "../../libbpf-cargo" }
9-
vmlinux = { version = "0.0", git = "https://github.com/libbpf/vmlinux.h.git", rev = "83a228cf37fc65f2d14e4896a04922b5ee531a94" }
9+
vmlinux = { git = "https://github.com/libbpf/vmlinux.h.git", rev = "83a228cf37fc65f2d14e4896a04922b5ee531a94" }
1010

1111
[[bin]]
1212
name = "netfilter_blocklist"

examples/runqslower/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "LGPL-2.1-only OR BSD-2-Clause"
77

88
[build-dependencies]
99
libbpf-cargo = { path = "../../libbpf-cargo" }
10-
vmlinux = { version = "0.0", git = "https://github.com/libbpf/vmlinux.h.git", rev = "83a228cf37fc65f2d14e4896a04922b5ee531a94" }
10+
vmlinux = { git = "https://github.com/libbpf/vmlinux.h.git", rev = "83a228cf37fc65f2d14e4896a04922b5ee531a94" }
1111

1212
[dependencies]
1313
anyhow = "1.0"

examples/tc_port_whitelist/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "LGPL-2.1-only OR BSD-2-Clause"
77

88
[build-dependencies]
99
libbpf-cargo = { path = "../../libbpf-cargo" }
10-
vmlinux = { version = "0.0", git = "https://github.com/libbpf/vmlinux.h.git", rev = "83a228cf37fc65f2d14e4896a04922b5ee531a94" }
10+
vmlinux = { git = "https://github.com/libbpf/vmlinux.h.git", rev = "83a228cf37fc65f2d14e4896a04922b5ee531a94" }
1111

1212
[dependencies]
1313
anyhow = "1.0"

examples/tcp_ca/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "LGPL-2.1-only OR BSD-2-Clause"
77

88
[build-dependencies]
99
libbpf-cargo = { path = "../../libbpf-cargo" }
10-
vmlinux = { version = "0.0", git = "https://github.com/libbpf/vmlinux.h.git", rev = "83a228cf37fc65f2d14e4896a04922b5ee531a94" }
10+
vmlinux = { git = "https://github.com/libbpf/vmlinux.h.git", rev = "83a228cf37fc65f2d14e4896a04922b5ee531a94" }
1111

1212
[dependencies]
1313
clap = { version = "4.0.32", features = ["derive"] }

examples/tcp_option/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ license = "LGPL-2.1-only OR BSD-2-Clause"
66

77
[build-dependencies]
88
libbpf-cargo = { path = "../../libbpf-cargo" }
9-
vmlinux = { version = "0.0", git = "https://github.com/libbpf/vmlinux.h.git", rev = "83a228cf37fc65f2d14e4896a04922b5ee531a94" }
9+
vmlinux = { git = "https://github.com/libbpf/vmlinux.h.git", rev = "83a228cf37fc65f2d14e4896a04922b5ee531a94" }
1010

1111
[dependencies]
1212
anyhow = "1.0"

examples/tcp_option/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ fn main() -> Result<()> {
100100
.unwrap()
101101
.into_raw_fd();
102102

103-
let _kprobe = skel
103+
let _link = skel
104104
.progs
105105
.sockops_write_tcp_options
106106
.attach_cgroup(cgroup_fd)

examples/tproxy/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ name = "proxy"
1010

1111
[build-dependencies]
1212
libbpf-cargo = { path = "../../libbpf-cargo" }
13-
vmlinux = { version = "0.0", git = "https://github.com/libbpf/vmlinux.h.git", rev = "83a228cf37fc65f2d14e4896a04922b5ee531a94" }
13+
vmlinux = { git = "https://github.com/libbpf/vmlinux.h.git", rev = "83a228cf37fc65f2d14e4896a04922b5ee531a94" }
1414

1515
[dependencies]
1616
anyhow = "1.0"

0 commit comments

Comments
 (0)