Crates.io | webmanifest |
lib.rs | webmanifest |
version | 1.1.1 |
source | src |
created_at | 2018-10-14 00:36:56.183457 |
updated_at | 2018-11-10 11:57:23.532397 |
description | Create a manifest.webmanifest file |
homepage | |
repository | https://github.com/rust-net-web/webmanifest |
max_upload_size | |
id | 89772 |
size | 58,082 |
Create a manifest.webmanifest
file.
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(())
}
$ cargo add webmanifest
This crate uses #![deny(unsafe_code)]
to ensure everything is implemented in
100% Safe Rust.
Want to join us? Check out our "Contributing" guide and take a look at some of these issues:
MIT OR Apache-2.0