https://github.com/softwaremill/sttp-native-cli
Scala Native with scala-cli and sttp example
https://github.com/softwaremill/sttp-native-cli
Last synced: about 1 month ago
JSON representation
Scala Native with scala-cli and sttp example
- Host: GitHub
- URL: https://github.com/softwaremill/sttp-native-cli
- Owner: softwaremill
- Created: 2023-07-03T12:46:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-14T11:24:40.000Z (over 2 years ago)
- Last Synced: 2025-03-11T19:35:14.962Z (11 months ago)
- Language: Scala
- Size: 1.95 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Scala Native with scala-cli and sttp example
This example showcases how to use [sttp](https://sttp.softwaremill.com/en/stable/) included in [Scala Toolkit](https://docs.scala-lang.org/toolkit/introduction.html) with [Scala Native](https://github.com/scala-native/scala-native) and [scala-cli](https://scala-cli.virtuslab.org/).
See `sttp.scala` for a simple raw example, or `sttp-ce3.scala` for an eaxmple using Cats Effect 3.
Read the [blog article](https://softwaremill.com) for full information about how co set up and run the examples.
Build with
```sh
scala-cli --power package --native sttp.scala -o sttp-curl -f
```
or
```sh
scala-cli --power package --native sttp-ce3.scala -o sttp-ce3 -f
```
for the CE3 version.