Skip to content

feat(tauri): re-export PixelUnit, PhysicalUnit, LogicalUnit#14009

Merged
FabianLars merged 2 commits intotauri-apps:devfrom
WSH032:feat/expose-PixelUnit
Aug 15, 2025
Merged

feat(tauri): re-export PixelUnit, PhysicalUnit, LogicalUnit#14009
FabianLars merged 2 commits intotauri-apps:devfrom
WSH032:feat/expose-PixelUnit

Conversation

@WSH032
Copy link
Contributor

@WSH032 WSH032 commented Aug 15, 2025

If we don't export these APIs, we won't be able to use WindowSizeConstraints directly.

I noticed that tauri already exports a lot of items from the dpi crate at the top-level namespace, which feels a bit like namespace pollution to me 😂

@WSH032 WSH032 requested a review from a team as a code owner August 15, 2025 08:51
@github-project-automation github-project-automation bot moved this to 📬Proposal in Roadmap Aug 15, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Aug 15, 2025

Package Changes Through 273bf33

There are 10 changes which include tauri-cli with minor, @tauri-apps/cli with minor, tauri-utils with minor, tauri-bundler with minor, tauri with minor, tauri-macos-sign with minor, tauri-runtime-wry with minor, @tauri-apps/api with minor, tauri-runtime with minor, tauri-plugin with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
@tauri-apps/api 2.7.0 2.8.0
tauri-utils 2.6.0 2.7.0
tauri-macos-sign 2.1.0 2.2.0
tauri-bundler 2.5.2 2.6.0
tauri-runtime 2.7.1 2.8.0
tauri-runtime-wry 2.7.2 2.8.0
tauri-codegen 2.3.1 2.3.2
tauri-macros 2.3.2 2.3.3
tauri-plugin 2.3.1 2.4.0
tauri-build 2.3.1 2.3.2
tauri 2.7.0 2.8.0
@tauri-apps/cli 2.7.1 2.8.0
tauri-cli 2.7.1 2.8.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@FabianLars
Copy link
Member

FabianLars commented Aug 15, 2025

I noticed that tauri already exports a lot of items from the dpi crate at the top-level namespace, which feels a bit like namespace pollution to me 😂

Agreed, it's getting a bit crowded there at the top level 😂

created #14011 🤷

@FabianLars FabianLars merged commit 0e6b5cb into tauri-apps:dev Aug 15, 2025
20 checks passed
@github-project-automation github-project-automation bot moved this from 📬Proposal to 🔎 In audit in Roadmap Aug 15, 2025
@WSH032 WSH032 deleted the feat/expose-PixelUnit branch August 18, 2025 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🔎 In audit

Development

Successfully merging this pull request may close these issues.

2 participants