Skip to content

Commit

Permalink
try to split wasm support in a separate lib
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuancelin committed Sep 5, 2023
1 parent 3376055 commit 2f7a3dc
Show file tree
Hide file tree
Showing 41 changed files with 2,745 additions and 433 deletions.
2 changes: 2 additions & 0 deletions experiments/common-wasm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.bsp/
target/
45 changes: 45 additions & 0 deletions experiments/common-wasm/build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import Dependencies.munit

ThisBuild / scalaVersion := "2.12.16"
ThisBuild / version := "1.0.0-SNAPSHOT"
ThisBuild / organization := "io.otoroshi.common"
ThisBuild / organizationName := "wasm"

lazy val playJsonVersion = "2.9.3"
lazy val playWsVersion = "2.8.19"
lazy val akkaVersion = "2.6.20"
lazy val akkaHttpVersion = "10.2.10"
lazy val metricsVersion = "4.2.12"
lazy val excludesJackson = Seq(
ExclusionRule(organization = "com.fasterxml.jackson.core"),
ExclusionRule(organization = "com.fasterxml.jackson.datatype"),
ExclusionRule(organization = "com.fasterxml.jackson.dataformat")
)

scalacOptions ++= Seq(
"-feature",
"-language:higherKinds",
"-language:implicitConversions",
"-language:existentials",
"-language:postfixOps"
)

lazy val root = (project in file("."))
.settings(
name := "common-wasm",
libraryDependencies ++= Seq(
munit % Test,
"com.typesafe.play" %% "play-ws" % playWsVersion,
"com.typesafe.play" %% "play-json" % playJsonVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.play" %% "play-json-joda" % playJsonVersion,
"com.github.blemale" %% "scaffeine" % "4.0.2",
"com.jayway.jsonpath" % "json-path" % "2.7.0",
"commons-lang" % "commons-lang" % "2.6",
"commons-codec" % "commons-codec" % "1.16.0",
"net.java.dev.jna" % "jna" % "5.13.0",
"com.google.code.gson" % "gson" % "2.10",
"io.dropwizard.metrics" % "metrics-json" % metricsVersion excludeAll (excludesJackson: _*), // Apache 2.0
)
)
Binary file added experiments/common-wasm/lib/extism-v0.4.0.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions experiments/common-wasm/project/Dependencies.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import sbt._

object Dependencies {
lazy val munit = "org.scalameta" %% "munit" % "0.7.29"
}
1 change: 1 addition & 0 deletions experiments/common-wasm/project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version=1.7.2
3 changes: 3 additions & 0 deletions experiments/common-wasm/src/main/resources/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/darwin-*
/linux-*
/native
Loading

0 comments on commit 2f7a3dc

Please sign in to comment.