Skip to content

Commit a4f448d

Browse files
committed
chore: dep updates
1 parent 060b94f commit a4f448d

File tree

12 files changed

+1397
-317
lines changed

12 files changed

+1397
-317
lines changed

backend/jvm/src/main/resources/META-INF/native-image/reachability-metadata.json

Lines changed: 261 additions & 3 deletions
Large diffs are not rendered by default.

backend/native/src/nativeMain/kotlin/wasm/Wasm.kt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ package wasm
33
import io.github.charlietap.chasm.embedding.instance
44
import io.github.charlietap.chasm.embedding.invoke
55
import io.github.charlietap.chasm.embedding.module
6-
import io.github.charlietap.chasm.embedding.shapes.Value
76
import io.github.charlietap.chasm.embedding.shapes.getOrNull
87
import io.github.charlietap.chasm.embedding.shapes.map
98
import io.github.charlietap.chasm.embedding.store
9+
import io.github.charlietap.chasm.executor.runtime.value.NumberValue
1010
import kotlinx.io.buffered
1111
import kotlinx.io.files.Path
1212
import kotlinx.io.files.SystemFileSystem
@@ -19,11 +19,13 @@ fun execWasm(path: Path, arg: Int = 5) {
1919
println("Executing wasm: $path")
2020
val module = module(bytes = SystemFileSystem.source(path).buffered().readByteArray())
2121
val store = store()
22-
val instance = instance(store, module.getOrNull()!!, emptyList()).getOrNull()!!
22+
val instance =
23+
instance(store = store, module = module.getOrNull()!!, imports = emptyList())
24+
.getOrNull()!!
2325

2426
val result =
25-
invoke(store, instance, "iterFact", listOf(Value.Number.I32(arg))).map {
26-
(it.first() as Value.Number.I32).value
27+
invoke(store, instance, "iterFact", listOf(NumberValue.I32(arg))).map {
28+
(it.first() as NumberValue.I32).value
2729
}
2830
println("Result: $result")
2931
} else {
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import androidx.compose.runtime.Composable
2+
3+
@Composable
4+
fun PageLayout(content: @Composable () -> Unit) {
5+
Column {
6+
NavHeader()
7+
content()
8+
Footer()
9+
}
10+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@Composable fun Footer() {}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@Composable fun NavHeader() {}

0 commit comments

Comments
 (0)