-
Notifications
You must be signed in to change notification settings - Fork 80
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
Tutorial not working #451
Comments
I could build the wasm package by editing //! Extensions for wasm types that are not part of web-sys
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
/// Public Key Credential Extension
pub type PublicKeyCredentialExt;
/// some dummy documentation
#[wasm_bindgen(static_method_of = PublicKeyCredentialExt, js_class = "PublicKeyCredential", js_name = isConditionalMediationAvailable, catch)]
pub fn is_conditional_mediation_available() -> Result<::js_sys::Promise, JsValue>;
/// some dummy documentation
#[wasm_bindgen(static_method_of = PublicKeyCredentialExt, js_class = "PublicKeyCredential", js_name = isExternalCTAP2SecurityKeySupported, catch)]
pub fn is_external_ctap2_securitykey_supported() -> Result<::js_sys::Promise, JsValue>;
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I did this
I tried to run the tutorial in the
tutorial
folder of the repository. I first tried to run it withmake tide
, but it complained aboutError: No such file or directory (os error 2)
. Checking the code I thought this has to do with the missing wasm package. So I tried to build the wasm part first.For that I went to the folder
tutorial/wasm
and ran./build.sh
.I expected the following
I expected the build to succeed and the wasm package to be generated.
What actually happened
Compiling failed within
webauthn-rs-proto
which seems to be part of this repository as well:The compiler seems to complain about missing documentation within code generated by the wasm_bindgen macro.
Version (and git commit)
rust: rustc 1.81.0 (eeb90cda1 2024-09-04) on NixOS
rust: rustc 1.76.0 (07dca489a 2024-02-04) on MacOS
wasm-pack: wasm-pack 0.12.1 on NixOS
wasm-pack wasm-pack 0.13.0 on MacOS
webauthn-rs: cloned from this repository, commit 6f4688d on the master branch.
Operating System / Version
I tried this on two different operating systems:
The text was updated successfully, but these errors were encountered: