Skip to content

Commit

Permalink
Add rust compile note
Browse files Browse the repository at this point in the history
  • Loading branch information
Yutsuten committed Jun 15, 2024
1 parent 75cc9dd commit fe8e96e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions notes/language/rust/compile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: Compile
reference: https://doc.rust-lang.org/rust-by-example/index.html
---

## Single file

Most basic command for compiling:

```shell
rustc main.rs
```

## Makefile

Single file, compile direct to executable.

```makefile
build:
rustc main.rs
```

0 comments on commit fe8e96e

Please sign in to comment.