-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- General Introduction / Conclusion - Generally, be more specific about the difference between packages and crates.
- Loading branch information
1 parent
edc6189
commit 1e5507f
Showing
12 changed files
with
64 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Introduction | ||
|
||
I wrote this as a quick guide for folks who are choosing to, or being asked to: | ||
|
||
- Work with Rust repositories. | ||
- Align development practices around Rust repositories. | ||
- In some way incorporate Rust in their day to day development considerations. | ||
|
||
There is no expectation that you "want" to do any of this, and it's not my goal | ||
to make you want to. | ||
|
||
The goal here, is to provide a quick tour of what exists in the Rust Ecosystem. | ||
**I am not intending to teach people how to write Rust.** Where possible, I do | ||
point to far better resources on that subject than I would be able to write. | ||
|
||
The Rust ecosystem has been good to me, and I recommend you give it a shot. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,5 @@ An example would be: | |
```toml | ||
[toolchain] | ||
profile = "default" | ||
channel = "1.72.1" | ||
channel = "1.74.0" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Benchmarking | ||
|
||
- I don't think Rust has "full support" for benchmarks without additional crates (yet). | ||
- I don't think Rust has "full support" for benchmarks without additional packages (yet). | ||
- Benchmark tests (via the `#[bench]` macro) are a thing in Nightly Rust, these are good for simple things. | ||
- I use [criterion.rs](https://github.com/bheisler/criterion.rs) for non-trivial benchmarking. | ||
- But there is more available, and you can learn about all of this from the [Rust Performance Book](https://nnethercote.github.io/perf-book/benchmarking.html). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
# Add a crate | ||
|
||
First, let's add the extremely useful `clap` library to our `Cargo.toml`. Start by checking out the [crate page](https://crates.io/crates/clap). | ||
First, let's add the extremely useful `clap` library to our `Cargo.toml`. Start | ||
by checking out the [crates.io page](https://crates.io/crates/clap). | ||
|
||
I am pinning the version, to `4.4.11`, and adding 2 Features: `derive` and `env`. | ||
|
||
- "Features" for crates are important to know about, but I'm not going to cover them here. You can [read up on them](https://doc.rust-lang.org/cargo/reference/features.html). | ||
- "Features" for crates/packages are important to know about, but I'm not going to cover | ||
them here. You can [read up on them](https://doc.rust-lang.org/cargo/reference/features.html). | ||
|
||
```shell | ||
-> cargo add [email protected] --features derive,env | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Conclusion | ||
|
||
Hopefully, you've somewhat learned how to: | ||
|
||
- Can build most Rust repositories from source. | ||
- Generally know how to interact with plain Rust codebases. | ||
- Are not afriad of what's going on in a Rust repository. | ||
- Know, in general, where to find packages, and can loosely equate them to | ||
another language's packages. | ||
- Know what kind of build / testing / dependency tooling is available out of | ||
the box. | ||
- Are curious maybe? Looking to go back and learn more about some of the | ||
features skimmed over? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters