Crates.io | livid-desktop |
lib.rs | livid-desktop |
version | 0.1.8 |
source | src |
created_at | 2022-04-16 00:15:42.742194 |
updated_at | 2024-02-05 00:06:46.200157 |
description | Lightly wraps a native webview which can be used with livid for the frontend |
homepage | |
repository | https://github.com/MoAlyousef/livid-rs |
max_upload_size | |
id | 568761 |
size | 131,404 |
Lightly wraps a native webview which can be used with livid for the frontend.
livid-desktop = "0.1"
In your main.rs
use livid_desktop::{App, Settings};
use std::path::PathBuf;
fn main() {
let a = App::new(Settings {
w: 600,
h: 400,
title: "My App",
fixed: true,
port: 8080, // the default
dist_folder: PathBuf::from("dist"), // the default
..Default::default()
});
a.run();
}
The dist folder should contain the index.html plus the wasm and javascript glue code.