qemu_print

Crates.ioqemu_print
lib.rsqemu_print
version0.1.0
sourcesrc
created_at2021-07-20 00:01:56.497247
updated_at2021-07-20 00:01:56.497247
descriptionA crate prividing `qemu_print!` and `qemu_println!` macros to print strings to the console for debugging.
homepage
repositoryhttps://github.com/toku-sa-n/qemu_print
max_upload_size
id424959
size20,048
Hiroki Tokunaga (toku-sa-n)

documentation

README

qemu_print

A Rust library to print strings to a console using QEMU's serial port support.

Usage

Add -serial stdio to the QEMU's command line parameters.

qemu-system-x86_64 -serial stdio /* other parameters... */

Invoke macros like as print! and println!.

use qemu_print::qemu_println;

qemu_println!("This string will be printed to the console.");

let x = 3;
qemu_println!("x = {}", x);

Features

This crate has two features:

  • nightly: This is enabled by default. The Nightly Rust must be enabled.
  • stable: Use this feature if you do not use the Nightly Rust. Add default-features = false, features = ["stable"] to Cargo.toml's dependency option. This feature uses cc crate as a build-time dependency. You need to install the compile-time requirements. This feature only supports targets which use System V AMD64 ABI.

Enable one of these features. If both, or none of them are specified, this crate will emit a compile error.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 8

cargo fmt