Skip to content

Commit

Permalink
Init Rust binary.
Browse files Browse the repository at this point in the history
  • Loading branch information
noteed committed May 10, 2024
1 parent 82abf34 commit 078e3d0
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ node_modules
package-lock.json
.DS_Store
.*.swp
/target
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "thebacknd"
version = "0.1.0"
edition = "2021"

[dependencies]
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,13 @@ helper scripts:
# destroy-system
# update-system
```

# Local binary

The `scripts/thebacknd-run.sh` script tries to provide a user-friendly way to
spin a VM. Some code living in `src/` is supposed to replace it in the future.

```
$ nix-shell -p cargo
$ cargo run
```
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello.");
}

0 comments on commit 078e3d0

Please sign in to comment.