kernel-print

Crates.iokernel-print
lib.rskernel-print
version0.1.0
sourcesrc
created_at2020-08-21 20:56:08.51469
updated_at2020-08-21 20:56:08.51469
descriptionWindows kernel printing library.
homepage
repositoryhttps://github.com/not-matthias/kernel-print-rs
max_upload_size
id279330
size27,848
Matthias (not-matthias)

documentation

README

Rust crates.io docs.rs

kernel-print-rs

A windows kernel printing library that implements the print!, println! and dbg! macros so they can be used without the use of an allocator.

By default the macros are prefixed with kernel_. If you want to remove the prefix, you can enable the std_name feature.

Usage

Exactly as you'd use the original macros from the standard library.

#![no_std]

// ...

kernel_dbg!(2 + 2);
kernel_print!("{} + {} = {}\n", 2, 2, 2 + 2);
kernel_println!("{} + {} = {}", 2, 2, 2 + 2);

Features

  • std_name: Allows you to use the macros without the kernel_ prefix.
  • format: Uses the format! macro instead of the core::fmt::Write trait to convert the passed data into a string.
Commit count: 38

cargo fmt