doc(api) Add a Safety Section.

This commit is contained in:
Ivan Enderlin
2020-06-09 15:43:27 +02:00
parent 0defd400a2
commit 5fc6b0b293

View File

@@ -145,6 +145,8 @@ impl Module {
/// Creates a new WebAssembly module skipping any kind of validation. /// Creates a new WebAssembly module skipping any kind of validation.
/// ///
/// # Safety
///
/// This can speed up compilation time a bit, but it should be only used /// This can speed up compilation time a bit, but it should be only used
/// in environments where the WebAssembly modules are trusted and validated /// in environments where the WebAssembly modules are trusted and validated
/// beforehand. /// beforehand.