1 2 3 4 5 6 7 8
#![no_std] use core::{fmt}; use fmt::Result; pub fn print_hello(w: &mut dyn fmt::Write) -> Result { return w.write_str("Hello, world - from a library!\n"); }
1 2 3 4 5 6 7 8
#![no_std] use core::{fmt}; use fmt::Result; pub fn print_hello(w: &mut dyn fmt::Write) -> Result { return w.write_str("Hello, world - from a library!\n"); }