sails-cli 1.0.1

CLI tools the Sails framework
Documentation
1
2
3
4
5
6
7
8
fn main() {
    // Build WASM
    if let Some((_, wasm_path)) = sails_rs::build_wasm() {
        // Generate IDL and embed it into WASM
        sails_rs::ClientBuilder::<::{{ app_crate_name }}::{{ program_struct_name }}>::from_wasm_path(wasm_path).build_idl();
    }
}
{{- "\n" -}}