Function resolve_web_package_dir
Source pub fn resolve_web_package_dir(src_dir: &Path, package: Option<&str>) -> PathBuf
Expand description
Resolves the crate directory for package under src_dir so wasm-pack compiles the right workspace member.
§Arguments
&Path - Project or workspace root directory.
Option<&str> - Optional --package name.
§Returns
PathBuf - Directory containing the target crate’s Cargo.toml.