You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DevServer::xtask(name) and DevServer::cargo(subcommand) convenience builders for setting the main watch command.
DevServer::arg(), DevServer::args(), DevServer::env(), DevServer::envs() restored as builder methods on DevServer.
DevServer::dist_dir(path) builder to explicitly set the directory served by the dev server.
Hook trait for DevServer pre/post commands.
Transformer trait for Dist asset processing.
Dist::transformer(impl Transformer) builder to register asset transformers.
SassTransformer struct (behind the sass feature) implementing Transformer to compile SASS/SCSS files to CSS.
Dist::optimize_wasm(WasmOpt) builder (behind the wasm-opt feature) to integrate wasm-opt directly into the build() pipeline.
Dist::default_debug_dir() and Dist::default_release_dir() associated functions returning camino::Utf8PathBuf.
"Why xtask-wasm?" section added to the README and crate-level documentation.
Changed
BREAKINGDevServer::start() no longer takes a dist_dir path argument.
BREAKINGDevServer::command() now accepts a process::Command instead of a program name string.
BREAKINGDevServer::not_found() renamed to DevServer::not_found_path().
BREAKINGDist::run() renamed to Dist::build().
BREAKINGDist::dist_dir_path() renamed to Dist::dist_dir().
BREAKINGDist::static_dir_path() renamed to Dist::assets_dir(). The assets directory is now auto-discovered at <package_root>/assets when not explicitly set.
BREAKINGrun_in_workspace field and use_workspace_root() / use_current_dir() methods removed from Dist.
BREAKINGSassTransformer is now opt-in via .transformer(SassTransformer::default()).
BREAKINGRequest::dist_dir_path field renamed to Request::dist_dir.
Dist::default_debug_dir() and Dist::default_release_dir() now return an owned camino::Utf8PathBuf.
run_example macro: static_dir argument renamed to assets_dir.
run_example macro: default index.html is no longer generated when app_name is set.
Removed
BREAKING Free functions default_dist_dir(release: bool), default_dist_dir_debug(), and default_dist_dir_release() removed in favor of Dist::default_debug_dir() and Dist::default_release_dir().
BREAKINGDist::sass_options() removed; configure via SassTransformer { options: ... }.
Fixed
SassTransformer: SASS compilation errors are now propagated as Err instead of panicking.
copy_assets: transformer errors are now propagated immediately.
Auto-discovery was looking for a public/ directory while the rest of the codebase used assets.