Files
100-exercises-to-learn-rust/exercises/05_ticket_v2/10_packages/src/main.rs
2024-05-12 22:47:45 +02:00

12 lines
409 B
Rust

// This is a `main.rs` file, therefore `cargo` interprets this as the root of a binary target.
// TODO: fix this broken import. Create a new library target in the `src` directory.
// The library target should expose a public function named `hello_world` that takes no arguments
// and returns nothing.
use packages::hello_world;
// This is the entrypoint of the binary.
fn main() {
hello_world();
}