docs: fix glue docs
This commit is contained in:
parent
4a64f116dc
commit
336849a058
@ -2,6 +2,10 @@
|
|||||||
Implementations of native java methods and state for
|
Implementations of native java methods and state for
|
||||||
running `toad` with the JVM
|
running `toad` with the JVM
|
||||||
|
|
||||||
|
### nightly
|
||||||
|
this project builds on the nightly channel so that it can
|
||||||
|
use the pointer strict provenance API (explained in [# pub static mut RUNTIME](#pub-static-mut-runtime))
|
||||||
|
|
||||||
### integers
|
### integers
|
||||||
all integers stored in java objects to be passed to rust code
|
all integers stored in java objects to be passed to rust code
|
||||||
should use the `dev.toad.ffi.uX` compat classes to ensure
|
should use the `dev.toad.ffi.uX` compat classes to ensure
|
||||||
@ -9,10 +13,10 @@ that the primitive casts in rust succeed.
|
|||||||
|
|
||||||
### unsafe
|
### unsafe
|
||||||
#### justification
|
#### justification
|
||||||
aside from the [runtime](#pub-static-mut-runtime), all usage of
|
with 1 exception described below in [# pub static mut RUNTIME](#pub-static-mut-runtime),
|
||||||
unsafe in safe functions is accompanied by a `// SAFETY` comment
|
all uses of `unsafe` in safe functions are accompanied
|
||||||
justifying its use and explaining the risks (or not) of memory defects
|
by a `// SAFETY` comment justifying its use and explaining
|
||||||
and UB.
|
the risks (or not) of memory defects and UB.
|
||||||
|
|
||||||
#### pub static mut RUNTIME
|
#### pub static mut RUNTIME
|
||||||
`unsafe` is used in an **unjustified** manner to cast `long` addresses
|
`unsafe` is used in an **unjustified** manner to cast `long` addresses
|
||||||
|
Loading…
Reference in New Issue
Block a user