We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ab807a commit 8221cacCopy full SHA for 8221cac
1 file changed
content/rust/cargo.md
@@ -1,7 +1,7 @@
1
+++
2
title="Cargo"
3
date=2023-06-16
4
-updated = 2025-04-26
+updated = 2025-05-11
5
extra = { series = "Rust" }
6
taxonomies = { tags = ["Rust"] }
7
@@ -43,10 +43,11 @@ Example
43
44
```rust
45
println!("{}", env!("CARGO_PKG_NAME"));
46
+println!("{}", env!("CARGO_PKG_VERSION"));
47
```
48
49
- CARGO_PKG_NAME
-- CARGO_PKG_VERSION (Prefer use of [Version Crate](https://crates.io/crates/version))
50
+- CARGO_PKG_VERSION (As an alternative you may use the [Version Crate](https://crates.io/crates/version))
51
52
# Specifying dependencies
53
0 commit comments