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

No method named to_string found for struct with from_wasm_abi #56

Open
wjthieme opened this issue Aug 14, 2024 · 1 comment
Open

No method named to_string found for struct with from_wasm_abi #56

wjthieme opened this issue Aug 14, 2024 · 1 comment

Comments

@wjthieme
Copy link

no method named `to_string` found for struct `serde_wasm_bindgen::error::Error` in the current scope
items from traits can only be used if the trait is in scope

Example of working code

#[derive(Serialize, Deserialize, Tsify)]
#[serde(rename_all = "camelCase")]
#[tsify(into_wasm_abi)]
pub struct Foo {
  pub value: u128
}

Example of non-working code

#[derive(Serialize, Deserialize, Tsify)]
#[serde(rename_all = "camelCase")]
#[tsify(into_wasm_abi, from_wasm_abi)]
pub struct Foo {
  pub value: u128
}
@wjthieme
Copy link
Author

Looks like the issue is no_std. Any way to get this working without std?

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

No branches or pull requests

1 participant