chore(tauri) use published webview binding v0.0.1 (#870)

This commit is contained in:
Lucas Fernandes Nogueira 2020-07-20 15:44:57 -03:00 committed by GitHub
parent c0c27202c2
commit b6ba44d81d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 13 additions and 13 deletions

View File

@ -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"

View File

@ -1,4 +1,4 @@
use webview_rust_sys::Webview;
use webview_official::Webview;
mod runner;

View File

@ -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)]

View File

@ -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<()> {

View File

@ -1,5 +1,5 @@
use std::path::PathBuf;
use webview_rust_sys::Webview;
use webview_official::Webview;
pub fn load(
webview: &mut Webview,

View File

@ -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))]

View File

@ -1,4 +1,4 @@
use webview_rust_sys::Webview;
use webview_official::Webview;
use tauri_api::dir;
use tauri_api::file;

View 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(

View File

@ -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(

View File

@ -1,4 +1,4 @@
use webview_rust_sys::Webview;
use webview_official::Webview;
/// Validates a salt.
pub fn validate(

View File

@ -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 {

View File

@ -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;

View File

@ -1,5 +1,5 @@
use std::sync::{Arc, Mutex};
use webview_rust_sys::Webview;
use webview_official::Webview;
/// The plugin interface.
pub trait Plugin {