Skip to content

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

License

Notifications You must be signed in to change notification settings

WasmPot/cargo-brust64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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...

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages