Skip to content

Add documentation warnings for Rust, Go, and JavaScript#234

Merged
kate-goldenring merged 5 commits intobytecodealliance:mainfrom
alexcasalboni:main
Apr 7, 2025
Merged

Add documentation warnings for Rust, Go, and JavaScript#234
kate-goldenring merged 5 commits intobytecodealliance:mainfrom
alexcasalboni:main

Conversation

@alexcasalboni
Copy link

3 main changes:

  1. Add a --release warning in the Rust docs to clarify that always building with --release might not be ideal if you're prototyping/testing locally and you need debug info in your backtraces
  2. Add a -no-debug warning in the Go docs to clarify that by default tinygo includes all debug information and that you can optimize your .wasm file by using -no-debug (up to 75% reduction in size)
  3. Add a --disable all warning in the JS docs since many users might actually need to use console.log or new Date() in their component for logging/debugging

Copy link
Collaborator

@kate-goldenring kate-goldenring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding these clarifiers!

@kate-goldenring kate-goldenring merged commit ff815db into bytecodealliance:main Apr 7, 2025
1 check passed
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.

2 participants