Mark McCaskey
e121c47f18
Generate C preprocessor code to hide things not on Windows
2019-11-11 14:47:25 -08:00
Mark McCaskey
8d95e637f2
Add probable fix of memory leak in trampoline code
2019-11-01 17:38:43 -07:00
bors[bot]
cf5b3cc09e
Merge #914
...
914: Fix bug in getting a Memory from export in C API r=Hywan a=MarkMcCaskey
I believe this fixes the non-deterministic crashing on OSX in `go-ext-wasm`
Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-10-30 11:34:20 +00:00
Mark McCaskey
1e4fa78e11
Fix bug in getting a Memory from export in C API
2019-10-29 15:52:42 -07:00
Mark McCaskey
bc9b92c323
Add null checks to new destructors in C API
2019-10-29 15:18:45 -07:00
Mark McCaskey
a104d08c04
Update ImportObject C API to use iterators
2019-10-29 14:55:14 -07:00
Mark McCaskey
2a532b8ce5
Add tests for C API import_object and WASI updates
2019-10-25 14:24:22 -07:00
Mark McCaskey
80cfeb590e
Clean up comments
...
add headers too
2019-10-24 11:51:35 -07:00
Ivan Enderlin
c3ff8eb540
fix(runtime-c-api) Replace unsafe code by safe code.
2019-10-11 09:26:05 +02:00
Ivan Enderlin
01c209fe96
feat(runtime-c-api) Move the wasi
module into its own file.
2019-10-11 09:19:46 +02:00
Mark McCaskey
bd8e864656
Add functions import object to get import fns and free them
2019-10-10 16:07:56 -07:00
Mark McCaskey
51f619a132
Change pointer that's not modified to be const in C API
2019-10-10 11:22:45 -07:00
Mark McCaskey
913354adb3
Add function to get export from ns/name via ImportObject to C API
2019-10-09 17:29:27 -07:00
Mark McCaskey
bfb9d3849c
Fix merge
2019-10-03 11:58:06 -07:00
Mark McCaskey
70b55b801d
Check argument pointers for null to WASI calls
2019-10-03 10:50:07 -07:00
Mark McCaskey
b45b1c12f1
Add WASI support to runtime-c-api
2019-10-02 12:06:17 -07:00
Patrick Ventuzelo
79ff3709cc
fix cargo check fail build
2019-09-24 09:08:55 +02:00
Ivan Enderlin
a2343f9f0d
test(runtime-c-api) Fully test all kind of exports.
2019-09-05 15:08:23 +02:00
Ivan Enderlin
2d63e25075
feat(runtime-c-api) Arity cannot be negative when calling wasmer_export_func_call
.
2019-09-05 14:31:43 +02:00
Syrus
d8471e2b6a
Improved docs with custom logo and favicon
2019-09-03 17:06:31 -07:00
Ivan Enderlin
6403159b57
Merge branch 'master' into doc-runtime-c-api-exports-1
2019-08-22 13:29:54 +02:00
Ivan Enderlin
a9bb8fea16
doc(runtime-c-api) Fix a typo.
...
Co-Authored-By: Syrus Akbary <me@syrusakbary.com>
2019-08-22 13:29:26 +02:00
Ivan Enderlin
8ad181f94c
doc(runtime-c-api) Fix a typo.
...
Co-Authored-By: Syrus Akbary <me@syrusakbary.com>
2019-08-22 13:29:11 +02:00
Brandon Fish
6372e0947c
Fix more bare dyn traits in runtime-c-api
2019-08-10 11:20:22 -06:00
Syrus Akbary
17b5082c9b
Merge pull request #621 from wasmerio/feature/add-deny-dead_code-lint
...
Add deny dead_code lint and fix one error
2019-08-02 13:36:53 -07:00
Yaron Wittenstein
eed3b28eab
comment cleanup
2019-08-02 22:54:00 +03:00
Brandon Fish
2f70a199e4
Add deny dead_code lint and fix one error
2019-08-01 20:46:35 -06:00
Yaron Wittenstein
3f4ffb0e2d
Merge branch 'develop' into c-api-import_object_t
2019-08-01 18:15:21 +03:00
Yaron Wittenstein
f73180f45e
wasmer-c-api:
...
* adding `wasmer_import_object_new` and `wasmer_import_object_extend`
* adding test file `test-module-import-instantiate.c`
2019-08-01 14:06:25 +03:00
Yaron Wittenstein
ab76755ade
runtime-c-api:
...
* import.rs - adding `import_object_t` and `wasmer_import_object_destroy`
* instance.rs - adding `wasmer_module_import_instantiate`
2019-08-01 10:48:03 +03:00
Yaron Wittenstein
3a84288fd9
Merge branch 'master' into c-api-extract-instance_context-from-instance
2019-08-01 08:54:52 +03:00
Brandon Fish
a832a4c787
Merge branch 'master' into wasmer-c-api-error-visibility
2019-07-31 19:58:23 -06:00
Yaron Wittenstein
351977690b
adding a document for wasmer_instance_context_get
2019-07-31 14:15:16 +03:00
Yaron Wittenstein
847dd6f65e
c-api: adding wasmer_instance_context_get
(instance.rs
)
2019-07-31 14:12:25 +03:00
Yaron Wittenstein
784e65d587
making wasmer_byte_array
fields public
2019-07-29 17:24:43 +03:00
Yaron Wittenstein
8408260edd
wasmer-c-api: adding #[derive(Debug)]
for wasmer_result_t
(so that we can do assert_eq!
)
2019-07-29 17:10:17 +03:00
Yaron Wittenstein
10fc660aad
wasmer_byte_array
visibility revert (see PR: "wasmer-c-api-changes: making wasmer_byte_array
fields public
#589 ")
2019-07-29 13:41:28 +03:00
Yaron Wittenstein
f04d552361
wasmer-c-api:
...
* error.rs - changing `update_last_error` visibility to `pub`.
* error.rs - changing `CApiError` `msg` field visibility to `pub`.
2019-07-25 15:46:57 +03:00
Yaron Wittenstein
6cc31d3b49
lib.rs - making wasmer_byte_array
fields public
2019-07-25 11:42:47 +03:00
Nick Lewycky
18307bb79c
Improve panic/unreachable/unimplemented usage. Refactor a little.
2019-07-22 12:15:56 -07:00
Ivan Enderlin
36098189b3
doc(runtime-c-api) Document and reorganize exports.rs
.
...
This patch moves all structs at the beginning of the file, and
documents them.
2019-07-17 11:01:42 +02:00
Nick Lewycky
f4af4e387d
Stub out support for V128 in the C API for now.
2019-07-10 13:54:36 -07:00
Ivan Enderlin
04c9d25194
Merge branch 'master' into fix-runtime-c-api-warnings
2019-06-14 10:07:53 +02:00
Ivan Enderlin
63ec73aacc
fix(runtime-c-api) Remove deprecated types from libc.
...
Since https://github.com/rust-lang/libc/pull/1379 , fixed width integer
type aliases are deprecated. Thus, this patch uses Rust types instead
of libc aliases.
2019-06-12 12:10:49 +02:00
Ivan Enderlin
81d8e4ee2e
feat(runtime-c-api) Improve error message when compiling a module.
2019-06-12 11:35:29 +02:00
losfair
f4df568e41
Naming fixes and documentation for trampoline API.
2019-06-05 01:38:35 +08:00
losfair
f1b27d5774
Cargo fmt
2019-06-05 01:26:35 +08:00
losfair
669f76025c
Add callinfo trampoline into the C API.
2019-06-05 01:25:37 +08:00
losfair
0a44add31c
Fix clippy errors.
2019-06-03 15:31:42 -07:00
losfair
d70cb9695e
Add trampoline-related functions to C API.
2019-06-03 15:31:42 -07:00