-
Notifications
You must be signed in to change notification settings - Fork 42
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
Tsify without wasm_bindgen #13
Comments
Judging from the readme, the intent seems to be that this library is used with wasm bindgen https://github.com/madonoharu/tsify#crate-features |
If you put a #[cfg(feature = "web")]
use tsify::Tsify;
#[cfg(feature = "web")]
use wasm_bindgen::prelude::*
#[derive(Debug, Clone, Serialize, Deserialize)]
#[cfg_attr(feature = "web", derive(Tsify))]
pub struct MyStruct {
...
} then compile with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I was just wondering if it's possible to decouple this from
wasm_bindgen
.I understand that the original purpose of the library was to focus on
wasm_bindgen
but I was wondering if this could become a more generalised library for creating cross-language type definitions, similar to https://github.com/1Password/typeshareThe text was updated successfully, but these errors were encountered: