2 releases

0.1.1 Sep 26, 2019
0.1.0 Sep 25, 2019

#75 in #mime

MIT license

4KB
56 lines

mimers

mimers provides useful MIME related functions. For Quoted-Printable and Base64 encoding

examples

extern crate mimers;

use mimers::{WordEncoder, Encoding};

fn main() {
  let encoder = WordEncoder::new("UTF-8", Encoding::QEncoding);
  let encoded_word = encoder.encode_word("abcあいうえお".to_string());
  println!("{}", encoded_word); // =?UTF-8?Q?abc=E3=81=82=E3=81=84=E3=81=86=E3=81=88=E3=81=8A?=
}

Dependencies

~405KB