Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration Reference

The following fields exist and can be configured:

features

  • Type: array of strings
  • Default: none
  • Note: Which features to use.

default-features

rustflags

  • Type: string or array of strings
  • Default: none
  • Note: Extra command-line flags to pass to rustc. The value may be an array of strings or a space-separated string.

wasm-opt

  • Type: boolean or array of strings
  • Default: true for web release builds, false for web dev builds and native builds
  • Note: Whether or not to use wasm-opt to optimize the web binary. The specific flags to be used can be passed as array of strings or true can be passed to use default options (--strip-debug and -Os).