Skip to content

Commit

Permalink
Add uapi bindings to elf.h (#137)
Browse files Browse the repository at this point in the history
* Add uapi bindings to elf.h

* Add note on `elf_uapi` and `elf` differences
  • Loading branch information
yuki0iq authored Dec 18, 2024
1 parent 59c392f commit d39794c
Show file tree
Hide file tree
Showing 22 changed files with 9,506 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static_assertions = "1.1.0"
libc = "0.2.100"

[package.metadata.docs.rs]
features = ["default", "bootparam", "btrfs", "ioctl", "landlock", "netlink", "io_uring", "if_arp", "if_ether", "if_packet", "net", "ptrace", "prctl", "elf", "xdp", "mempolicy", "system", "loop_device"]
features = ["default", "bootparam", "btrfs", "elf_uapi", "ioctl", "landlock", "netlink", "io_uring", "if_arp", "if_ether", "if_packet", "net", "ptrace", "prctl", "elf", "xdp", "mempolicy", "system", "loop_device"]
targets = ["x86_64-unknown-linux-gnu", "i686-unknown-linux-gnu"]

[lints.rust.unexpected_cfgs]
Expand All @@ -34,6 +34,7 @@ check-cfg = [
[features]
bootparam = []
btrfs = []
elf_uapi = []
errno = []
general = []
if_arp = []
Expand Down
3 changes: 3 additions & 0 deletions gen/modules/elf_uapi.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "support.h"

#include <linux/elf.h>
Loading

0 comments on commit d39794c

Please sign in to comment.