mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-18 16:11:38 +03:00
chore(tauri) use published webview binding v0.0.1 (#870)
This commit is contained in:
parent
c0c27202c2
commit
b6ba44d81d
@ -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;
|
||||
|
||||
use webview_rust_sys::Webview;
|
||||
use webview_official::Webview;
|
||||
|
||||
#[allow(unused_variables)]
|
||||
pub(crate) fn handle(webview: &mut Webview, arg: &str) -> crate::Result<()> {
|
||||
|
@ -1,5 +1,5 @@
|
||||
use std::path::PathBuf;
|
||||
use webview_rust_sys::Webview;
|
||||
use webview_official::Webview;
|
||||
|
||||
pub fn load(
|
||||
webview: &mut Webview,
|
||||
|
@ -4,7 +4,7 @@ use crate::api::dialog::{
|
||||
DialogSelection, Response,
|
||||
};
|
||||
use serde_json::Value as JsonValue;
|
||||
use webview_rust_sys::Webview;
|
||||
use webview_official::Webview;
|
||||
|
||||
/// maps a dialog response to a JS value to eval
|
||||
#[cfg(any(open_dialog, save_dialog))]
|
||||
|
@ -1,4 +1,4 @@
|
||||
use webview_rust_sys::Webview;
|
||||
use webview_official::Webview;
|
||||
|
||||
use tauri_api::dir;
|
||||
use tauri_api::file;
|
||||
|
@ -1,5 +1,5 @@
|
||||
use tauri_api::http::{make_request as request, HttpRequestOptions};
|
||||
use webview_rust_sys::Webview;
|
||||
use webview_official::Webview;
|
||||
|
||||
/// Makes an HTTP request and resolves the response to the webview
|
||||
pub fn make_request(
|
||||
|
@ -1,6 +1,6 @@
|
||||
use super::cmd::NotificationOptions;
|
||||
use serde_json::Value as JsonValue;
|
||||
use webview_rust_sys::Webview;
|
||||
use webview_official::Webview;
|
||||
|
||||
pub fn send(webview: &mut Webview, options: NotificationOptions, callback: String, error: String) {
|
||||
crate::execute_promise(
|
||||
|
@ -1,4 +1,4 @@
|
||||
use webview_rust_sys::Webview;
|
||||
use webview_official::Webview;
|
||||
|
||||
/// Validates a salt.
|
||||
pub fn validate(
|
||||
|
@ -6,7 +6,7 @@ use lazy_static::lazy_static;
|
||||
use once_cell::sync::Lazy;
|
||||
use serde::Serialize;
|
||||
use serde_json::Value as JsonValue;
|
||||
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;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
use std::sync::{Arc, Mutex};
|
||||
use webview_rust_sys::Webview;
|
||||
use webview_official::Webview;
|
||||
|
||||
/// The plugin interface.
|
||||
pub trait Plugin {
|
||||
|
Loading…
Reference in New Issue
Block a user