punycode 0.4.1

Functions to decode and encode Punycode
Documentation
1
2
3
4
5
6
7
8
9
10
11
extern crate punycode;

use std::io;

fn main() {
    let mut input = String::new();
    io::stdin().read_line(&mut input).unwrap();

    let s = punycode::encode(&input[0..input.len()-1]);
    println!("{}", s.unwrap());
}