Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: conditionally export TypeScript bindings in debug mode #56

Merged
merged 3 commits into from
Oct 19, 2024
Merged

Conversation

yaoshiu
Copy link
Owner

@yaoshiu yaoshiu commented Oct 19, 2024

No description provided.

- Incremented version from 1.2.1 to 1.2.2 in package.json, Cargo.toml, and tauri.conf.json
- Version bump follows the migration from Bun to Deno
…nerated Tauri bindings

- Updated the `pretty-der6y` crate from version 1.2.1 to 1.2.2 in Cargo.lock.
- Added a new auto-generated file `src/helpers/bindings.ts` containing user-defined commands and Tauri API bindings. This file was generated by `tauri-specta` and should not be edited manually.
- Added `#[cfg(debug_assertions)]` to only export TypeScript bindings when running in debug mode.
- This ensures that the bindings are not included in release builds, optimizing production performance.
@yaoshiu yaoshiu merged commit 5e652e5 into master Oct 19, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant