second-state / wasm-learning

Building Rust functions for Node.js to take advantage of Rust's performance, WebAssembly's security and portability, and JavaScript's ease-of-use. Demo code and recipes.
https://www.secondstate.io/articles/getting-started-with-rust-function/
485 stars 102 forks source link

Issue while building the quadratic project. #3

Closed imrishabh18 closed 1 month ago

imrishabh18 commented 4 years ago

I am using docker to build the quadratic project and getting this error. Need help to resolve this error. use of undeclared type or module serde_json Screenshot from 2020-08-02 21-59-46

juntao commented 4 years ago

You are using the SSVM-nodejs-starter project but changed src/lib.rs to use serde. You need to change Cargo.toml to declare serde as a dependency as well.