Closed
Description
This issue is reserved for someone who has not yet contributed to this codebase.
Currently we read the Cargo.toml twice! this is not preferred:
- read it to write package.json
- read it to pass crate name to wasm-bindgen
MENTORING INSTRUCTIONS (from @mgattozzi !):
- Create a small expression or function to read the
Cargo.toml
file to aString
and assign it to a variable, maybe something likeCARGO_TOML
- Replace instances of it being read with the variable you just created
- Remove any code associated with reading the file