Skip to content

Commit

Permalink
Add code tags to cargo info output
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Oct 17, 2024
1 parent 0d73760 commit 2d61ada
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions posts/2024-10-17-Rust-1.82.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Cargo now has an [`info` subcommand](https://doc.rust-lang.org/nightly/cargo/com
For example, here's what you could see for `cargo info cc`:

<pre>
<b><span style="color:#0A0">cc</span></b> <b><span style="color:#0AA">#build-dependencies</span></b>
<code class="language-text"><b><span style="color:#0A0">cc</span></b> <b><span style="color:#0AA">#build-dependencies</span></b>
A build-time dependency for Cargo build scripts to assist in invoking the native
C compiler to compile native C code into a static archive to be linked into Rust
code.
Expand All @@ -41,7 +41,7 @@ code.
jobserver = []
parallel = [dep:libc, dep:jobserver]
<b><span style="color:#0AA">note</span></b><b>:</b> to see how you depend on cc, run `<b><span style="color:#0AA">cargo tree --invert --package [email protected]</span></b>`
</pre>
</code></pre>

By default, `cargo info` describes the package version in the local `Cargo.lock`, if any. As you can see, it will indicate when there's a newer version too, and `cargo info [email protected]` would report on that.

Expand Down

0 comments on commit 2d61ada

Please sign in to comment.