tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[feat] webhid API

Open HaoboGu opened this issue 2 years ago • 2 comments

Describe the problem

Electron has APIs for device accessing, like webhid/webusb/webserial. I cannot find any equivalent in tauri. Electron also provides a way to skip the popup to grant access of the device.

reference: https://www.electronjs.org/docs/latest/tutorial/devices#webhid-api

Describe the solution you'd like

Add same APIs

Alternatives considered

No response

Additional context

No response

HaoboGu avatar Nov 16 '23 06:11 HaoboGu

These are chromium-only apis, and are not supported on other webwiev engines which are used by tauri. A possible workaround would be using rust usb library.

k26pl avatar Dec 11 '23 17:12 k26pl

Hi, I'm also interest in getting this feature implemented.

Can't it be guarded behind some kind if feature flag, and exit the build process if the webview engine isn't supported?

HigherOrderLogic avatar Apr 25 '24 10:04 HigherOrderLogic