diff --git a/Cargo.lock b/Cargo.lock index 6dc3ccaf..a2ddf1e4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -470,7 +470,7 @@ dependencies = [ [[package]] name = "roc_host" -version = "0.21.0-rc4" +version = "0.21.0" dependencies = [ "bytes", "crossterm", diff --git a/Cargo.toml b/Cargo.toml index 21f17aa4..4221fcac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "roc_host" -version = "0.21.0-rc4" +version = "0.21.0" authors = ["The Roc Contributors"] edition = "2021" rust-version = "1.97" diff --git a/examples/bytes-stdin-stdout.roc b/examples/bytes-stdin-stdout.roc index 661859c4..01890889 100644 --- a/examples/bytes-stdin-stdout.roc +++ b/examples/bytes-stdin-stdout.roc @@ -1,5 +1,5 @@ ## Copy raw bytes from standard input to standard output and report the total. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdin diff --git a/examples/command-line-args.roc b/examples/command-line-args.roc index e14b6265..c0df23e3 100644 --- a/examples/command-line-args.roc +++ b/examples/command-line-args.roc @@ -1,5 +1,5 @@ ## Read native command-line arguments without losing non-Unicode data. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdout diff --git a/examples/command.roc b/examples/command.roc index 1b7982cf..7cd5fdb2 100644 --- a/examples/command.roc +++ b/examples/command.roc @@ -1,5 +1,5 @@ ## Run commands, capture their output, and set their env vars. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdout diff --git a/examples/dir.roc b/examples/dir.roc index 4ee46e84..8c5f2000 100644 --- a/examples/dir.roc +++ b/examples/dir.roc @@ -1,5 +1,5 @@ ## Create, inspect, and clean up a small directory tree. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdout diff --git a/examples/env-var.roc b/examples/env-var.roc index 01f905fd..2295674b 100644 --- a/examples/env-var.roc +++ b/examples/env-var.roc @@ -1,5 +1,5 @@ ## Read native and UTF-8 environment variables. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdout diff --git a/examples/error-handling.roc b/examples/error-handling.roc index 22ca0868..c1f7d46c 100644 --- a/examples/error-handling.roc +++ b/examples/error-handling.roc @@ -1,5 +1,5 @@ ## Handle errors with tag-pattern matching. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdout diff --git a/examples/file-accessed-modified-created-time.roc b/examples/file-accessed-modified-created-time.roc index 65b06c3e..99ddd32f 100644 --- a/examples/file-accessed-modified-created-time.roc +++ b/examples/file-accessed-modified-created-time.roc @@ -1,5 +1,5 @@ ## Read a file's accessed, modified, and creation timestamps. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdout diff --git a/examples/file-permissions.roc b/examples/file-permissions.roc index 5304ff6b..2c31d529 100644 --- a/examples/file-permissions.roc +++ b/examples/file-permissions.roc @@ -1,5 +1,5 @@ ## Inspect whether a file is executable, readable, and writable. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdout diff --git a/examples/file-read-buffered.roc b/examples/file-read-buffered.roc index 79f8907e..78be4104 100644 --- a/examples/file-read-buffered.roc +++ b/examples/file-read-buffered.roc @@ -3,7 +3,7 @@ ## This can be useful to process large files without using a lot of RAM or ## requiring the user to wait until the complete file is processed when they ## only wanted to look at the first page. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdout diff --git a/examples/file-read-write.roc b/examples/file-read-write.roc index cea64f91..cde0b7d0 100644 --- a/examples/file-read-write.roc +++ b/examples/file-read-write.roc @@ -1,5 +1,5 @@ ## Write a UTF-8 file, read it back, and delete it. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdout diff --git a/examples/file-replace.roc b/examples/file-replace.roc index e8f5578f..234ba3ed 100644 --- a/examples/file-replace.roc +++ b/examples/file-replace.roc @@ -1,5 +1,5 @@ ## Replace every occurrence of a substring in a UTF-8 file in place. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdout diff --git a/examples/file-size.roc b/examples/file-size.roc index 954b83e4..bf7e03b4 100644 --- a/examples/file-size.roc +++ b/examples/file-size.roc @@ -1,5 +1,5 @@ ## Report the size in bytes of a path supplied on the command line. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdout diff --git a/examples/hello-world.roc b/examples/hello-world.roc index 1e9b01d0..c1fb6f0d 100644 --- a/examples/hello-world.roc +++ b/examples/hello-world.roc @@ -1,5 +1,5 @@ ## Print a minimal greeting to standard output. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdout diff --git a/examples/hello.roc b/examples/hello.roc index 513cca95..3a2a28f1 100644 --- a/examples/hello.roc +++ b/examples/hello.roc @@ -1,5 +1,5 @@ ## Greet a name supplied as a native command-line argument. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdout diff --git a/examples/http-client.roc b/examples/http-client.roc index 07513c56..14425e8c 100644 --- a/examples/http-client.roc +++ b/examples/http-client.roc @@ -1,6 +1,6 @@ ## Send HTTP requests and handle UTF-8, JSON, and transport failures. app [main!] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst", http: "https://github.com/roc-lang/http/releases/download/1.0.0/6ZUwqYhCS8PU9Mo6MF7oV82ET2o7KYb57CLKDq4cq4sS.tar.zst", } diff --git a/examples/http-simple.roc b/examples/http-simple.roc index a23dbc57..c2b65132 100644 --- a/examples/http-simple.roc +++ b/examples/http-simple.roc @@ -1,6 +1,6 @@ ## Fetch UTF-8, JSON, and HTML responses from a local HTTP server. app [main!] { - pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst", + pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst", http: "https://github.com/roc-lang/http/releases/download/1.0.0/6ZUwqYhCS8PU9Mo6MF7oV82ET2o7KYb57CLKDq4cq4sS.tar.zst", } diff --git a/examples/locale.roc b/examples/locale.roc index 5a825560..646b93a3 100644 --- a/examples/locale.roc +++ b/examples/locale.roc @@ -1,5 +1,5 @@ ## Parse, encode, and inspect the system's preferred locales. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdout diff --git a/examples/path.roc b/examples/path.roc index 701d38d3..c1e1d619 100644 --- a/examples/path.roc +++ b/examples/path.roc @@ -1,5 +1,5 @@ ## Inspect a path's filename, extension, string representation, and type (file/dir/symlink). -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr exposing [OsStr] import pf.Stdout diff --git a/examples/print.roc b/examples/print.roc index 97b2699f..5a701f50 100644 --- a/examples/print.roc +++ b/examples/print.roc @@ -1,5 +1,5 @@ ## Write text, lines and lists to standard output and standard error. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdout diff --git a/examples/random.roc b/examples/random.roc index e9f08adf..530106a8 100644 --- a/examples/random.roc +++ b/examples/random.roc @@ -1,5 +1,5 @@ ## Generate random 32-bit and 64-bit seed values. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdout diff --git a/examples/sqlite-basic.roc b/examples/sqlite-basic.roc index 868a83a8..ec4334e3 100644 --- a/examples/sqlite-basic.roc +++ b/examples/sqlite-basic.roc @@ -1,5 +1,5 @@ ## Query a SQLite database and decode rows into records. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Env diff --git a/examples/sqlite-everything.roc b/examples/sqlite-everything.roc index 01be9e86..8521346f 100644 --- a/examples/sqlite-everything.roc +++ b/examples/sqlite-everything.roc @@ -1,5 +1,5 @@ ## Shows SQLite queries, decoders, nullable values, and prepared writes. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Env diff --git a/examples/stdin-basic.roc b/examples/stdin-basic.roc index a282ce7f..3b19cea9 100644 --- a/examples/stdin-basic.roc +++ b/examples/stdin-basic.roc @@ -1,5 +1,5 @@ ## Prompt for two lines of standard input and print a greeting. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdin diff --git a/examples/stdin-pipe.roc b/examples/stdin-pipe.roc index 57ed1faa..1fea8e24 100644 --- a/examples/stdin-pipe.roc +++ b/examples/stdin-pipe.roc @@ -1,5 +1,5 @@ ## Read piped bytes to end-of-input and validate them as UTF-8. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdin diff --git a/examples/tcp-client.roc b/examples/tcp-client.roc index 2834e11d..18cc7296 100644 --- a/examples/tcp-client.roc +++ b/examples/tcp-client.roc @@ -1,5 +1,5 @@ ## Exchange lines with a local TCP echo server using buffered stream operations. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Tcp diff --git a/examples/temp-dir.roc b/examples/temp-dir.roc index 32c44176..7cbd164d 100644 --- a/examples/temp-dir.roc +++ b/examples/temp-dir.roc @@ -1,5 +1,5 @@ ## Print the operating system's default temporary directory. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdout diff --git a/examples/terminal-app-snake.roc b/examples/terminal-app-snake.roc index 9e28d7a5..83210dda 100644 --- a/examples/terminal-app-snake.roc +++ b/examples/terminal-app-snake.roc @@ -1,5 +1,5 @@ ## Build a small full-screen snake game using terminal raw mode. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdin diff --git a/examples/time.roc b/examples/time.roc index 02e50bf6..b4f40259 100644 --- a/examples/time.roc +++ b/examples/time.roc @@ -1,5 +1,5 @@ ## Measure a sleep interval and format the current UTC time. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdout diff --git a/examples/tty.roc b/examples/tty.roc index eef7c09b..735ff543 100644 --- a/examples/tty.roc +++ b/examples/tty.roc @@ -1,5 +1,5 @@ ## Enable terminal raw mode, read one key, and restore normal behavior. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdout diff --git a/examples/url.roc b/examples/url.roc index 6226dc86..3a0781ca 100644 --- a/examples/url.roc +++ b/examples/url.roc @@ -1,5 +1,5 @@ ## Build a validated search URL while encoding path and query components. -app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0-rc4/FvCh4vdqm3nBY6DWEfZ8RuGCVfjuMY43HA8KSNk9qVDn.tar.zst" } +app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.21.0/4rAQg8kUYZ3Vksr4qMQHpaFYNiHSn9GgS7gVxghd1XYV.tar.zst" } import pf.OsStr import pf.Stdout