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
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/interpreter/build.rs
packages/interpreter/build.rs
fn main() { // If any TS files change, re-run the build script lazy_js_bundle::LazyTypeScriptBindings::new() .with_watching("./src/ts") .with_binding("./src/ts/set_attribute.ts", "./src/js/set_attribute.js") .with_binding("./src/ts/native.ts", "./src/js/native.js") .with_binding(...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/interpreter/src/lib.rs
packages/interpreter/src/lib.rs
#![allow(clippy::empty_docs)] #![doc = include_str!("../README.md")] #![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")] #![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")] /// The base class that the JS channel will extend pub static INTERPRETER_JS: &str = include_st...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/interpreter/src/unified_bindings.rs
packages/interpreter/src/unified_bindings.rs
#[cfg(feature = "webonly")] use web_sys::Node; pub const SLEDGEHAMMER_JS: &str = GENERATED_JS; #[cfg(feature = "webonly")] #[wasm_bindgen::prelude::wasm_bindgen] extern "C" { pub type BaseInterpreter; #[wasm_bindgen(method)] pub fn initialize(this: &BaseInterpreter, root: Node, handler: &js_sys::Function...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/interpreter/src/write_native_mutations.rs
packages/interpreter/src/write_native_mutations.rs
use crate::unified_bindings::Interpreter as Channel; use dioxus_core::{Template, TemplateAttribute, TemplateNode, WriteMutations}; use dioxus_core_types::event_bubbles; use rustc_hash::FxHashMap; /// The state needed to apply mutations to a channel. This state should be kept across all mutations for the app #[derive(D...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/interpreter/tests/serialize.rs
packages/interpreter/tests/serialize.rs
//! Ensure that events are serialized and deserialized correctly.
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/interpreter/tests/e2e.rs
packages/interpreter/tests/e2e.rs
//! Ensure that the interpreter loads, has no errors, and writes mutations
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/config-macros/src/lib.rs
packages/config-macros/src/lib.rs
/// A macro for deciding whether or not to split the wasm bundle. /// Used by the internal router-macro code. The contents here are considered to be semver exempt. /// /// Only on wasm with the wasm-split feature will we prefer the `maybe_wasm_split` variant that emits /// the "lefthand" tokens. Otherwise, we emit the ...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/src/attribute.rs
packages/rsx/src/attribute.rs
//! Parser for the attribute shared both by elements and components //! //! ```rust, ignore //! rsx! { //! div { //! class: "my-class", //! onclick: move |_| println!("clicked") //! } //! //! Component { //! class: "my-class", //! onclick: move |_| println!("clicked") //! ...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
true
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/src/node.rs
packages/rsx/src/node.rs
use crate::innerlude::*; use proc_macro2::{Span, TokenStream as TokenStream2}; use quote::ToTokens; use syn::{ ext::IdentExt, parse::{Parse, ParseStream}, spanned::Spanned, token::{self}, Ident, LitStr, Result, Token, }; #[derive(PartialEq, Eq, Clone, Debug)] pub enum BodyNode { /// div {} ...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/src/element.rs
packages/rsx/src/element.rs
use crate::innerlude::*; use proc_macro2::{Span, TokenStream as TokenStream2}; use proc_macro2_diagnostics::SpanDiagnosticExt; use quote::{quote, ToTokens, TokenStreamExt}; use std::fmt::{Display, Formatter}; use syn::{ parse::{Parse, ParseStream}, punctuated::Punctuated, spanned::Spanned, token::Brace,...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/src/diagnostics.rs
packages/rsx/src/diagnostics.rs
use proc_macro2_diagnostics::Diagnostic; use quote::ToTokens; /// A collection of diagnostics /// /// This is a wrapper type since we want it to be transparent in terms of PartialEq and Eq. /// This also lets us choose the expansion strategy for the diagnostics. #[derive(Debug, Clone, Default)] pub struct Diagnostics ...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/src/text_node.rs
packages/rsx/src/text_node.rs
use crate::{literal::HotLiteral, location::DynIdx, HotReloadFormattedSegment, IfmtInput}; use proc_macro2::{Span, TokenStream as TokenStream2}; use quote::ToTokens; use quote::{quote, TokenStreamExt}; use syn::Result; use syn::{ parse::{Parse, ParseStream}, LitStr, }; #[derive(PartialEq, Eq, Clone, Debug, Hash...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/src/lib.rs
packages/rsx/src/lib.rs
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")] #![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")] //! Parse the root tokens in the rsx! { } macro //! ========================================= //! //! This parsing path emerges directly from the macro call, with `...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/src/expr_node.rs
packages/rsx/src/expr_node.rs
use crate::{DynIdx, PartialExpr}; use quote::{quote, ToTokens, TokenStreamExt}; use syn::parse::Parse; #[derive(PartialEq, Eq, Clone, Debug)] pub struct ExprNode { pub expr: PartialExpr, pub dyn_idx: DynIdx, } impl ExprNode { pub fn span(&self) -> proc_macro2::Span { self.expr.span() } } impl...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/src/raw_expr.rs
packages/rsx/src/raw_expr.rs
use proc_macro2::{Delimiter, TokenStream as TokenStream2, TokenTree}; use quote::ToTokens; use std::hash; use syn::{parse::Parse, spanned::Spanned, token::Brace, Expr}; /// A raw expression potentially wrapped in curly braces that is parsed from the input stream. /// /// If there are no braces, it tries to parse as an...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/src/rsx_block.rs
packages/rsx/src/rsx_block.rs
//! An arbitrary block parser. //! //! Is meant to parse the contents of a block that is either a component or an element. //! We put these together to cut down on code duplication and make the parsers a bit more resilient. //! //! This involves custom structs for name, attributes, and children, as well as a custom par...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/src/ifchain.rs
packages/rsx/src/ifchain.rs
use crate::location::DynIdx; use proc_macro2::TokenStream as TokenStream2; use quote::quote; use quote::{ToTokens, TokenStreamExt}; use syn::{ parse::{Parse, ParseStream}, token::Brace, Expr, Result, Token, }; use crate::TemplateBody; #[non_exhaustive] #[derive(PartialEq, Eq, Clone, Debug)] pub struct IfC...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/src/literal.rs
packages/rsx/src/literal.rs
use proc_macro2::Span; use quote::quote; use quote::ToTokens; use std::fmt::Display; use std::ops::Deref; use syn::{ parse::{Parse, ParseStream}, Lit, LitBool, LitFloat, LitInt, LitStr, }; use crate::{location::DynIdx, IfmtInput, Segment}; use proc_macro2::TokenStream as TokenStream2; /// A literal value in t...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/src/util.rs
packages/rsx/src/util.rs
#![allow(unused)] use proc_macro2::TokenStream as TokenStream2; use std::{fmt::Debug, hash::Hash}; use syn::{ ext::IdentExt, parse::{Parse, ParseBuffer}, Ident, }; /// Parse a raw ident and return a new ident with the r# prefix added pub fn parse_raw_ident(parse_buffer: &ParseBuffer) -> syn::Result<Ident>...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/src/template_body.rs
packages/rsx/src/template_body.rs
//! I'm so sorry this is so complicated. Here's my best to simplify and explain it: //! //! The `Callbody` is the contents of the rsx! macro - this contains all the information about every //! node that rsx! directly knows about. For loops, if statements, etc. //! //! However, there are multiple *templates* inside a ca...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/src/partial_closure.rs
packages/rsx/src/partial_closure.rs
use crate::PartialExpr; use proc_macro2::TokenStream; use quote::ToTokens; use std::hash::{Hash, Hasher}; use syn::{ parse::{Parse, ParseStream}, punctuated::Punctuated, Attribute, Expr, Pat, PatType, Result, ReturnType, Token, Type, }; use syn::{BoundLifetimes, ExprClosure}; /// A closure whose body might...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/src/location.rs
packages/rsx/src/location.rs
use std::{cell::Cell, hash::Hash}; /// A simple idx in the code that can be used to track back to the original source location /// /// Used in two places: /// - In the `CallBody` to track the location of hotreloadable literals /// - In the `Body` to track the ID of each template /// /// We need an ID system, unfortuna...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/src/rsx_call.rs
packages/rsx/src/rsx_call.rs
//! The actual rsx! macro implementation. //! //! This mostly just defers to the root TemplateBody with some additional tooling to provide better errors. //! Currently the additional tooling doesn't do much. use proc_macro2::{Span, TokenStream as TokenStream2}; use quote::ToTokens; use std::{cell::Cell, fmt::Debug}; u...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/src/ifmt.rs
packages/rsx/src/ifmt.rs
use proc_macro2::{Span, TokenStream}; use quote::{quote, quote_spanned, ToTokens, TokenStreamExt}; use std::collections::HashMap; use syn::{ parse::{Parse, ParseStream}, *, }; /// A hot-reloadable formatted string, boolean, number or other literal /// /// This wraps LitStr with some extra goodies like inline e...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/src/assign_dyn_ids.rs
packages/rsx/src/assign_dyn_ids.rs
use crate::attribute::Attribute; use crate::{ AttributeValue, BodyNode, HotLiteral, HotReloadFormattedSegment, Segment, TemplateBody, }; /// A visitor that assigns dynamic ids to nodes and attributes and accumulates paths to dynamic nodes and attributes struct DynIdVisitor<'a> { body: &'a mut TemplateBody, ...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/src/forloop.rs
packages/rsx/src/forloop.rs
use super::*; use location::DynIdx; use proc_macro2::TokenStream as TokenStream2; use syn::{braced, token::Brace, Expr, Pat}; #[non_exhaustive] #[derive(PartialEq, Eq, Clone, Debug)] pub struct ForLoop { pub for_token: Token![for], pub pat: Pat, pub in_token: Token![in], pub expr: Box<Expr>, pub br...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/src/component.rs
packages/rsx/src/component.rs
//! Parse components into the VNode::Component variant //! //! Uses the regular robust RsxBlock parser and then validates the component, emitting errors as //! diagnostics. This was refactored from a straightforward parser to this validation approach so //! that we can emit errors as diagnostics instead of returning re...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
DioxusLabs/dioxus
https://github.com/DioxusLabs/dioxus/blob/ec8f31dece5c75371177bf080bab46dff54ffd0e/packages/rsx/tests/parsing.rs
packages/rsx/tests/parsing.rs
use dioxus_rsx::CallBody; use quote::ToTokens; use prettier_please::PrettyUnparse; #[test] fn callbody_ctx() { let item = quote::quote! { div { h1 { id: "Some cool attribute {cool}" } for item in items { "Something {cool}" } ...
rust
Apache-2.0
ec8f31dece5c75371177bf080bab46dff54ffd0e
2026-01-04T15:32:28.012891Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/bench/src/run_benchmark.rs
bench/src/run_benchmark.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! This Rust binary runs on CI and provides internal metrics results of Tauri. //! To learn more see [benchmark_results](https://github.com/tauri-apps/benchmark_results) reposit...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/bench/src/utils.rs
bench/src/utils.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Utility functions for benchmarking tasks in the Tauri project. //! //! This module provides helpers for: //! - Paths to project directories and targets //! - Running and coll...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/bench/src/build_benchmark_jsons.rs
bench/src/build_benchmark_jsons.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! This Rust binary runs on CI and provides internal metrics results of Tauri. To learn more see [benchmark_results](https://github.com/tauri-apps/benchmark_results) repository....
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/bench/tests/cpu_intensive/src-tauri/build.rs
bench/tests/cpu_intensive/src-tauri/build.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT fn main() { tauri_build::build() }
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/bench/tests/cpu_intensive/src-tauri/src/main.rs
bench/tests/cpu_intensive/src-tauri/src/main.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] #[tauri::command] fn app_completed_successfully() { std::process::exit(0); } fn main() { tauri::Builder::...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/bench/tests/files_transfer/src-tauri/build.rs
bench/tests/files_transfer/src-tauri/build.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT fn main() { tauri_build::build() }
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/bench/tests/files_transfer/src-tauri/src/main.rs
bench/tests/files_transfer/src-tauri/src/main.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] use std::fs::read; use tauri::{command, ipc::Response, path::BaseDirectory, AppHandle, Manager, Runtime}; #[c...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/bench/tests/helloworld/src-tauri/build.rs
bench/tests/helloworld/src-tauri/build.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT fn main() { tauri_build::build() }
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/bench/tests/helloworld/src-tauri/src/main.rs
bench/tests/helloworld/src-tauri/src/main.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] #[tauri::command] fn app_loaded_successfully() { std::process::exit(0); } fn main() { tauri::Builder::def...
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-plugin/src/lib.rs
crates/tauri-plugin/src/lib.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Interface for building Tauri plugins. #![doc( html_logo_url = "https://github.com/tauri-apps/tauri/raw/dev/.github/icon.png", html_favicon_url = "https://github.com/taur...
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-plugin/src/runtime.rs
crates/tauri-plugin/src/runtime.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT
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-plugin/src/build/mobile.rs
crates/tauri-plugin/src/build/mobile.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Mobile-specific build utilities. use std::{ env::var_os, fs::{copy, create_dir, create_dir_all, read_to_string, remove_dir_all, write}, path::{Path, PathBuf}, }; 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-plugin/src/build/mod.rs
crates/tauri-plugin/src/build/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{ collections::BTreeMap, path::{Path, PathBuf}, }; use anyhow::Result; use tauri_utils::acl::{self, Error}; pub mod mobile; use serde::de::DeserializeOwned; 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-driver/src/cli.rs
crates/tauri-driver/src/cli.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::path::PathBuf; const HELP: &str = "\ USAGE: tauri-driver [FLAGS] [OPTIONS] FLAGS: -h, --help Prints help information OPTIONS: --port NUMBER ...
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-driver/src/webdriver.rs
crates/tauri-driver/src/webdriver.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use crate::cli::Args; use std::{env::current_dir, process::Command}; // the name of the binary to find in $PATH #[cfg(target_os = "linux")] const DRIVER_BINARY: &str = "WebKitWe...
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-driver/src/server.rs
crates/tauri-driver/src/server.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use crate::cli::Args; use anyhow::Error; use futures_util::TryFutureExt; use http_body_util::{BodyExt, Full}; use hyper::{ body::{Bytes, Incoming}, header::CONTENT_LENGTH, ...
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-driver/src/main.rs
crates/tauri-driver/src/main.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Cross-platform WebDriver server for Tauri applications. //! //! This is a [WebDriver Intermediary Node](https://www.w3.org/TR/webdriver/#dfn-intermediary-nodes) that wraps th...
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-runtime-wry/build.rs
crates/tauri-runtime-wry/build.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT // creates a cfg alias if `has_feature` is true. // `alias` must be a snake case string. fn alias(alias: &str, has_feature: bool) { println!("cargo:rustc-check-cfg=cfg({alias})...
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-runtime-wry/src/lib.rs
crates/tauri-runtime-wry/src/lib.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! The [`wry`] Tauri [`Runtime`]. //! //! None of the exposed API of this crate is stable, and it may break semver //! compatibility in the future. The major version only signif...
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-runtime-wry/src/util.rs
crates/tauri-runtime-wry/src/util.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT #[cfg_attr(not(windows), allow(unused_imports))] pub use imp::*; #[cfg(not(windows))] mod imp {} #[cfg(windows)] mod imp { use std::{iter::once, os::windows::ffi::OsStrExt}; ...
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-runtime-wry/src/undecorated_resizing.rs
crates/tauri-runtime-wry/src/undecorated_resizing.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT #![cfg(any( windows, target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd" ))] const CLIENT: isize = 0b000...
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-runtime-wry/src/webview.rs
crates/tauri-runtime-wry/src/webview.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT #[cfg(any( target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd" ))] mod imp { pub type Webview = webkit2gt...
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-runtime-wry/src/dialog/windows.rs
crates/tauri-runtime-wry/src/dialog/windows.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use windows::core::{w, HSTRING}; enum Level { Error, #[allow(unused)] Warning, #[allow(unused)] Info, } pub fn error<S: AsRef<str>>(err: S) { dialog_inner(err.as_re...
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-runtime-wry/src/dialog/mod.rs
crates/tauri-runtime-wry/src/dialog/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT #[cfg(windows)] mod windows; pub fn error<S: AsRef<str>>(err: S) { #[cfg(windows)] windows::error(err); #[cfg(not(windows))] { unimplemented!("Error dialog is not i...
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-runtime-wry/src/window/macos.rs
crates/tauri-runtime-wry/src/window/macos.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use objc2_app_kit::{NSBackingStoreType, NSWindow, NSWindowStyleMask}; use objc2_foundation::MainThreadMarker; use tao::platform::macos::WindowExtMacOS; impl super::WindowExt 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-runtime-wry/src/window/linux.rs
crates/tauri-runtime-wry/src/window/linux.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use gtk::prelude::*; #[cfg(any( target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd" ))] use tao::platform::...
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-runtime-wry/src/window/windows.rs
crates/tauri-runtime-wry/src/window/windows.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use windows::Win32::{ Foundation::{HWND, RECT}, Graphics::Dwm::{DwmGetWindowAttribute, DWMWA_EXTENDED_FRAME_BOUNDS}, UI::Input::KeyboardAndMouse::{EnableWindow, IsWindowEna...
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-runtime-wry/src/window/mod.rs
crates/tauri-runtime-wry/src/window/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT #[cfg(any( target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd" ))] mod linux; #[cfg(target_os = "macos")] 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-runtime-wry/src/monitor/macos.rs
crates/tauri-runtime-wry/src/monitor/macos.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use tauri_runtime::dpi::{LogicalSize, PhysicalRect}; impl super::MonitorExt for tao::monitor::MonitorHandle { fn work_area(&self) -> PhysicalRect<i32, u32> { use objc2_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-runtime-wry/src/monitor/linux.rs
crates/tauri-runtime-wry/src/monitor/linux.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use gtk::prelude::MonitorExt; use tao::platform::unix::MonitorHandleExtUnix; use tauri_runtime::dpi::{LogicalPosition, LogicalSize, PhysicalRect}; impl super::MonitorExt for tao...
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-runtime-wry/src/monitor/windows.rs
crates/tauri-runtime-wry/src/monitor/windows.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use tao::dpi::{PhysicalPosition, PhysicalSize}; use tauri_runtime::dpi::PhysicalRect; impl super::MonitorExt for tao::monitor::MonitorHandle { fn work_area(&self) -> PhysicalR...
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-runtime-wry/src/monitor/mod.rs
crates/tauri-runtime-wry/src/monitor/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use tauri_runtime::dpi::PhysicalRect; #[cfg(any( target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd" ))] 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-build/src/mobile.rs
crates/tauri-build/src/mobile.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, Result}; use tauri_utils::write_if_changed; pub fn generate_gradle_files(project_dir: PathBuf) -> Result<()> { let gradle_settin...
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/src/lib.rs
crates/tauri-build/src/lib.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! This applies the macros at build-time in order to rig some special features needed by `cargo`. #![doc( html_logo_url = "https://github.com/tauri-apps/tauri/raw/dev/.github...
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/src/manifest.rs
crates/tauri-build/src/manifest.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use anyhow::{anyhow, Result}; use cargo_toml::{Dependency, Manifest}; use tauri_utils::config::{AppConfig, Config, PatternKind}; #[derive(Debug, Default, PartialEq, Eq)] struct ...
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/src/acl.rs
crates/tauri-build/src/acl.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{ collections::{BTreeMap, HashMap}, env, fs, path::{Path, PathBuf}, }; use anyhow::{Context, Result}; use tauri_utils::{ acl::{ capability::Capability, ...
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/src/static_vcruntime.rs
crates/tauri-build/src/static_vcruntime.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT // taken from <https://github.com/ChrisDenton/static_vcruntime/> // we're not using static_vcruntime directly because we want this for debug builds too use std::{env, fs, io::Wr...
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/src/codegen/mod.rs
crates/tauri-build/src/codegen/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT pub(crate) mod 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-build/src/codegen/context.rs
crates/tauri-build/src/codegen/context.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use anyhow::{Context, Result}; use std::{ env::var, fs::{create_dir_all, File}, io::{BufWriter, Write}, path::{Path, PathBuf}, }; use tauri_codegen::{context_codegen, Con...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tests/restart/build.rs
crates/tests/restart/build.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT fn 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/tests/restart/src/main.rs
crates/tests/restart/src/main.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use tauri::Env; fn main() { let mut argv = std::env::args(); let argc = argv.len(); if argc == 0 || argc > 2 { panic!("restart test binary expect either no arguments o...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false
tauri-apps/tauri
https://github.com/tauri-apps/tauri/blob/a03219ca196372fca542633900a5ad26d805fcf7/crates/tests/restart/tests/restart.rs
crates/tests/restart/tests/restart.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::io; use std::path::{Path, PathBuf}; use std::process::Command; /// Helper for generic catch-all errors. type Result = std::result::Result<(), Box<dyn std::error::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/tests/acl/src/lib.rs
crates/tests/acl/src/lib.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT #[cfg(test)] mod tests { use std::{ collections::BTreeMap, env::temp_dir, fs::{read_dir, read_to_string}, path::Path, }; use tauri_utils::{ acl::{build...
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-generator/build.rs
crates/tauri-schema-generator/build.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{error::Error, path::PathBuf}; use serde::Deserialize; use tauri_utils::{ acl::{capability::Capability, Permission, Scopes}, config::Config, write_if_changed, }; ...
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-generator/src/main.rs
crates/tauri-schema-generator/src/main.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Hosts the schema for the Tauri configuration file. #![doc( html_logo_url = "https://github.com/tauri-apps/tauri/raw/dev/.github/icon.png", html_favicon_url = "https://gi...
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-codegen/src/lib.rs
crates/tauri-codegen/src/lib.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! - Embed, hash, and compress assets, including icons for the app as well as the tray icon. //! - Parse `tauri.conf.json` at compile time and generate the Config struct. #![do...
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-codegen/src/image.rs
crates/tauri-codegen/src/image.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use crate::{ embedded_assets::{EmbeddedAssetsError, EmbeddedAssetsResult}, Cached, }; use proc_macro2::TokenStream; use quote::{quote, ToTokens, TokenStreamExt}; use std::{ff...
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-codegen/src/embedded_assets.rs
crates/tauri-codegen/src/embedded_assets.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use base64::Engine; use proc_macro2::TokenStream; use quote::{quote, ToTokens, TokenStreamExt}; use sha2::{Digest, Sha256}; use std::{ collections::HashMap, fs::File, 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-codegen/src/context.rs
crates/tauri-codegen/src/context.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::convert::identity; use std::path::{Path, PathBuf}; use std::{ffi::OsStr, str::FromStr}; use crate::{ embedded_assets::{ ensure_out...
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-codegen/src/vendor/mod.rs
crates/tauri-codegen/src/vendor/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Manual vendored dependencies - NOT STABLE. //! //! This module and all submodules are not considered part of the public //! api. They can and will change at any time for any ...
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-codegen/src/vendor/blake3_reference.rs
crates/tauri-codegen/src/vendor/blake3_reference.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! This is a lightly modified version of the BLAKE3 reference implementation. //! //! The changes applied are to remove unused item warnings due to using it //! vendored along 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-utils/src/config.rs
crates/tauri-utils/src/config.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! The Tauri configuration used at runtime. //! //! It is pulled from a `tauri.conf.json` file and the [`Config`] struct is generated at compile time. //! //! # Stability //! //...
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-utils/src/html.rs
crates/tauri-utils/src/html.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! The module to process HTML in Tauri. use std::path::{Path, PathBuf}; use html5ever::{ interface::QualName, namespace_url, ns, serialize::{HtmlSerializer, SerializeOpt...
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/lib.rs
crates/tauri-utils/src/lib.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! This crate contains common code that is reused in many places and offers useful utilities like parsing configuration files, detecting platform triples, injecting the CSP, and...
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/io.rs
crates/tauri-utils/src/io.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! IO helpers. use std::io::BufRead; /// Read all bytes until a newline (the `0xA` byte) or a carriage return (`\r`) is reached, and append them to the provided buffer. /// //...
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/tokens.rs
crates/tauri-utils/src/tokens.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Utilities to implement [`ToTokens`] for a type. use std::path::Path; use proc_macro2::TokenStream; use quote::{quote, ToTokens}; use serde_json::Value as JsonValue; use url...
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.rs
crates/tauri-utils/src/platform.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Platform helper functions. use std::{fmt::Display, path::PathBuf}; use serde::{Deserialize, Serialize}; use crate::{config::BundleType, Env, PackageInfo}; mod starting_bi...
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/mime_type.rs
crates/tauri-utils/src/mime_type.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Determine a mime type from a URI or file contents. use std::fmt; const MIMETYPE_PLAIN: &str = "text/plain"; /// [Web Compatible MimeTypes](https://developer.mozilla.org/en...
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/resources.rs
crates/tauri-utils/src/resources.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::{ collections::HashMap, path::{Component, Path, PathBuf}, }; use walkdir::WalkDir; use crate::platform::Target as TargetPlatform; /// Given a path (absolute or re...
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/build.rs
crates/tauri-utils/src/build.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Build script utilities. /// Link a Swift library. #[cfg(target_os = "macos")] pub fn link_apple_library(name: &str, source: impl AsRef<std::path::Path>) { if source.as_ref...
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/assets.rs
crates/tauri-utils/src/assets.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! The Assets module allows you to read files that have been bundled by tauri //! during both compile time and runtime. #[doc(hidden)] pub use phf; use std::{ borrow::Cow, ...
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/plugin.rs
crates/tauri-utils/src/plugin.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Compile-time and runtime types for Tauri plugins. #[cfg(feature = "build")] pub use build::*; #[cfg(feature = "build")] mod build { use std::{ env::vars_os, fs, ...
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/config_v1/parse.rs
crates/tauri-utils/src/config_v1/parse.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT #![allow(clippy::result_large_err)] use serde::de::DeserializeOwned; use serde_json::Value; use std::ffi::OsStr; use std::path::{Path, PathBuf}; use thiserror::Error; /// All e...
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/config_v1/mod.rs
crates/tauri-utils/src/config_v1/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! The Tauri configuration used at runtime. //! //! It is pulled from a `tauri.conf.json` file and the [`Config`] struct is generated at compile time. //! //! # Stability //! Th...
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-utils/src/acl/manifest.rs
crates/tauri-utils/src/acl/manifest.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Plugin ACL types. use std::{collections::BTreeMap, num::NonZeroU64}; use super::{Permission, PermissionSet}; #[cfg(feature = "schema")] use schemars::schema::*; 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-utils/src/acl/value.rs
crates/tauri-utils/src/acl/value.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! A [`Value`] that is used instead of [`toml::Value`] or [`serde_json::Value`] //! to support both formats. use std::collections::BTreeMap; use std::fmt::Debug; use serde::{D...
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/acl/build.rs
crates/tauri-utils/src/acl/build.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! ACL items that are only useful inside of build script/codegen context. use std::{ collections::{BTreeMap, HashMap}, env, fs, path::{Path, PathBuf}, }; 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-utils/src/acl/identifier.rs
crates/tauri-utils/src/acl/identifier.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Identifier for plugins. use serde::{Deserialize, Deserializer, Serialize, Serializer}; use std::num::NonZeroU8; use thiserror::Error; const IDENTIFIER_SEPARATOR: u8 = b':';...
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/acl/schema.rs
crates/tauri-utils/src/acl/schema.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Schema generation for ACL items. use std::{ collections::{btree_map::Values, BTreeMap}, fs, path::{Path, PathBuf}, slice::Iter, }; use schemars::schema::*; 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-utils/src/acl/mod.rs
crates/tauri-utils/src/acl/mod.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Access Control List types. //! //! # Stability //! //! This is a core functionality that is not considered part of the stable API. //! If you use it, note that it may include...
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/acl/capability.rs
crates/tauri-utils/src/acl/capability.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! End-user abstraction for selecting permissions a window has access to. use std::{path::Path, str::FromStr}; use crate::{acl::Identifier, platform::Target}; use serde::{ d...
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/acl/resolved.rs
crates/tauri-utils/src/acl/resolved.rs
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! Resolved ACL for runtime usage. use std::{collections::BTreeMap, fmt}; use crate::platform::Target; use super::{ capability::{Capability, PermissionEntry}, has_app_man...
rust
Apache-2.0
a03219ca196372fca542633900a5ad26d805fcf7
2026-01-04T15:31:58.627796Z
false