Wasm-pack: Warn on all missing fields in Cargo.toml

Created on 9 Mar 2018  路  4Comments  路  Source: rustwasm/wasm-pack

When using wasm-pack via wasm-pack init only one field at a time is output as to what's missing from the Cargo.toml file. It would be nicer if all the fields missing were printed out all at once!

PR attached to-do

Most helpful comment

@sebinsua - sorry you ran into that trouble. this is def a feature we are going to implement!

All 4 comments

ah yes! great. the error handling is p garbage rn (#12). thanks for filing this!

I also found it difficult to know what it was telling me.

It would be good if it said something like "[ERROR] The following fields are missing from your Cargo.toml: repository, license"

I honestly thought that it was just giving me a warning, and spent 10 minutes ignoring the message, and wondering why it wasn't working... >_<

@sebinsua - sorry you ran into that trouble. this is def a feature we are going to implement!

Just put a PR in to fix this! :D

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ishitatsuyuki picture ishitatsuyuki  路  5Comments

gliheng picture gliheng  路  3Comments

netgusto picture netgusto  路  4Comments

mikedilger picture mikedilger  路  3Comments

turboladen picture turboladen  路  4Comments