I can build perfectly fine when I run cargo build
in my Rust create.
Finished dev [unoptimized + debuginfo] target(s) in 0.08s
However, when I run dfx build
in the same crate, I receive many type errors related to the libs serde
and typenum
.
I had to run rustup target add wasm32-unknown-unknown
to resolve this. Do you know what is happening here?
Is cargo build
doing something different than dfx build
?