You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
extern.load - load shared libraries at runtime (#123)
Allow users to write and load plugins that expose a symbol `seal_open_extern`. The Luau state is passed as a `*mut lua_State` to the shared library which can do whatever it wants.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,11 +42,12 @@ A library is a good candidate for `@std` if:
42
42
5. please don't run a formatter over the whole codebase.
43
43
1. I don't mind if `wrap_err!`s go off the RHS of the page if that means vertical space is better used for code.
44
44
2. On the other hand, let's try to keep non-wrap_err! code and comments to 85-110 colwidth?
45
-
6.Documentation goes in `./.seal/typedefs/std/*`.
45
+
6.Inline documentation goes in `./.seal/typedefs/std/*`.
46
46
1. For documentation, try to stick with the newer docs headers like seen in the `@std/process` API docs.
47
47
2. No Moonwave `@attributes`, they make code less readable and we don't use Moonwave.
48
-
7. Register the library in `./src/require/mod.rs` and `./.seal/typedefs/init.luau` in 3 places:
48
+
7. After you finish writing inline documentation, regenerate markdown documentation by running `seal ./docs/docscripts/reference.luau`. Generated docs aren't going to be perfect, we'll fix them later.
49
+
8. Register the library in `./src/require/mod.rs` and `./.seal/typedefs/init.luau` in 3 places:
49
50
1. The Big Beautiful Table (BBT) in `./src/require/mod.rs`, which handles when the library is required directly (`@std/mylib`)
50
51
2. the Small Beautiful Table in `./src/require/mod.rs`, which handles when the entire `@std` is required at once.
51
52
3. in `./.seal/typedefs/init.luau` to provide `require` support when the entire `@std` is required at once.
52
-
8. Add tests in `./tests/luau/std/libname/*` or `./tests/luau/std/libname.luau`.
53
+
9. Add tests in `./tests/luau/std/libname/*` or `./tests/luau/std/libname.luau`.
0 commit comments