mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Move Rust example
This commit is contained in:
parent
459faac064
commit
ec548d9143
6 changed files with 6 additions and 6 deletions
|
@ -410,7 +410,7 @@ mod cli_run {
|
||||||
// expected_ending:"Roc <3 C!\n",
|
// expected_ending:"Roc <3 C!\n",
|
||||||
// use_valgrind: true,
|
// use_valgrind: true,
|
||||||
// },
|
// },
|
||||||
platformSwitchingRust:"platform-switching/rust-platform" => Example {
|
platformSwitchingRust:"platform-switching" => Example {
|
||||||
filename: "rocLovesRust.roc",
|
filename: "rocLovesRust.roc",
|
||||||
executable_filename: "rocLovesRust",
|
executable_filename: "rocLovesRust",
|
||||||
stdin: &[],
|
stdin: &[],
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
app "rocLovesRust"
|
app "rocLovesRust"
|
||||||
packages { pf: "main.roc" }
|
packages { pf: "rust-platform/main.roc" }
|
||||||
imports []
|
imports []
|
||||||
provides [main] to pf
|
provides [main] to pf
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Note: If you installed Rust in this terminal session, you'll need to open a new one first!
|
# Note: If you installed Rust in this terminal session, you'll need to open a new one first!
|
||||||
./roc examples/platform-switching/rust-platform/rocLovesRust.roc
|
./roc examples/platform-switching/rocLovesRust.roc
|
||||||
|
|
||||||
./roc examples/platform-switching/zig-platform/rocLovesZig.roc
|
./roc examples/platform-switching/zig-platform/rocLovesZig.roc
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Note: If you installed rust in this terminal session, you'll need to open a new one first!
|
# Note: If you installed rust in this terminal session, you'll need to open a new one first!
|
||||||
./roc examples/platform-switching/rust-platform/rocLovesRust.roc
|
./roc examples/platform-switching/rocLovesRust.roc
|
||||||
|
|
||||||
./roc examples/platform-switching/zig-platform/rocLovesZig.roc
|
./roc examples/platform-switching/zig-platform/rocLovesZig.roc
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Note: If you installed rust in this terminal session, you'll need to open a new one first!
|
# Note: If you installed rust in this terminal session, you'll need to open a new one first!
|
||||||
./roc examples/platform-switching/rust-platform/rocLovesRust.roc
|
./roc examples/platform-switching/rocLovesRust.roc
|
||||||
|
|
||||||
./roc examples/platform-switching/zig-platform/rocLovesZig.roc
|
./roc examples/platform-switching/zig-platform/rocLovesZig.roc
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
1. Run examples:
|
1. Run examples:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cargo run examples/platform-switching/rust-platform/rocLovesRust.roc
|
cargo run examples/platform-switching/rocLovesRust.roc
|
||||||
|
|
||||||
# This requires installing the Zig compiler, too.
|
# This requires installing the Zig compiler, too.
|
||||||
cargo run examples/platform-switching/zig-platform/rocLovesZig.roc
|
cargo run examples/platform-switching/zig-platform/rocLovesZig.roc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue