Giter Club home page Giter Club logo

Comments (9)

neetabisht avatar neetabisht commented on June 9, 2024

$ rustup --version
rustup 1.26.0 (5af9b9484 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active rustc version is rustc 1.75.0 (82e1608df 2023-12-21)

INNEBIS1@IN-L-7402183 MINGW64 /d/eventgrid_project/rust_project (master)
$

from cargo.

weihanglo avatar weihanglo commented on June 9, 2024

It seems you'v configured source replacement (a.k.a. mirrors). Check your .cargo/config.toml. Comment out [source] table and see if the original crates.io registry has the same issue.

from cargo.

neetabisht avatar neetabisht commented on June 9, 2024

@weihanglo I just installed Rust and created new project using "cargo new project-name" cli and executed "cargo build".
When i check ~/.cargo folder, I'm not able to see any config.toml file present.

image

from cargo.

Eh2406 avatar Eh2406 commented on June 9, 2024

If you look in your cargo.lock for the section about autocfg v0.1.8, what is there?

from cargo.

arlosi avatar arlosi commented on June 9, 2024

Cargo's error for this case will indicate source replacement even when it's not explicitly configured due to the built-in sparse replacement of crates.io, so it's possible that no source replacement is configured here. I just opened #13433 to improve the errors.

Can you check if ~/.cargo/registry/cache/index.crates.io-6f17d22bba15001f/autocfg-0.1.8.crate exists? That's where it will be downloaded by default if a source replacement is not configured.

Another way to check (if you have nightly available) is to run cargo +nightly -Zunstable-options config get source. If it gives you an error, then no source replacement is configured.

from cargo.

neetabisht avatar neetabisht commented on June 9, 2024

~/.cargo/registry/cache/index.crates.io-6f17d22bba15001f/autocfg-0.1.8.crate it is not created for me.

from cargo.

neetabisht avatar neetabisht commented on June 9, 2024

There is no cache folder present under ~/.cargo/registry

INNEBIS1@IN-L-7402183 MINGW64 ~/.cargo/registry
$ pwd
/c/Users/INNEBIS1/.cargo/registry

INNEBIS1@IN-L-7402183 MINGW64 ~/.cargo/registry
$ ls -la
total 1
drwxr-xr-x 1 INNEBIS1 1049089 0 Feb 8 11:23 ./
drwxr-xr-x 1 INNEBIS1 1049089 0 Feb 8 15:25 ../
-rw-r--r-- 1 INNEBIS1 1049089 177 Feb 8 16:34 CACHEDIR.TAG
drwxr-xr-x 1 INNEBIS1 1049089 0 Feb 8 11:23 index/
INNEBIS1@IN-L-7402183 MINGW64 ~/.cargo/registry
$

Rather I have below file present for autocf.

$ cat ~/.cargo/registry/index/index.crates.io-6f17d22bba15001f/.cache/au/to/autocfg
etag: W/"5f15de4a723e10b3f9eaf048d693cccc"0.0.1{"name":"autocfg","vers":"0.0.1","deps":[],"cksum":"ea7663289d0f977de588bc604662f450e05e5ad47e728f93062394291b68be8f","features":{},"yanked":false}0.1.0{"name":"autocfg","vers":"0.1.0","deps":[],"cksum":"23213af7601f0f2d929f73d2a772804562cb09063f50bba9c361f86d6a0376f8","features":{},"yanked":false}0.1.1{"name":"autocfg","vers":"0.1.1","deps":[],"cksum":"4e5f34df7a019573fb8bdc7e24a2bfebe51a2a1d6bfdbaeccedb3c41fc574727","features":{},"yanked":false}0.1.2{"name":"autocfg","vers":"0.1.2","deps":[],"cksum":"a6d640bee2da49f60a4068a7fae53acde8982514ab7bae8b8cea9e88cbcfd799","features":{},"yanked":false}0.1.3{"name":"autocfg","vers":"0.1.3","deps":[],"cksum":"dfb37ca32a3d9d88f18d08bac8d28368b8ee1f14f8b08eb62999c51720035b55","features":{},"yanked":true}0.1.4{"name":"autocfg","vers":"0.1.4","deps":[],"cksum":"0e49efa51329a5fd37e7c79db4621af617cd4e3e5bc224939808d076077077bf","features":{},"yanked":false}0.1.5{"name":"autocfg","vers":"0.1.5","deps":[],"cksum":"22130e92352b948e7e82a49cdb0aa94f2211761117f29e052dd397c1ac33542b","features":{},"yanked":false}0.1.6{"name":"autocfg","vers":"0.1.6","deps":[],"cksum":"b671c8fb71b457dd4ae18c4ba1e59aa81793daacc361d82fcd410cef0d491875","features":{},"yanked":false}0.1.7{"name":"autocfg","vers":"0.1.7","deps":[],"cksum":"1d49d90015b3c36167a20fe2810c5cd875ad504b39cff3d4eae7977e6b7c1cb2","features":{},"yanked":false}1.0.0{"name":"autocfg","vers":"1.0.0","deps":[],"cksum":"f8aac770f1885fd7e387acedd76065302551364496e46b3dd00860b2f8359b9d","features":{},"yanked":false}1.0.1{"name":"autocfg","vers":"1.0.1","deps":[],"cksum":"cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a","features":{},"yanked":false}1.1.0{"name":"autocfg","vers":"1.1.0","deps":[],"cksum":"d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa","features":{},"yanked":false}0.1.8{"name":"autocfg","vers":"0.1.8","deps":[{"name":"autocfg","req":"^1.1.0","features":[],"optional":false,"default_features":true,"target":null,"kind":"normal"}],"cksum":"0dde43e75fd43e8a1bf86103336bc699aa8d17ad1be60c76c0bdfd4828e19b78","features":{},"yanked":false}
INNEBIS1@IN-L-7402183 MINGW64 /d/eventgrid_project/rust_project_rumqtt/rumqtt (master)
$

from cargo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.