cargo-brust64

Crates.iocargo-brust64
lib.rscargo-brust64
version0.1.7
sourcesrc
created_at2020-12-15 12:20:21.016288
updated_at2021-01-15 15:40:26.136073
descriptioncargo command to encode a bunch of static files into base64 and contained in a rust file as Hashmap
homepage
repositoryhttps://github.com/WasmPot/cargo-brust64.git
max_upload_size
id323095
size34,667
(david6983)

documentation

README

Brust64

A cargo command to encore a bunch of static files into base64 and contained in a rust file as Hashmap.

TODO

  • check extensions (only html, css, js)
  • check errors when calling unwrap()
  • documentation
  • ignore-extension flag
  • extract code from main and create a cli module
  • testing
  • code security (avoid being root from this command), file injection ?

Install

cargo install --path .

Usage

cargo brust64 -d <src_directory> -o file.rs

🏗 WIP...

Commit count: 20

cargo fmt