Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop wasmer in favor of wasmtime for tests #111

Merged
merged 4 commits into from
May 8, 2024
Merged

Drop wasmer in favor of wasmtime for tests #111

merged 4 commits into from
May 8, 2024

Conversation

ureeves
Copy link
Member

@ureeves ureeves commented May 7, 2024

Since we've transitioned to wasmtime for the entirety of our stack, we should also use it for the tests in this crate. This commit does exactly that, doing away with the wasmer dependency, and replacing it with wasmtime.

This also also helps in figuring out exactly what's wrong with our test runs, by eliminating the runtime as a factor - it errors in the same way in both debug and release modes.

See-also: #105

@ureeves ureeves requested review from ZER0, Daksh14 and moCello May 7, 2024 15:44
Since we've transitioned to `wasmtime` for the entirety of our stack, we
should also use it for the tests in this crate. This commit does exactly
that, doing away with the `wasmer` dependency, and replacing it with
`wasmtime`.

This also also helps in figuring out exactly what's wrong with our test
runs, by eliminating the runtime as a factor - it errors in the same way
in both `debug` and `release` modes.

See-also: #105
Eduardo Leegwater Simões added 3 commits May 8, 2024 15:25
This is done by allocating a dedicated buffer and copying the contents
of the response into it.
This makes the allocator explicitly responsible for the memory
allocated, preventing any clobbering.
Fix `allocate` and `free_mem`
Copy link
Member

@moCello moCello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ureeves ureeves merged commit ffef2d6 into main May 8, 2024
4 checks passed
@ureeves ureeves deleted the wasmtime branch May 8, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants