mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 05:38:19 +00:00
Renamed wasmer_runtime to wasmer_vm
This commit is contained in:
@@ -41,7 +41,7 @@ pub(crate) struct CAPIInstance {
|
||||
pub(crate) ctx_data: Option<NonNull<c_void>>,
|
||||
}
|
||||
|
||||
/// Opaque pointer to a `wasmer_runtime::Ctx` value in Rust.
|
||||
/// Opaque pointer to a `wasmer_vm::Ctx` value in Rust.
|
||||
///
|
||||
/// An instance context is passed to any host function (aka imported
|
||||
/// function) as the first argument. It is necessary to read the
|
||||
|
||||
@@ -7,9 +7,9 @@ use crate::{
|
||||
use std::{cell::Cell, ptr};
|
||||
use wasmer::{Bytes, Memory, MemoryType, Pages};
|
||||
|
||||
/// Opaque pointer to a `wasmer_runtime::Memory` value in Rust.
|
||||
/// Opaque pointer to a `wasmer_vm::Memory` value in Rust.
|
||||
///
|
||||
/// A `wasmer_runtime::Memory` represents a WebAssembly memory. It is
|
||||
/// A `wasmer_vm::Memory` represents a WebAssembly memory. It is
|
||||
/// possible to create one with `wasmer_memory_new()` and pass it as
|
||||
/// imports of an instance, or to read it from exports of an instance
|
||||
/// with `wasmer_export_to_memory()`.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
use std::ffi::c_void;
|
||||
use std::mem;
|
||||
use wasmer_runtime_core::trampoline::*;
|
||||
use wasmer_vm_core::trampoline::*;
|
||||
|
||||
#[repr(C)]
|
||||
pub struct wasmer_trampoline_buffer_builder_t;
|
||||
|
||||
@@ -243,9 +243,9 @@ typedef struct {
|
||||
} wasmer_export_t;
|
||||
|
||||
/**
|
||||
* Opaque pointer to a `wasmer_runtime::Memory` value in Rust.
|
||||
* Opaque pointer to a `wasmer_vm::Memory` value in Rust.
|
||||
*
|
||||
* A `wasmer_runtime::Memory` represents a WebAssembly memory. It is
|
||||
* A `wasmer_vm::Memory` represents a WebAssembly memory. It is
|
||||
* possible to create one with `wasmer_memory_new()` and pass it as
|
||||
* imports of an instance, or to read it from exports of an instance
|
||||
* with `wasmer_export_to_memory()`.
|
||||
@@ -312,7 +312,7 @@ typedef struct {
|
||||
} wasmer_import_object_iter_t;
|
||||
|
||||
/**
|
||||
* Opaque pointer to a `wasmer_runtime::Ctx` value in Rust.
|
||||
* Opaque pointer to a `wasmer_vm::Ctx` value in Rust.
|
||||
*
|
||||
* An instance context is passed to any host function (aka imported
|
||||
* function) as the first argument. It is necessary to read the
|
||||
|
||||
@@ -185,9 +185,9 @@ struct wasmer_export_t {
|
||||
|
||||
};
|
||||
|
||||
/// Opaque pointer to a `wasmer_runtime::Memory` value in Rust.
|
||||
/// Opaque pointer to a `wasmer_vm::Memory` value in Rust.
|
||||
///
|
||||
/// A `wasmer_runtime::Memory` represents a WebAssembly memory. It is
|
||||
/// A `wasmer_vm::Memory` represents a WebAssembly memory. It is
|
||||
/// possible to create one with `wasmer_memory_new()` and pass it as
|
||||
/// imports of an instance, or to read it from exports of an instance
|
||||
/// with `wasmer_export_to_memory()`.
|
||||
@@ -248,7 +248,7 @@ struct wasmer_import_object_iter_t {
|
||||
|
||||
};
|
||||
|
||||
/// Opaque pointer to a `wasmer_runtime::Ctx` value in Rust.
|
||||
/// Opaque pointer to a `wasmer_vm::Ctx` value in Rust.
|
||||
///
|
||||
/// An instance context is passed to any host function (aka imported
|
||||
/// function) as the first argument. It is necessary to read the
|
||||
|
||||
Reference in New Issue
Block a user