Comments (3)
Can I see your Cargo.toml
file? I'm curious which version of the mime
crate you're using.
from examples.
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.
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)
- License not obvious HOT 6
- No source code for quickreplace CLI program HOT 2
- [Question] Why shutdown is required in cheapo-request example HOT 1
- Typo in page 317 HOT 1
- doc: README.md: "Foreign Functions" is chapter 23 (rather than 22)
- I think I find a error from page 520. HOT 1
- Serving Pages to the Web in CH2 - 2nd ed
- Doesn't work with rustc 1.40 HOT 3
- iron-gcd required updated dependencies HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from examples.