File tree 7 files changed +3
-12
lines changed
7 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 1
1
[unstable]
2
2
build-std = ["core", "compiler_builtins", "alloc"]
3
+ build-std-features = ["compiler-builtins-mem"]
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ application. Copy it to a new directory to get started.
24
24
25
25
- Build using a ` nightly ` version of the compiler and activate the
26
26
[ ` build-std ` ] ( https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#build-std )
27
- Cargo feature : ` cargo +nightly build -Z build-std --target x86_64-unknown-uefi ` .
27
+ Cargo features : ` cargo +nightly build -Z build-std -Z build-std-features=compiler-builtins-mem --target x86_64-unknown-uefi ` .
28
28
29
29
- The ` target ` directory will contain a ` x86_64-unknown-uefi ` subdirectory,
30
30
where you will find the ` uefi_app.efi ` file - a normal UEFI executable.
Original file line number Diff line number Diff line change 1
1
[unstable]
2
2
build-std = ["core", "compiler_builtins", "alloc"]
3
+ build-std-features = ["compiler-builtins-mem"]
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ version = "0.1.0"
4
4
edition = " 2018"
5
5
6
6
[dependencies ]
7
- rlibc = " 1.0.0"
8
-
9
7
# In a real application, change these to point to the latest release
10
8
# on crates.io.
11
9
uefi = { path = " .." , features = [" exts" ] }
Original file line number Diff line number Diff line change 2
2
#![ no_std]
3
3
#![ feature( abi_efiapi) ]
4
4
5
- extern crate rlibc;
6
-
7
5
use uefi:: prelude:: * ;
8
6
use uefi:: ResultExt ;
9
7
Original file line number Diff line number Diff line change @@ -11,10 +11,6 @@ uefi-services = { path = "../uefi-services" }
11
11
12
12
log = { version = " 0.4.11" , default-features = false }
13
13
14
- # When building using Cargo's `build-std` feature, the `mem` feature of `compiler-builtins`
15
- # does not automatically get enabled. Therefore, we have to manually add support for
16
- # the memory functions.
17
- rlibc = " 1.0.0"
18
14
qemu-exit = " 2.0.0"
19
15
20
16
[features ]
Original file line number Diff line number Diff line change @@ -8,9 +8,6 @@ extern crate log;
8
8
#[ macro_use]
9
9
extern crate alloc;
10
10
11
- // Keep this line to ensure the `mem*` functions are linked in.
12
- extern crate rlibc;
13
-
14
11
use alloc:: string:: String ;
15
12
use core:: mem;
16
13
use uefi:: prelude:: * ;
You can’t perform that action at this time.
0 commit comments