Skip to content
Snippets Groups Projects
Commit e1240b8b authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

[docs] improve description of "crates"

parent 651029d6
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !126. Comments created here will be created in the context of that merge request.
...@@ -146,7 +146,7 @@ Before changing the code, make sure that the default code compiles correctly: ...@@ -146,7 +146,7 @@ Before changing the code, make sure that the default code compiles correctly:
Compiling hello-world v0.1.0 (file:///home/elois/dev/hello-world) Compiling hello-world v0.1.0 (file:///home/elois/dev/hello-world)
Finished dev [unoptimized + debuginfo] target(s) in 0.91 secs Finished dev [unoptimized + debuginfo] target(s) in 0.91 secs
Cargo is the equivalent of npm for Rust, it will look for all the dependencies of the crates (=libraries) you install. Yes in Rust we speak of crates to designate dependencies, it can be a library or a package. Cargo is the equivalent of npm for Rust, it will look for all the dependencies of the crates you install. In Rust a "crate" refers to any library or package. It's comparable to Python wheels, Java archive, Ruby gems...
If you get a `Finished dev[unoptimized + debuginfo] target(s) in x.xx secs`, congratulations you just compiled your first Rust program :) If you get a `Finished dev[unoptimized + debuginfo] target(s) in x.xx secs`, congratulations you just compiled your first Rust program :)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment