Skip to content

Commit 4eac9ba

Browse files
kloenkojeda
authored andcommitted
Use bindgen as a program rather than as a library
This allows us to remove the `kernel` `build.rs` script and simplifies the build. `Cargo.lock` is tiny now. The shlex dependency also goes away. Note that this commit does *not* use the list of included functions/types/vars etc., so it is not equivalent. Signed-off-by: Finn Behrens <[email protected]> Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 1185f89 commit 4eac9ba

File tree

13 files changed

+60
-748
lines changed

13 files changed

+60
-748
lines changed

.github/workflows/ci.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- run: sudo apt update
1717
- run: sudo apt install libelf-dev qemu-system-x86 busybox-static
1818
- run: rustup default nightly-2020-08-27
19+
- run: rustup component add rustfmt
1920
- run: rustup component add rust-src
2021

2122
# Build

Cargo.lock

-353
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# TODO: generate automatically
44
[workspace]
55
members = [
6-
"rust/shlex",
76
"rust/module",
87
"rust/kernel",
98
"drivers/char/rust_example",

0 commit comments

Comments
 (0)