deislabs / wagi

Write HTTP handlers in WebAssembly with a minimal amount of work
Apache License 2.0
890 stars 44 forks source link

Fix to resolve Error: missing field `modules` at line 6 column 1 #17

Closed VishnuJin closed 3 years ago

VishnuJin commented 3 years ago

to address a de-serialization issue on parsing modules.toml that caused Error: missing field modules at line 6 column 1 fixing the typos in read me and modules.toml file in example directory.
In lib.rs file line number 73 to 76 expects de-serialization key as [[modules]] but examples files and readme refers to use [[module]] #[derive(Clone, Deserialize)] pub struct ModuleConfig { pub modules: Vec<Module>, } Post fixing these typos in readme and example directory i was successfully able to run WAGI server as expected

ghost commented 3 years ago

CLA assistant check
All CLA requirements met.