mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 06:47:49 +00:00
Update blog to use mem feature of compiler_builtins
This commit is contained in:
@@ -683,10 +683,9 @@ To make the required functions available to our integration test, we need to spl
|
||||
|
||||
#![no_std]
|
||||
|
||||
extern crate rlibc;
|
||||
```
|
||||
|
||||
Like the `main.rs`, the `lib.rs` is a special file that is automatically recognized by cargo. The library is a separate compilation unit, so we need to specify the `#![no_std]` attribute and the `extern crate rlibc` statement again.
|
||||
Like the `main.rs`, the `lib.rs` is a special file that is automatically recognized by cargo. The library is a separate compilation unit, so we need to specify the `#![no_std]` attribute again.
|
||||
|
||||
To make our library work with `cargo test`, we need to also add the test functions and attributes:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user