rustwasm / rust-webpack-template

Kickstart your Rust, WebAssembly, and Webpack project!
Apache License 2.0
562 stars 75 forks source link

Cargo complains about debug_assertions optional dependencies won't work #163

Open ishitatsuyuki opened 4 years ago

ishitatsuyuki commented 4 years ago

Describe the Bug

See the descriptive Cargo warning message:

warning: Found debug_assertions in target.'cfg(...)'.dependencies. This value is not supported for selecting dependencies and will not work as expected. To learn more visit https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies

Steps to Reproduce

wasm-pack build
yokra9 commented 4 years ago

I created PR( #168 ) to solve this issue. Please review to merge.