Crates.io | hello-world-in-rust |
lib.rs | hello-world-in-rust |
version | 0.1.1 |
source | src |
created_at | 2024-05-13 06:47:56.101888 |
updated_at | 2024-09-05 11:07:58.682289 |
description | Hello World! |
homepage | |
repository | https://github.com/AlvinHon/hello_world_rs |
max_upload_size | |
id | 1238077 |
size | 19,639 |
Hello world in Rust!
Run the binary:
hello-world-in-rust
# Output: hello world!
Execute as crate:
let next_word = hello_world::hello();
Add macro to print out the hello world message in a function.
#[hello_world]
fn main {
// The macro will generate println! to print the hello world message here.
}