Nathan Craddock
bbcadbbd47
Cleanup and document tests
2024-01-11 21:26:25 -07:00
Nathan Craddock
1f5b6de91f
Move lib.zig out of subdirectories and rename
2024-01-11 20:04:39 -07:00
Nathan Craddock
a6562beb70
Combine all tests into one tests.zig file
...
This shows that using ziglua.lang for conditional compilation should be
a reasonable path forward. Also found a few bugs while doing this.
2024-01-11 20:04:39 -07:00
Nathan Craddock
69d305c7a5
Expose build config to ziglua module
...
Not sure if the top level config should be public. Then the use would be
ziglua.config.lang instead of ziglua.lang.
If build options grow this can be revisited.
Closes #44
2024-01-10 17:05:32 -07:00
Nathan Craddock
8f5ab076b5
Rename version build option to lang
2024-01-10 16:57:16 -07:00
Nathan Craddock
b71a42e831
docs: update dependency documentation
2024-01-09 22:54:41 -07:00
Nathan Craddock
744da91c36
Replace Lua 5.1.5 with patched dependency
2024-01-09 22:54:41 -07:00
Nathan Craddock
29518d2bf7
Remove vendored Luau library
2024-01-09 22:54:41 -07:00
Nathan Craddock
d8511141c5
Remove vendored lua libraries
...
Use the Zig package manager to download the sources for Lua 5.1 through
Lua 5.4. Luau still needs to be done this way.
The LuaVersion enum strings are changed to remove the _ characters, this
is a breaking change.
Also makes the tests rely on the module rather than the raw source file.
Not sure if this is a good idea yet, just testing some things.
This links the compiled lua library to the ziglua module so it doesn't
need to be linked manually in other projects.
2024-01-09 22:54:41 -07:00
Nathan Craddock
86ba04135e
fix: update build.zig for module changes
2024-01-09 22:54:41 -07:00
Nathan Craddock
7f1e80c18f
docs: add Luau to readme
2024-01-02 09:44:20 -07:00
Nathan Craddock
808f141b81
ci: add luau to documentation generation
2024-01-02 09:44:10 -07:00
Nathan Craddock
2c6a35e1bb
cleanup: build.zig
2024-01-02 09:35:23 -07:00
Nathan Craddock
3e4612fa21
Fix freeing memory in Luau loadString on Windows
...
We shouldn't assume the c_allocator is the same as free()
2024-01-02 09:35:23 -07:00
Nathan Craddock
be2da11336
ci: Add windows test coverage
...
Really not sure why this wasn't here already
2024-01-02 09:35:23 -07:00
Nathan Craddock
e64a5b9e39
Add Luau AST source files
2024-01-02 09:35:23 -07:00
Nathan Craddock
52692f075e
Add debug library tests
2024-01-02 09:35:23 -07:00
Nathan Craddock
d4cfdab5ef
Remove load/dump tests and enable resume tests
2024-01-02 09:35:23 -07:00
Nathan Craddock
5b7b930485
Add more garbage collector functions
2024-01-02 09:35:23 -07:00
Nathan Craddock
9f63b1e90d
Register and Buffers
2024-01-02 09:35:23 -07:00
Nathan Craddock
b1ca88c477
Add doString and enable more tests
2024-01-02 09:35:23 -07:00
Nathan Craddock
d8e1ac8195
Uncomment some Luau tests
2024-01-02 09:35:23 -07:00
Nathan Craddock
84113ade2c
feat: add initial version of Luau
...
Still a work in progress, but the basics work now
2024-01-02 09:35:23 -07:00
Nathan Craddock
8cd91ec9de
fix: use @memcpy instead of std.mem.copy
...
This addresses a recent change in Zig
2023-12-23 16:08:12 -07:00
Nathan Craddock
3538e1710a
add .paths to build.zig.zon
2023-11-27 21:51:57 -07:00
David Granström
5aef6a13ce
fix: build error for zig 0.12.0-dev.1664, replaced 'var' with 'const'
2023-11-27 21:51:57 -07:00
Nathan Craddock
0117fbc349
docs: update build instructions for stable builds
...
Closes #23
2023-08-10 21:55:05 -06:00
Nathan Craddock
b3f0d75b18
docs: update changelog for 0.2.0
2023-08-10 21:42:44 -06:00
Nathan Craddock
d61a980ef7
docs: fix typo
2023-08-04 15:57:30 -06:00
Nathan Craddock
a02e3f3927
docs: restructure documentation and remove examples
...
Examples are now separate files
2023-08-04 15:55:50 -06:00
Nathan Craddock
eeacf60539
docs: update example code with more comments
2023-08-04 15:55:50 -06:00
Nathan Craddock
77bd46d292
docs: add action to generate docs
2023-08-04 15:05:10 -06:00
Nathan Craddock
effd8c584a
docs: add documentation generation to makefile
2023-08-04 15:04:12 -06:00
Nathan Craddock
1f8a76825d
tests: build example code as part of tests
2023-08-03 18:40:05 -06:00
Nathan Craddock
cc012ea80f
docs: add example code and build steps
...
Adds the example code from the docs to the repo and build.zig so it can
be easily built and run.
2023-08-03 18:39:05 -06:00
Nathan Craddock
155b79f34f
fix: Lua 5.4 patch version
...
This changed while a PR was open and I forgot to update this when
merging.
2023-08-02 18:38:25 -06:00
Nathan Craddock
0530a8466e
docs: update dependency info
2023-08-02 12:16:16 -06:00
Nathan Craddock
ab111adb06
docs: tabs to spaces
2023-08-01 20:01:37 -06:00
Nathan Craddock
dd99d24557
docs: update instructions for adding as a dependency
2023-08-01 20:00:28 -06:00
Nathan Craddock
21ecaac41b
cleanup: reorganize build file
2023-08-01 19:47:13 -06:00
Nathan Craddock
97e6c73de7
fix: update to latest Zig build api
2023-08-01 19:26:48 -06:00
Nathan Craddock
7bc1b5716e
Merge remote-tracking branch 'efjimm/main'
2023-08-01 19:19:36 -06:00
Nathan Craddock
41e14879ca
fix: update to latest Zig build API
2023-08-01 19:06:24 -06:00
evan
f045698fbd
Install luaconf header
...
This header is included localy by the other installed headers, so it
needs to be in the include path. For some reason the lack of this
header didn't cause any issues when building natively, but triggered
a missing headers error when cross compiling.
2023-07-29 15:30:57 +01:00
evan
794d32116a
Update include paths for all zig bindings
2023-07-28 16:01:23 +01:00
evan
1b410dcaeb
Fix header issues and incorrect path
2023-07-28 01:46:36 +01:00
evan
1da98360e0
Merge branch 'pm'
2023-07-27 21:56:19 +01:00
Nathan Craddock
8061d1c2e9
docs: update contributing section
2023-07-01 15:31:08 -06:00
Nathan Craddock
21dbbecd57
refactor: remove extraneous uses of @as()
...
These were introduced by automatic zig fmt changes, but some aren't
needed.
2023-07-01 15:28:29 -06:00
Rylee Alanza Lyman
0b892b168a
fix: for Zig-0.11.0+dev3859, Cast
directives accept one argument ( #22 )
2023-06-27 17:17:01 -06:00