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

Support for TLS-Less Builds? #118

Closed
flosincapite opened this issue Dec 19, 2023 · 7 comments
Closed

Support for TLS-Less Builds? #118

flosincapite opened this issue Dec 19, 2023 · 7 comments

Comments

@flosincapite
Copy link

Hello! My team has been using wasmedge-quickjs for sandboxing; it's been great! However, I notice that the recent addition of TLS support breaks our build.

Since it's an optional dependency, I thought building with --no-default-features would work, but I get the error

no `AsyncTlsConn` in `event_loop`

Is there any way to build without TLS support?

@juntao
Copy link
Member

juntao commented Dec 19, 2023

Thanks!

@L-jasmine I think we should fix this. We should be able to turn off TLS via a feature flag.

@flosincapite
Copy link
Author

Thank you for looking into this!

@L-jasmine
Copy link
Collaborator

@flosincapite #120
fetch support tls now.

@flosincapite
Copy link
Author

I can confirm that our build chain works again, so this is no longer an issue for me. Thank you so much!

@flosincapite
Copy link
Author

(What is your protocol for issues? Should I close this one?)

@juntao
Copy link
Member

juntao commented Jan 4, 2024

Hi @flosincapite

Thank you for confirming the solution. Please go ahead and close the issue.

Cheers
Michael

@lastmjs
Copy link

lastmjs commented Jan 4, 2024

I think I'm running into this issue right now. When I turn off default features I get this:

error[E0432]: unresolved import `rustls`
  --> /home/lastmjs/development/wasmedge-quickjs/src/event_loop/mod.rs:18:5
   |
18 | use rustls::OwnedTrustAnchor;
   |     ^^^^^^ use of undeclared crate or module `rustls`

error[E0432]: unresolved import `crate::event_loop::AsyncTlsConn`
   --> /home/lastmjs/development/wasmedge-quickjs/src/internal_module/wasi_net_module.rs:3:55
    |
3   | use crate::event_loop::{AsyncTcpConn, AsyncTcpServer, AsyncTlsConn};
    |                                                       ^^^^^^^^^^^^
    |                                                       |
    |                                                       no `AsyncTlsConn` in `event_loop`
    |                                                       help: a similar name exists in the module: `AsyncTcpConn`
    |
note: found an item that was configured out
   --> /home/lastmjs/development/wasmedge-quickjs/src/event_loop/mod.rs:124:12
    |
124 | pub struct AsyncTlsConn(pub(crate) tokio_rustls::client::TlsStream<tokio::net::TcpStream>);
    |            ^^^^^^^^^^^^
    = note: the item is gated behind the `tls` feature

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

4 participants