From 592898a76476f0bb9d30b9967963e38fe97d8558 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 3 Nov 2024 09:11:21 -0500 Subject: [PATCH] Add `cargo test export_bindings` to README (#363) --- README.md | 2 +- ts-rs/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 434edb97..8c0827ee 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/ts-rs/src/lib.rs b/ts-rs/src/lib.rs index c49a83cf..9a720644 100644 --- a/ts-rs/src/lib.rs +++ b/ts-rs/src/lib.rs @@ -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