livid-desktop 0.1.8

Lightly wraps a native webview which can be used with livid for the frontend
docs.rs failed to build livid-desktop-0.1.8
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: livid-desktop-0.1.6

livid-desktop

Lightly wraps a native webview which can be used with livid for the frontend.

Usage

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.

Requirements

  • On Windows: No other dependencies.
  • On MacOS: No other dependencies.
  • On X11/wayland platforms, webkit2gtk:
    • Debian-based distros: sudo apt-get install libwebkit2gtk-4.0-dev.
    • RHEL-based distros: sudo dnf install webkit2gtk3-devel.