ts-bind 0.1.1

A simple and easy to use Rust crate for TypeScript bindings
Documentation

ts-bind

A Rust crate for generating TypeScript bindings from structs.

Installation

Add this to your Cargo.toml:

[dependencies]
ts-bind = "0.1.0"

Usage

Add the following to your Rust code:

use ts_bind::TsBind;

#[derive(TsBind)]
struct MyStruct {
    field1: String,
    field2: i32,
}

This will generate a TypeScript interface in the bindings directory.

Contributing

Feel free to open issues or submit pull requests on our GitHub repository.

License

This project is licensed under the MIT License. See the LICENSE file for details.