Skip to content

yoohaemin/smithy4s

This branch is 20 commits behind disneystreaming/smithy4s:series/0.18.

Folders and files

NameName
Last commit message
Last commit date
Aug 2, 2024
Nov 8, 2024
Oct 26, 2024
Oct 3, 2024
Dec 22, 2021
Jan 21, 2022
Apr 9, 2024
May 31, 2024
Aug 18, 2022
May 31, 2024
Jul 19, 2023
Dec 22, 2021
Nov 8, 2022
Nov 8, 2024
Dec 22, 2021
May 31, 2024
Oct 26, 2024
Jun 18, 2024
Oct 26, 2024
Jan 21, 2022
May 15, 2024

Repository files navigation

CI smithy4s-core Scala version support CLA assistant Discord

smithy4s

Usage

For usage information, check out the Documentation

Benchmarks

There's a module with benchmarks to compare against the handcrafted implementations of an http4s with the generic ones run the benchmarks, one should execute:

sbt benchmark / Jmh / run

To run http4s benchmarks:

benchmark / Jmh / run .*Http4sBenchmark.*

To benchmark with Scala 2.12 version instead of 2.13, use benchmark2_12 / Jmh / run instead.

Smithy4s makes use of YourKit Java Profiler for performance optimisation.
YourKit Logo

Development environment

For the easiest setup of development tools, use Nix.

The recommended way is to use nix develop (requires Flakes support, available since Nix 2.4 - read on if you don't use that experimental feature):

nix develop

This will load all required packages into your shell. Run exit or press ctrl+d to clear it.

If you're a direnv user, we have that too.

If you don't have Flakes support:

nix-shell

Note for metals/bloop users

Smithy4s is a complex project with a heavy build-matrix. In order to ease development, we've elected to only enable bloop-config generation for the JVM/Scala 2.13 combo of build axes, by default.

If you find yourself developing for another combination of build axes, it is possible to tweak the default by adding a user.sbt file in the root directory of your clone of this project, and fill it by following this example :

ThisBuild / bloopAllowedCombos := Seq(
  Seq(
    VirtualAxis.jvm,
    VirtualAxis.scalaABIVersion("3.3.0")
  )
)

Note for .sbtopts

You usually should use .sbtopts to add some more memory for sbt, as Smithy4s is complex. You copy the .sbtopts.example to .sbtopts and adjust the values to your needs:

cp .sbtopts.example .sbtopts

Packages

No packages published

Languages

  • Scala 95.5%
  • Smithy 2.6%
  • Java 1.5%
  • JavaScript 0.3%
  • CSS 0.1%
  • Nix 0.0%