repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-utils/src/config/parse.rs
crates/tauri-utils/src/config/parse.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use crate::config::Config; use crate::platform::Target; use json_patch::merge; use serde::de::DeserializeOwned; use serde_json::Value; use std::ffi::OsStr; use std::path::{Path, ...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-utils/src/pattern/mod.rs
crates/tauri-utils/src/pattern/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT /// Handling the Tauri "Isolation" Pattern. #[cfg(feature = "isolation")] pub mod isolation;
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-utils/src/pattern/isolation.rs
crates/tauri-utils/src/pattern/isolation.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::array::TryFromSliceError; use std::borrow::Cow; use std::fmt::{Debug, Formatter}; use std::string::FromUtf8Error; use aes_gcm::aead::Aead; use aes_gcm::{Aes256Gcm, KeyI...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-utils/src/platform/starting_binary.rs
crates/tauri-utils/src/platform/starting_binary.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use ctor::ctor; use std::{ io::{Error, ErrorKind, Result}, path::{Path, PathBuf}, }; /// A cached version of the current binary using [`ctor`] to cache it before even `main`...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-schema-worker/src/config.rs
crates/tauri-schema-worker/src/config.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use anyhow::Context; use axum::{ extract::Path, http::{header, StatusCode}, response::Result, routing::get, Router, }; use semver::{Version, VersionReq}; use serde::Des...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-schema-worker/src/lib.rs
crates/tauri-schema-worker/src/lib.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use axum::{routing::get, Router}; use tower_service::Service; use worker::*; mod config; #[worker::event(fetch)] async fn main( req: HttpRequest, _env: Env, _ctx: Context...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-macros/src/mobile.rs
crates/tauri-macros/src/mobile.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use proc_macro::TokenStream; use proc_macro2::TokenStream as TokenStream2; use quote::{format_ident, quote}; use std::env::var; use syn::{parse_macro_input, spanned::Spanned, Ite...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-macros/src/lib.rs
crates/tauri-macros/src/lib.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Create macros for `tauri::Context`, invoke handler and commands leveraging the `tauri-codegen` crate. #![doc( html_logo_url = "https://github.com/tauri-apps/tauri/raw/dev/...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-macros/src/menu.rs
crates/tauri-macros/src/menu.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use proc_macro2::{Ident, Span, TokenStream}; use quote::quote; use syn::{ parse::{Parse, ParseStream}, punctuated::Punctuated, Expr, Token, }; pub struct DoMenuItemInput {...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-macros/src/runtime.rs
crates/tauri-macros/src/runtime.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use proc_macro2::TokenStream; use quote::{quote, ToTokens}; use syn::parse::{Parse, ParseStream}; use syn::{ parse_quote, DeriveInput, Error, GenericParam, Ident, ItemTrait, It...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-macros/src/context.rs
crates/tauri-macros/src/context.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use proc_macro2::{Ident, Span, TokenStream}; use quote::{quote, ToTokens}; use std::path::PathBuf; use syn::{ parse::{Parse, ParseBuffer}, punctuated::Punctuated, Expr, Exp...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-macros/src/command/wrapper.rs
crates/tauri-macros/src/command/wrapper.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{env::var, sync::OnceLock}; use heck::{ToLowerCamelCase, ToSnakeCase}; use proc_macro::TokenStream; use proc_macro2::{Ident, Span, TokenStream as TokenStream2}; use quo...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-macros/src/command/mod.rs
crates/tauri-macros/src/command/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use proc_macro2::Ident; use syn::{Path, PathSegment}; pub use self::{handler::Handler, wrapper::wrapper}; mod handler; mod wrapper; /// The autogenerated wrapper ident. fn for...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-macros/src/command/handler.rs
crates/tauri-macros/src/command/handler.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use quote::format_ident; use syn::{ parse::{Parse, ParseBuffer, ParseStream}, Attribute, Ident, Path, Token, }; struct CommandDef { path: Path, attrs: Vec<Attribute>, } ...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/build.rs
crates/tauri/build.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use heck::AsShoutySnakeCase; use tauri_utils::write_if_changed; use std::{ collections::BTreeMap, env, fs, path::{Path, PathBuf}, sync::{Mutex, OnceLock}, }; static CHE...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/ios.rs
crates/tauri/src/ios.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use swift_rs::{swift, SRString, SwiftArg}; use std::{ ffi::c_void, os::raw::{c_char, c_int, c_ulonglong}, }; type PluginMessageCallbackFn = unsafe extern "C" fn(c_int, c_in...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/app.rs
crates/tauri/src/app.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use crate::{ image::Image, ipc::{ channel::ChannelDataIpcQueue, CallbackFn, CommandArg, CommandItem, Invoke, InvokeError, InvokeHandler, InvokeResponseBody, }, ma...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
true
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/lib.rs
crates/tauri/src/lib.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Tauri is a framework for building tiny, blazing fast binaries for all major desktop platforms. //! Developers can integrate any front-end framework that compiles to HTML, JS ...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
true
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/process.rs
crates/tauri/src/process.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Types and functions related to child processes management. use crate::Env; use std::path::PathBuf; /// Finds the current running binary's path. /// /// With exception to a...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/pattern.rs
crates/tauri/src/pattern.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT #[cfg(feature = "isolation")] use std::sync::Arc; use serde::Serialize; use serialize_to_javascript::{default_template, Template}; /// The domain of the isolation iframe source...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/state.rs
crates/tauri/src/state.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{ any::{Any, TypeId}, collections::HashMap, hash::BuildHasherDefault, pin::Pin, sync::Mutex, }; use crate::{ ipc::{CommandArg, CommandItem, InvokeError}, ...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/error.rs
crates/tauri/src/error.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::fmt; /// A generic boxed error. #[derive(Debug)] pub struct SetupError(Box<dyn std::error::Error>); impl From<Box<dyn std::error::Error>> for SetupError { fn from(er...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/async_runtime.rs
crates/tauri/src/async_runtime.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! The singleton async runtime used by Tauri and exposed to users. //! //! Tauri uses [`tokio`] Runtime to initialize code, such as //! [`Plugin::initialize`](../plugin/trait.Pl...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/plugin.rs
crates/tauri/src/plugin.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! The Tauri plugin extension to expand Tauri functionality. use crate::{ app::UriSchemeResponder, ipc::{Invoke, InvokeHandler, ScopeObject, ScopeValue}, manager::webview...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
true
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/scope/fs.rs
crates/tauri/src/scope/fs.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{ collections::{HashMap, HashSet}, fmt, path::{Path, PathBuf, MAIN_SEPARATOR}, sync::{ atomic::{AtomicU32, Ordering}, Arc, Mutex, }, }; use tauri_util...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/scope/mod.rs
crates/tauri/src/scope/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT /// FS scope. pub mod fs; use std::path::Path; /// Unique id of a scope event. pub type ScopeEventId = u32; /// Managed state for all the core scopes in a tauri application. p...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/plugin/mobile.rs
crates/tauri/src/plugin/mobile.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use super::{PluginApi, PluginHandle}; use crate::{ipc::Channel, AppHandle, Runtime}; #[cfg(target_os = "android")] use crate::{ runtime::RuntimeHandle, sealed::{ManagerBase,...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/tray/mod.rs
crates/tauri/src/tray/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Tray icon types and utilities. pub(crate) mod plugin; use crate::app::{GlobalMenuEventListener, GlobalTrayIconEventListener}; use crate::menu::ContextMenu; use crate::menu:...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/tray/plugin.rs
crates/tauri/src/tray/plugin.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::path::PathBuf; use anyhow::Context; use serde::Deserialize; use crate::{ command, image::JsImage, ipc::Channel, menu::{plugin::ItemKind, Menu, Submenu}, plug...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/image/mod.rs
crates/tauri/src/image/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Image types used by this crate and also referenced by the JavaScript API layer. pub(crate) mod plugin; use std::borrow::Cow; use std::sync::Arc; use crate::{Resource, Reso...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/image/plugin.rs
crates/tauri/src/image/plugin.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use serde::Serialize; use crate::plugin::{Builder, TauriPlugin}; use crate::Manager; use crate::{command, image::Image, ResourceId, Runtime, Webview}; #[command(root = "crate")...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/app/plugin.rs
crates/tauri/src/app/plugin.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use tauri_utils::{config::BundleType, Theme}; use crate::{ command, plugin::{Builder, TauriPlugin}, AppHandle, Manager, ResourceId, Runtime, Webview, }; #[command(root = ...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/window/mod.rs
crates/tauri/src/window/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! The Tauri window types and functions. pub(crate) mod plugin; use tauri_runtime::{ dpi::{PhysicalPosition, PhysicalRect, PhysicalSize}, webview::PendingWebview, }; pub u...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
true
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/window/plugin.rs
crates/tauri/src/window/plugin.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! The tauri plugin to create and manipulate windows from JS. use crate::{ plugin::{Builder, TauriPlugin}, Runtime, }; #[cfg(desktop)] mod desktop_commands { use tauri_r...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/vibrancy/macos.rs
crates/tauri/src/vibrancy/macos.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT #![allow(deprecated)] use crate::utils::config::WindowEffectsConfig; use crate::window::{Effect, EffectState}; use raw_window_handle::HasWindowHandle; use window_vibrancy::{NSVi...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/vibrancy/windows.rs
crates/tauri/src/vibrancy/windows.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT #![allow(non_snake_case)] #![allow(non_camel_case_types)] #![allow(clippy::upper_case_acronyms)] use std::ffi::c_void; use crate::utils::config::WindowEffectsConfig; use crate:...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/vibrancy/mod.rs
crates/tauri/src/vibrancy/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT #![allow(unused)] use tauri_utils::config::WindowEffectsConfig; use crate::{Runtime, Window}; #[cfg(target_os = "macos")] mod macos; #[cfg(windows)] mod windows; pub fn set_w...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/ipc/command.rs
crates/tauri/src/ipc/command.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! The Tauri custom commands types and traits. //! //! You usually don't need to create these items yourself. These are created from [command](../attr.command.html) //! attribut...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/ipc/mod.rs
crates/tauri/src/ipc/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Types and functions related to Inter Procedure Call(IPC). //! //! This module includes utilities to send messages to the JS layer of the webview. use std::{ future::Future...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/ipc/capability_builder.rs
crates/tauri/src/ipc/capability_builder.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use serde::Serialize; use tauri_utils::{ acl::{ capability::{Capability, CapabilityFile, PermissionEntry}, Scopes, }, platform::Target, }; /// A capability that ca...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/ipc/authority.rs
crates/tauri/src/ipc/authority.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::collections::BTreeMap; use std::fmt::{Debug, Display}; use std::sync::Arc; use serde::de::DeserializeOwned; #[cfg(feature = "dynamic-acl")] use tauri_utils::acl::capab...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
true
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/ipc/protocol.rs
crates/tauri/src/ipc/protocol.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{borrow::Cow, sync::Arc}; use crate::{ ipc::InvokeResponseBody, manager::AppManager, webview::{InvokeRequest, UriSchemeProtocolHandler}, Runtime, }; use http::{...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/ipc/channel.rs
crates/tauri/src/ipc/channel.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{ collections::HashMap, str::FromStr, sync::{ atomic::{AtomicU32, AtomicUsize, Ordering}, Arc, Mutex, }, }; use serde::{Deserialize, Deserializer, Seria...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/ipc/format_callback.rs
crates/tauri/src/ipc/format_callback.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use serde::Serialize; use serde_json::value::RawValue; use serialize_to_javascript::Serialized; use super::CallbackFn; /// The information about this is quite limited. On Chrom...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/manager/tray.rs
crates/tauri/src/manager/tray.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{ collections::HashMap, fmt, sync::{Arc, Mutex}, }; use crate::{ app::GlobalTrayIconEventListener, image::Image, tray::{TrayIcon, TrayIconEvent, TrayIconId}...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/manager/menu.rs
crates/tauri/src/manager/menu.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{ collections::HashMap, sync::{Arc, Mutex, MutexGuard}, }; use crate::{ menu::{Menu, MenuEvent, MenuId}, AppHandle, Runtime, Window, }; pub struct MenuManager<...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/manager/mod.rs
crates/tauri/src/manager/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{ borrow::Cow, collections::HashMap, fmt, sync::{atomic::AtomicBool, Arc, Mutex, MutexGuard}, }; use serde::Serialize; use url::Url; use tauri_macros::default_...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/manager/window.rs
crates/tauri/src/manager/window.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{ collections::{HashMap, HashSet}, fmt, path::PathBuf, sync::{Arc, Mutex, MutexGuard}, }; use serde::Serialize; use tauri_runtime::{ dpi::{PhysicalPosition, P...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/manager/webview.rs
crates/tauri/src/manager/webview.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{ borrow::Cow, collections::{HashMap, HashSet}, fmt, fs::create_dir_all, sync::{Arc, Mutex, MutexGuard}, }; use serde::Serialize; use serialize_to_javascript:...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/test/mod.rs
crates/tauri/src/test/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Utilities for unit testing on Tauri applications. //! //! # Stability //! //! This module is unstable. //! //! # Examples //! //! ```rust //! use tauri::test::{mock_builder, ...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/test/mock_runtime.rs
crates/tauri/src/test/mock_runtime.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT #![allow(dead_code)] #![allow(missing_docs)] use tauri_runtime::{ dpi::{PhysicalPosition, PhysicalSize, Position, Size}, monitor::Monitor, webview::{DetachedWebview, Pendi...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/event/event_name.rs
crates/tauri/src/event/event_name.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use serde::{Deserialize, Deserializer}; /// Checks if an event name is valid. fn is_event_name_valid(event: &str) -> bool { event .chars() .all(|c| c.is_alphanumeric()...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/event/listener.rs
crates/tauri/src/event/listener.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use crate::{Runtime, Webview}; use super::{EmitArgs, Event, EventId, EventTarget}; use std::{ boxed::Box, cell::Cell, collections::{HashMap, HashSet}, sync::{ atomi...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/event/mod.rs
crates/tauri/src/event/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT mod listener; pub(crate) mod plugin; use std::{convert::Infallible, str::FromStr}; pub(crate) use listener::Listeners; use serde::{Deserialize, Serialize}; mod event_name; pub...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/event/plugin.rs
crates/tauri/src/event/plugin.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use serde_json::Value as JsonValue; use serialize_to_javascript::{default_template, DefaultTemplate, Template}; use crate::plugin::{Builder, TauriPlugin}; use crate::{command, ip...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/menu/icon.rs
crates/tauri/src/menu/icon.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::sync::Arc; use super::run_item_main_thread; use super::{IconMenuItem, NativeIcon}; use crate::menu::IconMenuItemInner; use crate::run_main_thread; use crate::{image::Im...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/menu/normal.rs
crates/tauri/src/menu/normal.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::sync::Arc; use super::run_item_main_thread; use crate::menu::MenuItemInner; use crate::run_main_thread; use crate::{menu::MenuId, AppHandle, Manager, Runtime}; use sup...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/menu/check.rs
crates/tauri/src/menu/check.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::sync::Arc; use super::run_item_main_thread; use crate::menu::CheckMenuItemInner; use crate::run_main_thread; use crate::{menu::MenuId, AppHandle, Manager, Runtime}; us...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/menu/submenu.rs
crates/tauri/src/menu/submenu.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::sync::Arc; use super::run_item_main_thread; use super::Submenu; use super::{sealed::ContextMenuBase, IsMenuItem, MenuItemKind}; use crate::menu::NativeIcon; use crate::...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/menu/menu.rs
crates/tauri/src/menu/menu.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::sync::Arc; use super::run_item_main_thread; use super::sealed::ContextMenuBase; use super::{ AboutMetadata, IsMenuItem, Menu, MenuInner, MenuItemKind, PredefinedMenuI...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/menu/mod.rs
crates/tauri/src/menu/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Menu types and utilities. mod builders; mod check; mod icon; #[allow(clippy::module_inception)] mod menu; mod normal; pub(crate) mod plugin; mod predefined; mod submenu; use...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/menu/predefined.rs
crates/tauri/src/menu/predefined.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::sync::Arc; use super::run_item_main_thread; use super::{AboutMetadata, PredefinedMenuItem}; use crate::menu::PredefinedMenuItemInner; use crate::run_main_thread; use cr...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/menu/plugin.rs
crates/tauri/src/menu/plugin.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{collections::HashMap, sync::Mutex}; use serde::{Deserialize, Serialize}; use tauri_runtime::dpi::Position; use super::{sealed::ContextMenuBase, *}; use crate::{ com...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/menu/builders/icon.rs
crates/tauri/src/menu/builders/icon.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use crate::{ image::Image, menu::{IconMenuItem, MenuId, NativeIcon}, Manager, Runtime, }; /// A builder type for [`IconMenuItem`] pub struct IconMenuItemBuilder<'a> { id...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/menu/builders/normal.rs
crates/tauri/src/menu/builders/normal.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use crate::{menu::MenuId, menu::MenuItem, Manager, Runtime}; /// A builder type for [`MenuItem`] pub struct MenuItemBuilder { id: Option<MenuId>, text: String, enabled: bo...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/menu/builders/check.rs
crates/tauri/src/menu/builders/check.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use crate::{menu::CheckMenuItem, menu::MenuId, Manager, Runtime}; /// A builder type for [`CheckMenuItem`] pub struct CheckMenuItemBuilder { id: Option<MenuId>, text: String...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/menu/builders/menu.rs
crates/tauri/src/menu/builders/menu.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use crate::{image::Image, menu::*, Manager, Runtime}; /// A builder type for [`Menu`] /// /// ## Platform-specific: /// /// - **macOS**: if using [`MenuBuilder`] for the global ...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/menu/builders/mod.rs
crates/tauri/src/menu/builders/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT #![cfg(desktop)] //! A module containing menu builder types mod menu; pub use menu::MenuBuilder; pub use menu::SubmenuBuilder; mod normal; pub use normal::MenuItemBuilder; mod ...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/webview/webview_window.rs
crates/tauri/src/webview/webview_window.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! [`Window`] that hosts a single [`Webview`]. use std::{ borrow::Cow, path::{Path, PathBuf}, sync::{Arc, MutexGuard}, }; use crate::{ event::EventTarget, ipc::Scope...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
true
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/webview/mod.rs
crates/tauri/src/webview/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! The Tauri webview types and functions. pub(crate) mod plugin; mod webview_window; pub use webview_window::{WebviewWindow, WebviewWindowBuilder}; /// Cookie crate used for ...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
true
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/webview/plugin.rs
crates/tauri/src/webview/plugin.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! The tauri plugin to create and manipulate windows from JS. use crate::{ plugin::{Builder, TauriPlugin}, Runtime, }; #[cfg(desktop)] mod desktop_commands { use serde:...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/path/android.rs
crates/tauri/src/path/android.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use super::Result; use crate::{plugin::PluginHandle, Runtime}; use std::path::{Path, PathBuf}; /// A helper class to access the mobile path APIs. pub struct PathResolver<R: Runt...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/path/mod.rs
crates/tauri/src/path/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{ path::{Component, Display, Path, PathBuf}, str::FromStr, }; use crate::Runtime; use serde::{de::Error as DeError, Deserialize, Deserializer, Serialize}; use serd...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/path/desktop.rs
crates/tauri/src/path/desktop.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use super::{Error, Result}; use crate::{AppHandle, Manager, Runtime}; use std::path::{Path, PathBuf}; /// The path resolver is a helper class for general and application-specifi...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/path/plugin.rs
crates/tauri/src/path/plugin.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::path::{Component, Path, PathBuf, MAIN_SEPARATOR}; use serialize_to_javascript::{default_template, DefaultTemplate, Template}; use super::{BaseDirectory, Error, PathRes...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/resources/mod.rs
crates/tauri/src/resources/mod.rs
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. // Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT // a modified version of https://github.com/denoland/deno/blob/0ae83847f498a2886ae32172e50fd5bdbab2f524...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/resources/plugin.rs
crates/tauri/src/resources/plugin.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use crate::{ command, plugin::{Builder, TauriPlugin}, Manager, Runtime, Webview, }; use super::ResourceId; #[command(root = "crate")] fn close<R: Runtime>(webview: Webvie...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/protocol/tauri.rs
crates/tauri/src/protocol/tauri.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{borrow::Cow, sync::Arc}; use http::{header::CONTENT_TYPE, Request, Response as HttpResponse, StatusCode}; use tauri_utils::config::HeaderAddition; use crate::{ mana...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/protocol/asset.rs
crates/tauri/src/protocol/asset.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use crate::{path::SafePathBuf, scope, webview::UriSchemeProtocolHandler}; use http::{header::*, status::StatusCode, Request, Response}; use http_range::HttpRange; use std::{borro...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/protocol/mod.rs
crates/tauri/src/protocol/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Custom protocol handlers #[cfg(feature = "protocol-asset")] pub mod asset; #[cfg(feature = "isolation")] pub mod isolation; pub mod tauri;
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri/src/protocol/isolation.rs
crates/tauri/src/protocol/isolation.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use crate::Assets; use http::header::CONTENT_TYPE; use serialize_to_javascript::Template; use tauri_utils::{ assets::EmbeddedAssets, config::{Csp, HeaderAddition}, }; use st...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-bundler/src/lib.rs
crates/tauri-bundler/src/lib.rs
// Copyright 2016-2019 Cargo-Bundle developers <https://github.com/burtonageo/cargo-bundle> // Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! The Tauri bundler is a tool that generates installers or app bundles for executabl...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-bundler/src/bundle.rs
crates/tauri-bundler/src/bundle.rs
// Copyright 2016-2019 Cargo-Bundle developers <https://github.com/burtonageo/cargo-bundle> // Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT mod category; #[cfg(target_os = "linux")] mod linux; #[cfg(target_os = "macos")] mod m...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-bundler/src/error.rs
crates/tauri-bundler/src/error.rs
// Copyright 2016-2019 Cargo-Bundle developers <https://github.com/burtonageo/cargo-bundle> // Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{ fmt::Display, io, num, path::{self, PathBuf}, }; use thiserror::Error...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-bundler/src/utils/http_utils.rs
crates/tauri-bundler/src/utils/http_utils.rs
// Copyright 2016-2019 Cargo-Bundle developers <https://github.com/burtonageo/cargo-bundle> // Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{ fs::{create_dir_all, File}, io::{Cursor, Read, Write}, path::Path, };...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-bundler/src/utils/fs_utils.rs
crates/tauri-bundler/src/utils/fs_utils.rs
// Copyright 2016-2019 Cargo-Bundle developers <https://github.com/burtonageo/cargo-bundle> // Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{ fs::{self, File}, io::{self, BufWriter}, path::Path, }; /// Creates ...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-bundler/src/utils/mod.rs
crates/tauri-bundler/src/utils/mod.rs
// Copyright 2016-2019 Cargo-Bundle developers <https://github.com/burtonageo/cargo-bundle> // Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{ ffi::OsStr, io::{BufRead, BufReader}, path::Path, process::{Command...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-bundler/src/bundle/settings.rs
crates/tauri-bundler/src/bundle/settings.rs
// Copyright 2016-2019 Cargo-Bundle developers <https://github.com/burtonageo/cargo-bundle> // Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use super::category::AppCategory; use crate::{bundle::platform::target_triple, error::...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
true
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-bundler/src/bundle/platform.rs
crates/tauri-bundler/src/bundle/platform.rs
// Copyright 2016-2019 Cargo-Bundle developers <https://github.com/burtonageo/cargo-bundle> // Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use crate::utils::CommandExt; use std::process::Command; // Copyright 2019-2024 Tauri...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-bundler/src/bundle/category.rs
crates/tauri-bundler/src/bundle/category.rs
// Copyright 2016-2019 Cargo-Bundle developers <https://github.com/burtonageo/cargo-bundle> // Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{fmt, str::FromStr}; const CONFIDENCE_THRESHOLD: f64 = 0.8; const MACOS_APP...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-bundler/src/bundle/updater_bundle.rs
crates/tauri-bundler/src/bundle/updater_bundle.rs
// Copyright 2016-2019 Cargo-Bundle developers <https://github.com/burtonageo/cargo-bundle> // Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use crate::{ bundle::{ windows::{ NSIS_OUTPUT_FOLDER_NAME, NSIS_UPDATER_OU...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-bundler/src/bundle/linux/rpm.rs
crates/tauri-bundler/src/bundle/linux/rpm.rs
// Copyright 2016-2019 Cargo-Bundle developers <https://github.com/burtonageo/cargo-bundle> // Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use crate::{bundle::settings::Arch, error::ErrorExt, Settings}; use rpm::{self, signa...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-bundler/src/bundle/linux/util.rs
crates/tauri-bundler/src/bundle/linux/util.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT /// Change value of __TAURI_BUNDLE_TYPE static variable to mark which package type it was bundled in #[cfg(target_os = "linux")] pub fn patch_binary( binary_path: &std::path::P...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-bundler/src/bundle/linux/mod.rs
crates/tauri-bundler/src/bundle/linux/mod.rs
// Copyright 2016-2019 Cargo-Bundle developers <https://github.com/burtonageo/cargo-bundle> // Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT pub mod appimage; pub mod debian; pub mod freedesktop; pub mod rpm; mod util; #[cfg(...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-bundler/src/bundle/linux/debian.rs
crates/tauri-bundler/src/bundle/linux/debian.rs
// Copyright 2016-2019 Cargo-Bundle developers <https://github.com/burtonageo/cargo-bundle> // Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT // The structure of a Debian package looks something like this: // // foobar_1.2.3_i38...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-bundler/src/bundle/linux/freedesktop/mod.rs
crates/tauri-bundler/src/bundle/linux/freedesktop/mod.rs
// Copyright 2016-2019 Cargo-Bundle developers <https://github.com/burtonageo/cargo-bundle> // Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! This module provides utilities helping the packaging of desktop //! applications f...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-bundler/src/bundle/linux/appimage/mod.rs
crates/tauri-bundler/src/bundle/linux/appimage/mod.rs
// Copyright 2016-2019 Cargo-Bundle developers <https://github.com/burtonageo/cargo-bundle> // Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use super::debian; use crate::{ bundle::settings::Arch, error::{Context, ErrorExt}...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-bundler/src/bundle/windows/sign.rs
crates/tauri-bundler/src/bundle/windows/sign.rs
// Copyright 2016-2019 Cargo-Bundle developers <https://github.com/burtonageo/cargo-bundle> // Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use crate::bundle::settings::CustomSignCommandSettings; #[cfg(windows)] use crate::bun...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-bundler/src/bundle/windows/util.rs
crates/tauri-bundler/src/bundle/windows/util.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{ fs::create_dir_all, path::{Path, PathBuf}, }; use ureq::ResponseExt; use crate::utils::http_utils::{base_ureq_agent, download}; pub const WEBVIEW2_BOOTSTRAPPER_U...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tauri-bundler/src/bundle/windows/mod.rs
crates/tauri-bundler/src/bundle/windows/mod.rs
// Copyright 2016-2019 Cargo-Bundle developers <https://github.com/burtonageo/cargo-bundle> // Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT #[cfg(target_os = "windows")] pub mod msi; pub mod nsis; pub mod sign; mod util; pub...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false