You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that no_std does not work with static imports. If I understand correct, the issue is to do with this line which requires the thread_local macro from the standard library.
When compiling I get errors of the form:
error: cannot find macro `thread_local` in this scope
--> src/node/process.rs:55:5
|
55 | #[wasm_bindgen(module = "process")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ in this procedural macro expansion
|
::: /home/fpr/local/cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/wasm-bindgen-macro-0.2.83/src/lib.rs:9:1
|
9 | pub fn wasm_bindgen(attr: TokenStream, input: TokenStream) -> TokenStream {
| ------------------------------------------------------------------------- in this expansion of `#[wasm_bindgen]`
|
= note: `thread_local` is in scope, but it is an attribute: `#[thread_local]`
and
error[E0425]: cannot find value `_VAL` in this scope
--> src/node/path.rs:168:5
|
168 | #[wasm_bindgen(module = "path")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| not found in this scope
| in this procedural macro expansion
|
::: /home/fpr/local/cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/wasm-bindgen-macro-0.2.83/src/lib.rs:9:1
|
9 | pub fn wasm_bindgen(attr: TokenStream, input: TokenStream) -> TokenStream {
| ------------------------------------------------------------------------- in this expansion of `#[wasm_bindgen]
The text was updated successfully, but these errors were encountered:
It appears that
no_std
does not work with static imports. If I understand correct, the issue is to do with this line which requires thethread_local
macro from the standard library.When compiling I get errors of the form:
and
The text was updated successfully, but these errors were encountered: