@@ -20,7 +20,7 @@ features = [ "all-api" ]
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = [ "derive" ] }
-webview_rust = { version = "0.1", git = "https://github.com/webview/webview_rust.git", branch = "dev" }
+webview_official = "0.0.1"
tauri_includedir = "0.6.0"
phf = "0.8.0"
base64 = "0.12.3"
@@ -1,4 +1,4 @@
-use webview_rust_sys::Webview;
+use webview_official::Webview;
mod runner;
@@ -7,7 +7,7 @@ use std::{
thread::spawn,
};
-use webview_rust_sys::{SizeHint, Webview, WebviewBuilder};
+use webview_official::{SizeHint, Webview, WebviewBuilder};
use super::App;
#[cfg(embedded_server)]
@@ -15,7 +15,7 @@ mod http;
#[cfg(notification)]
mod notification;
#[allow(unused_variables)]
pub(crate) fn handle(webview: &mut Webview, arg: &str) -> crate::Result<()> {
@@ -1,5 +1,5 @@
use std::path::PathBuf;
pub fn load(
webview: &mut Webview,
@@ -4,7 +4,7 @@ use crate::api::dialog::{
DialogSelection, Response,
use serde_json::Value as JsonValue;
/// maps a dialog response to a JS value to eval
#[cfg(any(open_dialog, save_dialog))]
use tauri_api::dir;
use tauri_api::file;
use tauri_api::http::{make_request as request, HttpRequestOptions};
/// Makes an HTTP request and resolves the response to the webview
pub fn make_request(
@@ -1,6 +1,6 @@
use super::cmd::NotificationOptions;
pub fn send(webview: &mut Webview, options: NotificationOptions, callback: String, error: String) {
crate::execute_promise(
/// Validates a salt.
pub fn validate(
@@ -6,7 +6,7 @@ use lazy_static::lazy_static;
use once_cell::sync::Lazy;
use serde::Serialize;
-use webview_rust_sys::WebviewMut;
+use webview_official::WebviewMut;
/// An event handler.
struct EventHandler {
@@ -39,7 +39,7 @@ mod salt;
pub use anyhow::Result;
pub use app::*;
pub use tauri_api as api;
-pub use webview_rust_sys::{Webview, WebviewMut};
+pub use webview_official::{Webview, WebviewMut};
use std::process::Stdio;
use std::sync::{Arc, Mutex};
/// The plugin interface.
pub trait Plugin {