swiftwasm / swiftwasm/JavaScriptKit

[Question] To control USB devices directly from a browser

Đang mở
#724 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@diuming đang làm issue này rồi.

Từ ngày 23/4/2026.

question
Ngôn ngữ chính
Swift
Star
986
Fork
76
Merge trung bình
21 giờ 11 phút
Pull request đã merge (30 ngày)
4

Mô tả

Hi,
I've successfully communicated and controlled my USB device within a browser using Emscripten + libusb (compiled into a static library by Emscripten).
Most of code (communication and control) is written in C, and Emscripten compiles it into JavaScript and wasm.

I am specifically concerned about the WebUSB bridging, as Emscripten provides a built-in layer for libusb, which SwiftWasm might lack.

Is it possible to convert this communication and control C code to Swift using Swift SDKs for WebAssembly?

Browser communicate with USB Device?
`My Swift code` + `Swift SDKs for WebAssembly` + `Emscripten libusb static library`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.