fork of https://github.com/rustwasm/wasm-pack for the needs of NextGraph.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Ashley Williams c8fb09a24c fix(progressbar): refactor msg into pb fn 8 years ago
..
bindgen.rs fix(progressbar): refactor msg into pb fn 8 years ago
build.rs fix(style): improve output messaging 8 years ago
lib.rs fix(style): improve output messaging 8 years ago
main.rs fix(progressbar): refactor msg into pb fn 8 years ago
manifest.rs fix(style): improve output messaging 8 years ago
progressbar.rs fix(progressbar): refactor msg into pb fn 8 years ago
readme.rs fix(use): remove unused use statement 8 years ago

readme.rs

use std::fs;
use failure::Error;

pub fn copy_from_crate(path: &str) -> Result<(), Error> {
let crate_readme_path = format!("{}/README.md", path);
let new_readme_path = format!("{}/pkg/README.md", path);
fs::copy(&crate_readme_path, &new_readme_path)?;
Ok(())
}