Crate webmanifest

source ·
Expand description


extern crate webmanifest;
extern crate failure;

use webmanifest::{Manifest, Related};

fn main() -> Result<(), failure::Error> {
  let name = "My Cool Application";
  let url = "";
  let manifest = Manifest::builder(name)
    .short_name("my app")
    .related(&Related::new("play", url))


Add an icon to the web manifest.
Create a new manifest builder.
An entry in an array of native applications that are installable by, or accessible to, the underlying platform.


Specifies the primary text direction for the name, short_name, and description members.
Defines the developers’ preferred display mode for the website.
Defines the default orientation for all the website’s top level browsing contexts. Read more.


The MIME type for .webmanifest files.