silk 0.3.3

A silky smooth implementation of the Loom architecture
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate serde_json;
extern crate silk;

use silk::mint::Mint;
use std::io;

fn main() {
    let mut input_text = String::new();
    io::stdin().read_line(&mut input_text).unwrap();
    let trimmed = input_text.trim();
    let tokens = trimmed.parse::<i64>().unwrap();

    let mint = Mint::new(tokens);
    println!("{}", serde_json::to_string(&mint).unwrap());
}