@@ -24,7 +24,9 @@ something you feel could perform better, feel free to file a bug report.
24
24
Currently, this library follows a pre-1.0 semver, so all API changes should be
25
25
accompanied by 0.x version bumps. See the [ Version 1.0
26
26
milestone] ( https://github.com/amethyst/rlua/milestone/1 ) for the work planned
27
- to be done before a more stable 1.0 release.
27
+ to be done before a more stable 1.0 release. There may be breaking changes as
28
+ these issues are dealt with on the way (the version number will be bumped as
29
+ needed).
28
30
29
31
## Lua versions supported
30
32
@@ -41,27 +43,29 @@ The available features are:
41
43
42
44
| Cargo feature | Lua version |
43
45
| ------------- | ----------- |
44
- | builtin-lua54 | Lua 5.4 (source included in crate, default) |
45
- | builtin-lua53 | Lua 5.3 (source included in crate) |
46
- | system-lua51 | Lua 5.1 (installed on host system, found using pkg-config) |
47
- | system-lua53 | Lua 5.3 (installed on host system, found using pkg-config) |
46
+ | builtin-lua54 | Lua 5.4 (source included in package, default) |
47
+ | builtin-lua53 | Lua 5.3 (source included in package) |
48
+ | builtin-lua51 | Lua 5.1 (source included in package) |
48
49
| system-lua54 | Lua 5.4 (installed on host system, found using pkg-config) |
50
+ | system-lua53 | Lua 5.3 (installed on host system, found using pkg-config) |
51
+ | system-lua51 | Lua 5.1 (installed on host system, found using pkg-config) |
49
52
50
53
At current writing rlua has not been tested with alternative Lua
51
54
implementations (such as Luajit) which share PUC-Rio Lua's C API, but it is
52
- expected that they can be made to work with little if any change to rlua.
55
+ expected that they can be made to work with little if any change to rlua, and
56
+ support would be welcome.
53
57
54
58
## Safety and Panics
55
59
56
- The goal of this library is complete safety: it should not be possible to cause
57
- undefined behavior with the safe API, even in edge cases. Unsoundness is
58
- considered the most serious kind of bug, so if you find the ability to cause UB
59
- with this API without ` unsafe ` , please file a bug report.
60
+ The goal of this library is complete safety by default : it should not be
61
+ possible to cause undefined behavior with the safe API, even in edge cases.
62
+ Unsoundness is considered the most serious kind of bug, so if you find the
63
+ ability to cause UB with this API without ` unsafe ` , please file a bug report.
60
64
61
- * NOTE: There are some Lua stdlib functions which are currently not wrapped or
62
- behind an unsafe boundary and can be used by scripts to cause memory unsafety,
63
- please see [ this issue ] ( https://github.com/kyren/rlua/issues/116 ) for more
64
- details. *
65
+ This includes calling functions in the Lua standard library; some unsafe
66
+ functions are wrapped by default (for example to prevent loading binary
67
+ modules), but these wrappers can be disabled using one of the ` unsafe `
68
+ constructors for the ` Lua ` object if required for the application.
65
69
66
70
Another goal of this library is complete protection from panics: currently, it
67
71
should not be possible for a script to trigger a panic. There ARE however
0 commit comments