Skip to main content

Module assets

Module assets 

Source
Expand description

Files compiled into the executable by #[webx::main(embed)], read by path.

ⓘ
let config = webx::assets::read_str("config/default.json");

Functions§

read
The original contents of an embedded file.
read_str
The contents of an embedded file as UTF-8 text; also None when it is not UTF-8.