Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xadillax/hello-rust
Hello Rust!
https://github.com/xadillax/hello-rust
Last synced: 29 days ago
JSON representation
Hello Rust!
- Host: GitHub
- URL: https://github.com/xadillax/hello-rust
- Owner: XadillaX
- License: gpl-2.0
- Created: 2014-12-31T07:32:14.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-31T07:35:38.000Z (almost 10 years ago)
- Last Synced: 2024-10-05T01:54:39.191Z (about 1 month ago)
- Language: Rust
- Size: 133 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hello Rust
Rust files always end in a .rs extension. If you're using more than one word in your filename, use an underscore. hello_world.rs rather than helloworld.rs.
Now that you've got your file open, type this in:
```rust
fn main() {
println!("Hello, world!");
}
```Save the file, and then type this into your terminal window:
```shell
$ rustc main.rs
$ ./main # or main.exe on Windows
Hello, world!
```