https://github.com/sameer/wasm-bindgen-ts-decl
Generate wasm-bindgen bindings using Typescript Declarations
https://github.com/sameer/wasm-bindgen-ts-decl
Last synced: 12 months ago
JSON representation
Generate wasm-bindgen bindings using Typescript Declarations
- Host: GitHub
- URL: https://github.com/sameer/wasm-bindgen-ts-decl
- Owner: sameer
- License: other
- Created: 2022-10-08T00:18:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-21T23:39:32.000Z (over 3 years ago)
- Last Synced: 2025-04-02T11:54:19.145Z (12 months ago)
- Language: Rust
- Size: 41 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# wasm-bindgen-ts-decl
Generate low-level Rust bindings to JavaScript using [wasm-bindgen](https://rustwasm.github.io/docs/wasm-bindgen/) & [Typescript Type Declarations](https://www.typescriptlang.org/docs/handbook/2/type-declarations.html).
There are some rough edges, but the bindings should compile with few to no manual changes.
## Usage
```bash
cargo run --release ./node_modules/@types/geojson/ dist
```
## TODOs
- [ ] OR types
- [ ] AND types
- [ ] Variadic function support
- [ ] Some TS features
- [ ] Proper namespace/modules support
- [ ] Rust style names: screaming camel case for statics