kernel-print 0.1.0

Windows kernel printing library.
Documentation
  • Coverage
  • 100%
    4 out of 4 items documented1 out of 1 items with examples
  • Size
  • Source code size: 27.84 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.08 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • not-matthias/kernel-log-rs
    25 2 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • not-matthias

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.