created example lib for sake of testing

This commit is contained in:
2025-02-20 15:52:42 +00:00
parent 76f070af8b
commit 294e6f0e33
12 changed files with 288 additions and 1 deletions
+1
View File
@@ -5,6 +5,7 @@ edition = "2021"
[dependencies]
limine = "0.3.1"
lib_example = { path = "../lib_example" }
[features]
default = []
+4
View File
@@ -6,6 +6,8 @@ use core::arch::asm;
use limine::request::{FramebufferRequest, RequestsEndMarker, RequestsStartMarker};
use limine::BaseRevision;
use lib_example;
/// Sets the base revision to the latest revision supported by the crate.
/// See specification for further info.
/// Be sure to mark all limine requests with #[used], otherwise they may be removed by the compiler.
@@ -32,6 +34,8 @@ unsafe extern "C" fn kmain() -> ! {
// removed by the linker.
assert!(BASE_REVISION.is_supported());
lib_example::add_nums(1, 2);
if let Some(framebuffer_response) = FRAMEBUFFER_REQUEST.get_response() {
if let Some(framebuffer) = framebuffer_response.framebuffers().next() {
for i in 0..100_u64 {