Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Kinflou opened this issue Feb 21, 2024 · 1 comment
Open

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

Kinflou opened this issue Feb 21, 2024 · 1 comment

Comments

@Kinflou
Copy link

Kinflou commented Feb 21, 2024

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
Copy link
Contributor

lwshang commented Apr 12, 2024

I could not reproduce the error.

My env:

  • macOS 14.4.1
  • dfx v0.19.0
  • rustc 1.76.0 (07dca489a 2024-02-04)

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants