Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions solutions/rust/hello-world/1/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "hello_world"
version = "0.1.0"
edition = "2024"

# Not all libraries from crates.io are available in Exercism's test runner.
# The full list of available libraries is here:
# https://github.com/exercism/rust-test-runner/blob/main/local-registry/Cargo.toml
[dependencies]
4 changes: 4 additions & 0 deletions solutions/rust/hello-world/1/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// &'static is a "lifetime specifier", something you'll learn more about later
pub fn hello() -> &'static str {
"Hello, World!"
}