webmanifest 1.1.1

Create a manifest.webmanifest file
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate failure;
extern crate webmanifest;

use webmanifest::{Icon, Manifest, Related};

fn main() -> Result<(), failure::Error> {
  let name = "My Cool Application";
  let url = "https://play.google.com/store/apps/details?id=cheeaun.hackerweb";
  let manifest = Manifest::builder(name)
    .short_name("my app")
    .bg_color("#000")
    .related(&Related::new("play", url))
    .icon(&Icon::new("/icon.png", "48x48"))
    .pretty()?;
  println!("{}", manifest);
  Ok(())
}