Commit Graph

482 Commits

Author SHA1 Message Date
Lucas Fernandes Nogueira
d0510f52eb
refactor(core): serialize response once, closes #5641 (#10641)
* refactor(core): serialize response once closes #5641

This change impacts both the custom protocol and the postMessage based IPC implementations. Basically it changes the whole IPC mechanism to work on raw JSON strings so we do not need to serialize a serde_json::Value after serializing to it from a user-provided type.

i benchmarked this with a 150MB file response (returning Vec<u8> instead of tauri::ipc::Response since the latter does not serialize at all) and it went from 29s to 23s (custom protocol) and from 54s to 48s (post message) on macOS.

* fix mobile & lint

* clippy
2024-08-15 16:15:11 -03:00
github-actions[bot]
ab4e56f5d2
apply version updates (#10532)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-08-08 23:52:47 -03:00
github-actions[bot]
393428e5c8
apply version updates (#10524)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-08-07 14:50:33 -03:00
Lucas Fernandes Nogueira
88619e8914
feat: promote v2 to RC (#10434)
* feat: promote v2 to RC

* update changelog
2024-08-02 10:28:06 -03:00
chip
eaec5fe9c1
Limit pub exposure in 2.x (#10158)
* hide `Invoke` from documentation

* make `Asset` non-exhaustive

* make `InvokeRequest` non-exhaustive

* mark `tauri_utils::platform::Target` non-exhaustive

* mark the runtime crates as unstable API

* Revert "mark the runtime crates as unstable API" [skip ci]

This reverts commit b8377222e3.

* mark the runtime crates as unstable API

* Revert "mark the runtime crates as unstable API" [skip ci]

This reverts commit 9284897644.

* mark the runtime crates as unstable API

* mark tauri_utils::TitleBarStyle as `#[non_exhaustive]`

* mark `InvokeRequest` as non_exhaustive unless `unstable` feature

* mark config and acl items as unstable
2024-07-31 10:54:43 -03:00
github-actions[bot]
2a402b4845
apply version updates (#10281)
Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2024-07-29 07:27:56 -03:00
Jason Tsai
9546548ec0
fix(macos): set default title-bar style to Visible, close #10225 (#10297)
* fix(macos): set default title-bar style to `Visible`

* chore: add TODO
2024-07-17 06:40:38 +03:00
Amr Bashir
da25f73530
feat: add granular size constraints APIs (#10242) 2024-07-17 04:05:56 +03:00
github-actions[bot]
6d965e9fbf
apply version updates (#10179)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-07-12 16:37:38 -03:00
Amr Bashir
261c9f942d
refactor!(core & api): rename drag events for better consistency and clarity (#10170)
* refacotr!(core & api): rename drag events for better consistency and clarity

* more renames

* remove imports

* fix drag over listen

* update example

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-07-12 10:22:06 -03:00
Tony
afb102c59b
fix(runtime-wry): window edge not working after setting resizable false and decorated false dynamically (#10211)
* Fix window edge not working
after setting resziable false and decorated false dynamically

* Fix example don't go crazy on resize

* cargo fmt
2024-07-08 15:24:55 +03:00
Jason Tsai
7bc6a2a1d6
feat(macos): support changing title bar style dynamically, close #9763 (#9788) 2024-07-03 05:36:51 +03:00
github-actions[bot]
ff79161b0d
apply version updates (#10166)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-07-01 23:30:21 -03:00
Lucas Nogueira
f5b121be6e
Revert "apply version updates (#9926)"
This reverts commit 1cc9aa4b66.
2024-07-01 23:14:57 -03:00
github-actions[bot]
1cc9aa4b66
apply version updates (#9926)
Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2024-07-01 22:40:01 -03:00
Tony
7d85f7cf82
chore(deps): update tao to 0.28.1 (#10130) 2024-06-26 09:18:29 +03:00
Amr Bashir
d4c908cfb8
fix(deps): update rust crate windows to 0.57 and webview2-com to 0.31 (#10048)
* fix(deps): update rust crate windows to 0.57 and webview2-com to 0.31

* revert fmt

* wry@0.41
2024-06-24 19:20:47 +03:00
Amr Bashir
669b9c6b5a
feat(core): set gtk app id (#9621)
* feat(core): set gtk app id

ref: https://github.com/tauri-apps/tao/issues/910

* Update core/tauri-runtime-wry/Cargo.toml

* Discard changes to Cargo.lock
2024-06-24 19:20:03 +03:00
Amr Bashir
f29b788110
fix(core/wry): implement resizing natively on Windows (#9862)
closes #7388
closes #9510
closes #9464

ref #9268
ref #9053
ref #8770
ref #8750
ref #4012
2024-06-05 19:03:22 +03:00
github-actions[bot]
594e3e2939
Apply Version Updates From Current Changes (#9869)
* apply version updates

* fix bundler version

* update lockfile

---------

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-05-29 00:10:20 -03:00
Amr Bashir
276c4b1438
fix(Windows): sync menubar theme with the window theme (#9832)
* fix(Windows): sync menubar theme with the window theme

ref: https://github.com/tauri-apps/muda/issues/170

* fix moc runtime

* muda 0.13.4

* missing change file

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-05-24 14:23:54 -03:00
Jonas Kruckenberg
9ac930380a
chore: emit rustc-check-cfg for nightly (#9850)
* fix: emit cargo cfg alias using new syntax too

* Update lib.rs

* fixes for other crates

* clippy

* readd clone

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-05-24 13:12:51 -03:00
github-actions[bot]
51b5d581b5
Apply Version Updates From Current Changes (#9752)
* apply version updates

* fix tests

* fix tests

---------

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-05-22 23:20:59 -03:00
Tony
ae6b13dfc0
feat(core): add app-region: drag to data-tauri-drag-region (#9789) 2024-05-22 19:45:39 +03:00
Siddharth
ec0e092ecd
feat: adds monitor_from_point method (#9770) 2024-05-14 19:48:51 +03:00
github-actions[bot]
6968c40053
Apply Version Updates From Current Changes (#9722)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-05-09 15:22:54 -03:00
Lucas Fernandes Nogueira
5a85ee2826
Revert "Apply Version Updates From Current Changes" (#9723)
This reverts commit 1bee4f279f.
2024-05-09 14:02:22 -03:00
github-actions[bot]
1bee4f279f
Apply Version Updates From Current Changes (#9693)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2024-05-09 12:28:30 -03:00
Lucas Fernandes Nogueira
c0bcc6c0b7
fix(tauri-runtime-wry): window draw span not closing (#9717)
* fix(tauri-runtime-wry): window draw span not closing

* use .retain
2024-05-09 10:09:41 -03:00
Golden Water
78839b6d2f
feat(macos): Expose tao event Event::Reopen, closes #3084 (#4865)
* feat: expose tao event Event::Reopen

* Update .changes/event-reopen.md

* deps(core::tauri-runtime-wry): update tao to 0.28
2024-05-07 21:36:48 +03:00
Amr Bashir
783ef0f2d3
refactor!(core): return result in Webview/WebviewWindow::url getter (#9647)
* refactor!(core): return result in `Webview/WebviewWindow::url` getter

* clippy

* Apply suggestions from code review
2024-05-07 17:16:17 +03:00
github-actions[bot]
83acd85788
apply version updates (#9639)
Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2024-05-07 00:02:54 +02:00
Andrej Mihajlov
07ff78c2de
feat(tray): add TrayIcon::rect method (#9615) 2024-05-03 05:56:54 +03:00
github-actions[bot]
d5775ed6a4
apply version updates (#9617)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2024-04-30 19:31:34 +02:00
github-actions[bot]
108ab9094a
Apply Version Updates From Current Changes (#9551)
* apply version updates

* update wry to 0.39.3 to prevent dependency version mismatches

---------

Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2024-04-30 16:22:46 +02:00
Amr Bashir
477bb8cd4e
feat: add cursor_position getter (#9297)
* feat: add `cursor_position` getter

closes #9250

* js api

* Update mod.rs

* fix build on iOS and android

* use existing wrapper

* fmt

* adjust wording

* update docs

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-04-29 18:28:01 +03:00
github-actions[bot]
ac9bfada4a
Apply Version Updates From Current Changes (#9548)
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-04-22 17:09:51 -03:00
Amr Bashir
e22e61af6c
Revert "Apply Version Updates From Current Changes (#9489)" (#9549)
This reverts commit 198f11ae7b.
2024-04-22 15:42:46 -03:00
github-actions[bot]
198f11ae7b
Apply Version Updates From Current Changes (#9489)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2024-04-22 19:02:28 +02:00
Amr Bashir
07f2af0002
chore(deps): update to windows-rs 0.56 (#9493)
* chore(deps): update to windows-rs 0.56

* lockfile

* use latest versions

* update lock file
2024-04-22 18:33:16 +02:00
Amr Bashir
005fe8ce1e
fix(runtime-wry): apply closable, maximizable and minimizable effects from config (#9410)
closes #9409
2024-04-21 11:43:30 -03:00
Fabian-Lars
e64b8f1dce
chore: merge remote-tracking branch '1.x' into v2 (#9479)
* chore: port PR template from `dev` branch (#9004)

* fix(runtime-wry): avoid panic during clipboard initialization on wayland (#9003)

closes #8964

* ci: downgrade thread_local to 1.1.7 in msrv list (#9012)

* Apply Version Updates From Current Changes (v1) (#9013)

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>

* fix(bundler): escape potentially problematic strings in an XML (#9040)

* fix(bundler): escape potentially problematic strings in an XML (#9030)

- replace characters invalid in XML with their escaped form to properly bundle resources with such characters in their pathnames.

* change file

* fix(cli): use `matched_path_or_any_parents` when checking if a file is ignored (#8903)

* fix: taurignore ignoreing folders not working for watch

* docs: add to changes

* fix: panic: path is expected to be under the root

* Update taurignore-ignoring-folders-not-working-for-watch.md

* Update taurignore-ignoring-folders-not-working-for-watch.md

* fix(cli): migrate to stable features of `log` crate (#9119)

* fix(cli): migrate to stable features of `log` crate

* to_cow_str

* Apply Version Updates From Current Changes (v1) (#9074)

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>

* fix(core/path): remove suffix in basename only once (#9166)

* fix(core/path): remove suffix in basename only once

ref: #9064

* Update tooling/api/src/path.ts

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>

* fix(cli): Clone Options struct after mutating it. (#9188)

* fix(bundler): Fix nsis resource paths on non-windows build systems. (#9281)

* fix(bundler): Fix nsis resource paths on non-windows build systems.

* remove leftover from alternative

* fix(bundler/nsis): Don't use /R flag on installation dir (#9282)

* fix(cli): upgrade heck to better support Chinese/Japanese prodcut name on Linux (#9298)

* chore: fix clippy false positive (#9329)

* fix(cli/info): fix crash when checking node version (#9411)

closes #9396

---------

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: bifs <127015052+bifs@users.noreply.github.com>
Co-authored-by: anatawa12 <anatawa12@icloud.com>
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
Co-authored-by: Jet Li <jing.i.qin@icloud.com>
2024-04-18 05:21:21 +02:00
Marc Espin
55bf4eb51c
fix: Remove old links and updated CONTRIBUTING.md (#9472)
* fix: Remove old links update CONTRIBUTING.md

* update
2024-04-16 00:12:33 +02:00
github-actions[bot]
535691a711
Apply Version Updates From Current Changes (#9348)
Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
2024-04-15 09:32:40 -03:00
Lucas Fernandes Nogueira
02eaf07872
fix(tauri-runtime-wry): Window::inner_size crash when the window has no webviews (#9428) 2024-04-15 13:28:59 +02:00
Tony
f22ea29986
fix(core): revert fix visibility change (#9246) (#9465)
* Revert "fix(windows): changing WebView visibility on hide/show/minimize (#9246)"

This reverts commit 5bd47b4467.

* Change files

* change file

* Update revert-fix-visibility-change.md
2024-04-15 11:50:11 +02:00
Tony
58a7a552d7
feat: Expose webview zoom (#9378)
* Expose webview zoom

* Add js side support

* Generate bundle script

* Format

* Add change file
2024-04-05 02:10:07 +02:00
Tony
9273d7b379
feat(windows): Expose webview2 zoom hotkeys from wry (#9352)
* Expose webview2 zoom hotkeys from wry

* Add change file

* Apply suggestions from code review

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>

* Regenerate schema files

---------

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2024-04-03 20:14:17 +02:00
Fabian-Lars
2f20fdf1d6
fix(core): compile error for 32bit targets (#9361)
* fix(core): compile error for 32bit targets

* clippy giving me trust issues
2024-04-03 17:19:21 +02:00
Tony
4c2e7477e6
fix(windows) window center doesn't consider taskbar size (#9309)
* Fix window center doesn't consider taskbar size

* Clean up

* Add change file

* Calculate title bar size on initial creation

* Comment about not adding in rect.bottom

* Tweak comment

* Fix center existing window a bit too high

* us NSWindow::center on macOS

* skip if undecorated
2024-04-02 20:32:30 +02:00