feat(wpcarro/rust): Define stdin example

Pipe Rust strings to shell commands.

Change-Id: Id8afeed642d30c79e193fa9b353de081a5843eb5
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6197
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
This commit is contained in:
William Carroll 2022-08-09 14:43:25 -07:00 committed by clbot
parent 342b233a0a
commit 27c1763a7a
2 changed files with 24 additions and 6 deletions

View file

@ -3,16 +3,12 @@ use serde_json::{json, Value};
mod display;
mod json;
mod stdin;
////////////////////////////////////////////////////////////////////////////////
// Main
////////////////////////////////////////////////////////////////////////////////
fn main() {
let john: display::Person = display::Person {
fname: "John".to_string(),
lname: "Cleese".to_string(),
age: 82,
};
println!("Person: {}", john)
stdin::example();
}