Skip to content

Commit

Permalink
Add cargo test export_bindings to README (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines authored Nov 3, 2024
1 parent 4aea173 commit 592898a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ struct User {
last_name: String,
}
```
When running `cargo test`, the TypeScript bindings will be exported to the file `bindings/User.ts`.
When running `cargo test` or `cargo test export_bindings`, the TypeScript bindings will be exported to the file `bindings/User.ts`.

### Features
- generate type declarations from rust structs
Expand Down
2 changes: 1 addition & 1 deletion ts-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
//! last_name: String,
//! }
//! ```
//! When running `cargo test`, the TypeScript bindings will be exported to the file `bindings/User.ts`.
//! When running `cargo test` or `cargo test export_bindings`, the TypeScript bindings will be exported to the file `bindings/User.ts`.
//!
//! ## Features
//! - generate type declarations from rust structs
Expand Down

0 comments on commit 592898a

Please sign in to comment.