Skip to content

Commit

Permalink
Added nimwasmtime dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed Jul 16, 2024
1 parent 44c7b66 commit 6723c6c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
3 changes: 2 additions & 1 deletion absytree.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ requires "https://github.com/Nimaoth/wasm3 >= 0.1.13"
requires "https://github.com/Nimaoth/lrucache.nim >= 1.1.4"
requires "https://github.com/Nimaoth/boxy >= 0.4.2"
requires "https://github.com/Nimaoth/nimscripter >= 1.0.21"
requires "https://github.com/Nimaoth/nimtreesitter-api >= 0.1.6"
requires "https://github.com/Nimaoth/nimtreesitter-api >= 0.1.8"
requires "https://github.com/Nimaoth/nimwasmtime >= 0.1.0"

# Use this to include all treesitter languages (takes longer to download)
requires "https://github.com/Nimaoth/nimtreesitter >= 0.1.3"
Expand Down
12 changes: 12 additions & 0 deletions config.nims
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,18 @@ switch("d", "wasm3VerboseErrorMessages")
# switch("d", "treesitterBuiltins=cpp,nim,c,css,html,javascript,python,rust,csharp")
switch("d", "treesitterBuiltins=cpp,nim,csharp,rust,python,javascript")

# Enable wasi support in nimwasmtime
switch("d", "nimWasmtimeWasi")

# Enable wasm parser support in treesitter
switch("d", "treesitterFeatureWasm")

# Static linking doesn't work on windows for some reason, so dynamically link
when defined(windows):
switch("d", "nimWasmtimeStatic=false")
else:
switch("d", "nimWasmtimeStatic=true")

when defined(musl):
var muslGcc = findExe("musl-gcc")
# muslGcc = "/home/nimaoth/musl/musl/bin/musl-gcc"
Expand Down
16 changes: 13 additions & 3 deletions nimble.lock
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,16 @@
"sha1": "23baf44d42d16e47e8f173a10f2ff55dd7f21382"
}
},
"nimwasmtime": {
"version": "0.1.0",
"vcsRevision": "a2b89b89f988f39da79a3f01662f5561434de872",
"url": "https://github.com/Nimaoth/nimwasmtime",
"downloadMethod": "git",
"dependencies": [],
"checksums": {
"sha1": "cb65404ffbbece50f048f64f41dc0e850fe129ea"
}
},
"npeg": {
"version": "1.2.2",
"vcsRevision": "ec0cc6e64ea4c62d2aa382b176a4838474238f8d",
Expand Down Expand Up @@ -302,15 +312,15 @@
}
},
"treesitter": {
"version": "0.1.6",
"vcsRevision": "fbf08c356488d6435d91ba317c7f76b46a2bcf89",
"version": "0.1.8",
"vcsRevision": "fe0eca4e1edc68308ec81bfb79f3fdbe1f1c15fd",
"url": "https://github.com/Nimaoth/nimtreesitter-api",
"downloadMethod": "git",
"dependencies": [
"nimgen"
],
"checksums": {
"sha1": "42011552650a9dba03aae3285f793875f387358c"
"sha1": "db477485ae7b4520192e02290e6e88929adeb12e"
}
},
"urlly": {
Expand Down

0 comments on commit 6723c6c

Please sign in to comment.