Skip to content

Commit 1fc90cf

Browse files
disable Tauri features by default
1 parent 4abd675 commit 1fc90cf

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ tauri-specta-macros = { version = "=2.0.0-rc.24", optional = true, path = "./mac
3434
serde = "1"
3535
serde_json = "1"
3636
thiserror = "2"
37-
tauri = { workspace = true, features = ["specta"] }
37+
tauri = { version = "2", default-features = false, features = ["specta"] }
38+
3839

3940
# Private
4041
heck = "0.5"

src/builder.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
use std::{any::TypeId, borrow::Cow, collections::BTreeMap, path::Path};
22

3-
use crate::{event::EventRegistryMeta, Commands, EventRegistry, Events, LanguageExt};
3+
use crate::{Commands, EventRegistry, Events, LanguageExt, event::EventRegistryMeta};
44
use serde::Serialize;
55
use specta::{
6-
datatype::{Function, Reference},
76
Type, Types,
7+
datatype::{Function, Reference},
88
};
9-
use tauri::{ipc::Invoke, Manager, Runtime};
9+
use tauri::{Manager, Runtime, ipc::Invoke};
1010

1111
/// The mode which the error handling is done in the bindings.
1212
#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
@@ -84,7 +84,7 @@ pub enum ErrorHandlingMode {
8484
/// ```
8585
#[derive(Debug)]
8686
#[non_exhaustive]
87-
pub struct Builder<R: Runtime = tauri::Wry> {
87+
pub struct Builder<R: Runtime> {
8888
commands: Commands<R>,
8989
cfg: BuilderConfiguration,
9090
}

0 commit comments

Comments
 (0)