Commit Graph

2769 Commits

Author SHA1 Message Date
wtfsck 2c08233a35 Add Lua `db`/`dw`/`dd`/`dq` `Instruction` methods 2022-05-25 23:50:50 +02:00
wtfsck 4d606df830 Convert doc examples from Python to Lua 2022-05-25 23:50:42 +02:00
wtfsck 5ebb265e14 Add link to Lua `README.md` from main `README.md` 2022-05-25 23:50:35 +02:00
wtfsck b84df65ff2 Remove old `mlua` reference 2022-05-25 23:50:28 +02:00
wtfsck 3510f35b08 Lua CI ck: move fmt check before clippy checks 2022-05-23 22:22:58 +02:00
wtfsck db0f57d2f8 Remove non-existent arg from test code 2022-05-23 22:22:47 +02:00
wtfsck 9eb9a223a8 Mark params as optional 2022-05-23 22:22:40 +02:00
wtfsck 0ba85d0e44 Add Lua `ConstantOffsets` tests 2022-05-23 22:22:35 +02:00
wtfsck 4687e10d8e Add Lua `Decoder`/`Encoder` `get_constant_offsets()` fns 2022-05-23 22:22:29 +02:00
wtfsck 754f1d2bb9 Add Lua `ConstantOffsets` 2022-05-23 22:22:23 +02:00
wtfsck c606d9fa4f Check for more Lua types 2022-05-23 22:22:17 +02:00
wtfsck cbbc162231 Generate Lua docs (from Rust source code) 2022-05-22 11:09:40 +02:00
wtfsck bd2b9a8deb Add Lua docs generator
Similar to the Python pyi generator, this reads the Rust comments and
spits out EmmyLua files that will be read by the Lua language server.
2022-05-22 11:09:35 +02:00
wtfsck b51b7f31be Remove setter docs and other docs updates
- Remove setter docs. Will be copied by the doc gen code
- Fix wrong types in docs, eg. `str` -> `string`
- Add missing `@param`
- `@returns` should be `@return`
- Use `an`
2022-05-22 11:09:29 +02:00
wtfsck c6ccf3540f Rename fields: first char should be lowercase 2022-05-22 11:09:14 +02:00
wtfsck f30b92d053 Remove `PyProto` enum variant since pyo3 doesn't need `#[pyproto]` anymore 2022-05-22 11:09:07 +02:00
wtfsck 7607396027 Verify that exactly one value was pushed 2022-05-22 11:09:02 +02:00
wtfsck f84faca647 Update debug assert 2022-05-22 11:08:38 +02:00
wtfsck 3b498e3eda Update comment 2022-05-22 11:08:31 +02:00
wtfsck 61cb49108d Add doc comment since `#[doc(hidden)]` can't be used there 2022-05-20 20:48:39 +02:00
wtfsck 8cccfc98eb
Merge pull request #296 from clubby789/const-fns
Make all clippy-suggested functions const
2022-05-20 20:33:45 +02:00
wtfsck dc901cfe22
Use an older version of Rust to work around a crash in 1.61+ (#297)
* Use an older version of Rust to work around a crash in 1.61+

Reported to not crash with 1.60 but crashes with 1.61, see
https://github.com/rust-lang/rust/issues/97222

* Install more rust/cargo tools
2022-05-20 20:33:09 +02:00
Jamie Hill-Daniel 6150a26cb3 Ensure all tets pass 2022-05-20 17:34:57 +01:00
Jamie Hill-Daniel 08f22b87d9 Remove `const` from transmute function 2022-05-20 13:25:46 +01:00
Jamie Hill-Daniel afaefcc1ef Make all functions suggested by `clippy::missing_const_for_fn` `const` 2022-05-20 13:20:03 +01:00
wtfsck c0df3d82ef Add Lua `Formatter` tests 2022-05-18 21:06:53 +02:00
wtfsck 8d25c622be Add Lua `Formatter` 2022-05-18 21:06:48 +02:00
wtfsck f1d0634a54 Improve Lua number (`f64`) to `i64`/`u64` conversion 2022-05-18 21:06:40 +02:00
wtfsck f41483652b Update `build-lua` to also build the Lua crate 2022-05-18 21:06:35 +02:00
wtfsck 598e106c83 Add `LuaLossyString` 2022-05-18 21:06:26 +02:00
wtfsck 7ceb290138 Add Lua instruction info tests 2022-05-18 21:06:18 +02:00
wtfsck 63789d4553 Add Lua instruction info methods 2022-05-18 21:06:12 +02:00
wtfsck 0cbf0c2c01 Add `push_array{,2}()` 2022-05-18 21:06:07 +02:00
wtfsck d0e7d0ee4c Update Lua doc gen to use `:` instead of `.` when writing method refs 2022-05-18 21:06:01 +02:00
wtfsck d47ab2380c Fix docs to use `:` instead of `.`, and use `an` 2022-05-18 21:05:54 +02:00
wtfsck 375a8bad5f Update build-lua 2022-05-18 21:05:46 +02:00
wtfsck f928b91b4e Fix docs, should be `integer` not `int` 2022-05-17 20:46:36 +02:00
wtfsck 50b9ac24b9 Add Lua `OpCodeInfo` tests 2022-05-17 20:46:29 +02:00
wtfsck 9849d5f4a5 Add Lua `OpCodeInfo` 2022-05-17 20:46:24 +02:00
wtfsck 119bdf7afe Remove `pub` from pyo3 getters 2022-05-17 20:46:16 +02:00
wtfsck 5926e7d04b Update test to use `==` instead of `~=` 2022-05-17 20:46:11 +02:00
wtfsck d67ba7f572 Update rockspec with a better message if Windows 2022-05-17 20:46:06 +02:00
wtfsck d7ab11bdb3 Enable `extra_checks` feature if built by `build-lua` 2022-05-17 20:46:01 +02:00
wtfsck 5d70799363 Add Lua `BlockEncoder` tests 2022-05-17 20:45:55 +02:00
wtfsck 60d2d50b5f Add Lua `BlockEncoder` 2022-05-17 20:45:49 +02:00
wtfsck a1d29b4ae3 Add `extra_checks` feature 2022-05-17 20:45:40 +02:00
wtfsck 419ba47d7e Add more stuff to the Lua crate
Add

- `LuaError`
- `LuaAny`
- `try_get_user_data{,_mut}()`
- `read_array()`
2022-05-17 20:45:33 +02:00
wtfsck 4408d00e7e Add Lua `Encoder` tests 2022-05-17 20:45:26 +02:00
wtfsck 5bfcf2be62 Add Lua `Encoder` 2022-05-17 20:45:18 +02:00
wtfsck 417ae271ca Add `build/build-lua` 2022-05-17 20:45:12 +02:00