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

Failed to run custom build command for libssh2-sys v0.3.0 #3367

Closed
angeldollface opened this issue Aug 4, 2023 · 3 comments
Closed

Failed to run custom build command for libssh2-sys v0.3.0 #3367

angeldollface opened this issue Aug 4, 2023 · 3 comments

Comments

@angeldollface
Copy link

angeldollface commented Aug 4, 2023

Problem
I described steps and error logs in #1 of my VCheck.rs project.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Go to VCheck.rs.
  2. Clone the source code.
  3. Execute trunk --config trunk.toml serve
  4. See error logs.

Expected behavior
I exepcted for the build not to fail and for Trunk to serve my app normally on localhost

Environment:

  • Yew version: 0.20 from crates.io
  • Rust version: 1.73.0-nightly (0308df23e 2023-07-21)
  • Target, if relevant: wasm32-unknown-unknown
  • Build tool, if relevant: trunk
  • OS, if relevant: Mac OSX Ventura 13.2.1 x64
  • Browser and version, if relevant: 114.0.5735.133 (Official Build) (x86_64)

Questionnaire
I would appreciate help on why this is happening and possible pointers towards fixing this.

I'm sorry for submitting this here if this is the wrong place to do so. I've been trying to figure this out for the past two days and I'm well and truly stumped.

@futursolo
Copy link
Member

error: failed to run custom build command for libssh2-sys v0.3.0

This is because your project have dependencies that requires libssh2, which is not supported under WebAssembly.
SSH uses TCP connection, WebAssembly running in browser will not support TCP connections.

You can find out which dependency is using it with cargo tree -i libssh2-sys.

@futursolo futursolo removed the bug label Aug 4, 2023
@angeldollface
Copy link
Author

Thank you @futursolo I'll try to triage this using the command you suggested!!!

@angeldollface
Copy link
Author

@futursolo Turns out, your suggestion helped me loads, I managed to identify the cluprit. It was some nested dependency. I'll have to update the dependencies that are causing the problem.

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

2 participants