-
Notifications
You must be signed in to change notification settings - Fork 122
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
Feature/engine no std #595
Changes from 9 commits
0b834f6
f875ce7
1dad679
9041616
40a2f3f
16dce1f
35043fe
1a7a7f9
b59c4f5
b0b721f
1423e95
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,6 +116,8 @@ mod tests { | |
// RFC 2056 | ||
fn assert_all() { | ||
assert_send::<ScryptoInterpreter<DefaultWasmEngine>>(); | ||
// TODO: make sure engine is indeed multi-thread safe! | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When you say the engine, do you mean the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See my previous comment. Do you have specific worries or things you want to check? Else I think this code comment should probably be removed. |
||
#[cfg(not(feature = "alloc"))] | ||
assert_sync::<ScryptoInterpreter<DefaultWasmEngine>>(); | ||
} | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we put lru behind
optional
too, and only enable it in thealloc
case?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly, we don't gain much from this (tiny compile time of a small crate) by coupling
lru
andalloc
. A slightly better approach is to make it a feature if we really care. But, will punt on this for now. :)