typeshare icon indicating copy to clipboard operation
typeshare copied to clipboard

WASI Support

Open XAMPPRocky opened this issue 2 years ago • 3 comments

Hey I'm interested in this project, as it solves a problem I've had with a lot of my projects. One of the main languages I'm interested in generating types for is WASI (WebAssembly System Interface), is there interest in the project to support WASI?

XAMPPRocky avatar Nov 22 '22 13:11 XAMPPRocky

I think that would require #![no_std] support to be added

btwiuse avatar Nov 22 '22 22:11 btwiuse

Hi @XAMPPRocky, while I don't know any alternatives specifically for WASI, I do know a great resource for generating TypeScript bindings from Rust+WebAssembly projects: tsify.

I had actually given a talk about it a couple of months ago, here are the repo and slides.

jkomyno avatar Nov 30 '22 21:11 jkomyno

I think that would require #![no_std] support to be added

typeshare actually works on #![no_std]. You just have to use the typeshare_annotation crate directly, as the core crate pulls in std dependencies, presumably for Kotlin and Swift FFI.

FrozenDroid avatar Nov 08 '23 07:11 FrozenDroid