gpgme 0.11.0

GPGme bindings for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::{io, io::prelude::*};

#[allow(dead_code)]
fn main() {
    println!("OK Your orders please");

    let stdin = io::stdin();
    let mut lines = stdin.lock().lines();
    while let Some(Ok(cmd)) = lines.next() {
        match cmd.split(' ').nth(0) {
            Some("GETPIN") => {
                println!("D abc");
                println!("OK");
            }
            _ => println!("OK"),
        }
    }
}