Skip to content

Commit 44a88e7

Browse files
committed
refactor: bundle third-party pure Lua libraries
1 parent 11cef25 commit 44a88e7

File tree

7 files changed

+2371
-3
lines changed

7 files changed

+2371
-3
lines changed

src/.styluaignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cartesi/third-party/*

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ CLANG_FORMAT_FILES:=$(strip $(CLANG_FORMAT_FILES))
300300
CLANG_FORMAT_FILES:=$(filter-out $(CLANG_FORMAT_IGNORE_FILES),$(strip $(CLANG_FORMAT_FILES)))
301301

302302
STYLUA=stylua
303-
STYLUA_FLAGS=--indent-type Spaces --collapse-simple-statement Always
303+
STYLUA_FLAGS=--indent-type Spaces --collapse-simple-statement Always --respect-ignores
304304

305305
EMPTY:=
306306
SPACE:=$(EMPTY) $(EMPTY)

src/cartesi/calldata.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
local lpeg = require("lpeg")
1818
local bint_extra = 256
19-
local bint = require("bint")(256 + bint_extra)
19+
local bint = require("cartesi.third-party.bint")(256 + bint_extra)
2020

2121
local P, R, S, C, Ct, V, Cmt, Carg = lpeg.P, lpeg.R, lpeg.S, lpeg.C, lpeg.Ct, lpeg.V, lpeg.Cmt, lpeg.Carg
2222
local cartesi = require("cartesi")

0 commit comments

Comments
 (0)