dfinity / cdk-rs

Rust canister development kit for the Internet Computer.
Apache License 2.0
200 stars 85 forks source link

Rust crate typenum fails to compile, on a clean new project #463

Open Kinflou opened 7 months ago

Kinflou commented 7 months ago

Hello, i pretty much just created a new project with rust and it compile errors on deploy. I searched github issues on dfinity/cdk-rs(here) and dfinity/ic but there seemed to be no one pointing this out

Steps to reproduce:

dfx new service -> Picked Rust, SvelteKit and Internet Identity
cd service
dfx start --background
dfx deploy

and that gives me a lot of errors(150 erriors) on the crate typenum about the crate crypto-common, here's a brief of some

error[E0433]: failed to resolve: use of undeclared type `N3`
   --> ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/typenum-1.17.0/src/type_operators.rs:249:14
    |
249 |     let n3 = N3::new();
    |              ^^ use of undeclared type `N3`

Regards.

lwshang commented 5 months ago

I could not reproduce the error.

My env:

Could you check if the new dfx release resolved your issue? (upgrade dfx and create a new project) Or it might be an outdated Rust toolchain caused the problem.

If the issue persists, could you provide more info about your dev env?