reinterpretcat / vrp

A Vehicle Routing Problem solver
https://reinterpretcat.github.io/vrp/
Apache License 2.0
348 stars 69 forks source link

missing field `package` #70

Closed xeroxstar closed 2 years ago

xeroxstar commented 2 years ago

Hello, Im trying to build a javascript package by following this example:

This is example how to call solver methods from javascript in browser. You need to build vrp-cli library for WebAssembly target. To do this, you can use wasm-pack:

cd vrp-cli
wasm-pack build --target web

But I am getting an error:

Error: failed to parse manifest: C:\Users\Vadim Korolov\Desktop\work\@avrora\ui\lib\examples\routing\bin\vrp\Cargo.toml
Caused by: missing field `package`

I am not an expert on rust and cant figure out how to fix it, I tried to google it but no results there...

Thank you

rustc --version = 1.58.1 (db9d1b20b 2022-01-20) cargo --version = 1.58.0 (f01b232bc 2022-01-19) Microsoft Windows 10 Enterprise 10.0.18363

xeroxstar commented 2 years ago

Nevermind, somehow I didn't followed the instruction which clearly says that i have to navigate to vrp-cli folder cd vrp-cli ....