Crate convey

source ·
Expand description

Easily output stuff for humans and machines alike

Examples

extern crate convey;

fn main() -> Result<(), convey::Error> {
    let mut out = convey::new().add_target(convey::human::stdout()?)?;
    out.print(convey::components::text("hello world!"))?;
    Ok(())
}

Modules

Components to help build your output from.
Human output
JSON output

Macros

Shorthand for writing the render_for_humans method of the Render trait
Shorthand for writing the render_json method of the Render trait
Quickly write a span

Structs

Output’s error type
Structure holding your output targets
Known targets to write to

Traits

Implement this for your own components

Functions

Create a new output