Seed is an awesome framework to develop single page applications.
This is a utility crate containing functions to use during build of other packages, for example seed-icons.
Crate provides write-all
function to generate icons to use with Seed.
write-all
is intended to be used from seed-icons
package, during
it's build and you probably don't need to use it by yourself.
write-all
does not provide you with icons themselves (you stil
have to reference CSS / JS files from your index.html), but it generates
icons.rs
file with module for each icon, which should give you a
convenient way to use them in your application.
To use Font-Awesome collection of icons easier
this crate provides get_fa_resources
function, which you can use
to download folder font-awesome
to specified location.
Inside font-awesome
you'd find stylesheets required to link from your
index.html
.
The idea is to call that function from your build.rs
and ignore
font-awesome
folder from VCS, so that icons resources would
be downloaded during build of your SPA.
Read more in seed-icons.