File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,10 @@ The following steps allow you to build a simple UEFI app.
18
18
and make sure you have an entry point function which matches the one below:
19
19
20
20
``` rust
21
- #[no_mangle]
22
- pub extern " C" fn efi_main (handle : Handle , system_table : SystemTable <Boot >) -> Status ;
21
+ use uefi :: prelude :: * ;
22
+
23
+ #[entry]
24
+ fn efi_main (handle : Handle , system_table : SystemTable <Boot >) -> Status ;
23
25
```
24
26
25
27
- Build using ` cargo xbuild --target x86_64-unknown-uefi ` .
Original file line number Diff line number Diff line change @@ -82,19 +82,14 @@ uses UEFI to set up an environment for it.
82
82
83
83
## Documentation
84
84
85
+ The docs for the latest published crate version can be found at
86
+ [ docs.rs/uefi/] ( https://docs.rs/uefi/ )
87
+
85
88
This crate's documentation is fairly minimal, and you are encouraged to refer to
86
89
the [ UEFI specification] [ spec ] for detailed information.
87
90
88
91
[ spec ] : http://www.uefi.org/specifications
89
92
90
- ### rustdoc
91
-
92
- Use the ` build.py ` script in the ` uefi-test-runner ` directory to generate the documentation:
93
-
94
- ``` sh
95
- ./build.py doc
96
- ```
97
-
98
93
## Sample code
99
94
100
95
An example UEFI app is built in the ` uefi-test-runner ` directory.
You can’t perform that action at this time.
0 commit comments