14 releases (6 stable)

Uses old Rust 2015

1.1.1 Nov 10, 2018
1.1.0 Oct 25, 2018
0.2.5 Oct 14, 2018
0.1.2 Oct 14, 2018

#1365 in Web programming

Download history 4/week @ 2024-02-25 6/week @ 2024-03-10 202/week @ 2024-03-31

208 downloads per month
Used in prest-build

MIT/Apache

24KB
235 lines

webmanifest

crates.io version build status downloads docs.rs docs

Create a manifest.webmanifest file.

Examples

Create a new manifest

extern crate webmanifest;
extern crate failure;

use webmanifest::{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))
    .build()?;
  Ok(())
}

Installation

$ cargo add webmanifest

Safety

This crate uses #![deny(unsafe_code)] to ensure everything is implemented in 100% Safe Rust.

Contributing

Want to join us? Check out our "Contributing" guide and take a look at some of these issues:

References

License

MIT OR Apache-2.0

Dependencies

~1–1.7MB
~39K SLoC