Coder Social home page Coder Social logo

iron-gdc error about examples HOT 3 CLOSED

programmingrust avatar programmingrust commented on September 17, 2024
iron-gdc error

from examples.

Comments (3)

jimblandy avatar jimblandy commented on September 17, 2024

Can I see your Cargo.toml file? I'm curious which version of the mime crate you're using.

from examples.

simoneromano96 avatar simoneromano96 commented on September 17, 2024

I left mime = * thinking it would select the latest version and evidently, it selected the first available version. Using the latest exact version made the program compile and work as expected. I read more about cargo in the Rust's documentation; if I understood right cargo will select automatically the latest version available if there are no major changes since the version specified in the .toml file, right?
Sorry for bringing this false problem up.
Thank you for the good book

from examples.

jimblandy avatar jimblandy commented on September 17, 2024

You're welcome!

The '*' version number says that any version will do, including major version upgrades. Cargo will choose the newest available, and then stick with that version until you run cargo update.

In this case, the newest version of the mime crate is currently 0.3.5. As of 0.3.0, the mime crate no longer exports a mime! macro. Page 186 explains the rules for version numbers starting with zero; in short, 0.3.5 is not compatible with 0.2.3, as you discovered.

from examples.

Related Issues (10)

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.