diff --git a/Cargo.lock b/Cargo.lock index 37c53ee..fe6ce20 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3479,7 +3479,7 @@ dependencies = [ [[package]] name = "tauri-interop" -version = "2.0.0-dev" +version = "2.0.0" dependencies = [ "js-sys", "leptos", @@ -3495,7 +3495,7 @@ dependencies = [ [[package]] name = "tauri-interop-macro" -version = "2.0.0-dev" +version = "2.0.0" dependencies = [ "convert_case 0.6.0", "lazy_static", diff --git a/Cargo.toml b/Cargo.toml index 9e5e8c2..088fd85 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [workspace] members = ["tauri-interop-macro"] package.edition = "2021" -package.version = "2.0.0-dev" +package.version = "2.0.0" package.keywords = ["wasm", "tauri", "command", "event", "leptos"] package.authors = ["photovoltex"] package.repository = "https://github.com/photovoltex/tauri-interop.git" @@ -20,8 +20,8 @@ description = "Easily connect your rust frontend and backend without writing dup readme = "README.md" [dependencies] -tauri-interop-macro = { path = "./tauri-interop-macro" } -#tauri-interop-macro = "2.0.0" +#tauri-interop-macro = { path = "./tauri-interop-macro" } +tauri-interop-macro = "2.0.0" js-sys = "0.3" serde = { version = "1.0", features = ["derive"] } @@ -39,15 +39,14 @@ leptos = { version = "0.5", optional = true } tauri = { version = "1.5", default-features = false, features = ["wry"] } [target.'cfg(target_family = "wasm")'.dependencies] -tauri-interop-macro = { path = "./tauri-interop-macro", features = ["_wasm"] } -# tauri-interop-macro = { version = "2", features = [ "wasm" ] } +#tauri-interop-macro = { path = "./tauri-interop-macro", features = ["_wasm"] } +tauri-interop-macro = { version = "2.0.0", features = [ "_wasm" ] } [target.'cfg(not(target_family = "wasm"))'.dev-dependencies] tauri = "1.5" [features] -# todo: remove default feature before publish -default = ["event"] +default = [] event = ["tauri-interop-macro/event"] initial_value = ["tauri-interop-macro/initial_value"] leptos = ["dep:leptos", "tauri-interop-macro/leptos"] diff --git a/tauri-interop-macro/Cargo.toml b/tauri-interop-macro/Cargo.toml index c9b30f0..820d56b 100644 --- a/tauri-interop-macro/Cargo.toml +++ b/tauri-interop-macro/Cargo.toml @@ -29,8 +29,7 @@ serde = "^1.0" tauri-interop = { path = "..", features = ["initial_value"] } [features] -# todo: remove default feature before publish -default = [ "event" ] +default = [] event = [] leptos = [] initial_value = []