You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently cyper-core cannot be built with --no-default-features due the fact that it will import compio-tls no matter what, and that in turn causes compio to fail to build.
For cyper, compio-tls should not be a default feature. Instead, it should only be toggled on when either native-tls or rustls is enabled.
For compio, compio-tls should either become no-op when neither features is enabled or give a clearer error. Currently it shows:
error[E0392]: parameter `S` is never used
--> [:REDACTED:]/.cargo/registry/src/index.crates.io-6f17d22bba15001f/compio-tls-0.1.0-beta.2/src/stream/mod.rs:11:21
|
11 | enum TlsStreamInner<S> {
| ^ unused parameter
|
= help: consider removing `S`, referring to it in a field, or using a marker such as `PhantomData`
= help: if you intended `S` to be a const parameter, use `const S: usize` instead
error[E0392]: parameter `S` is never used
--> [:REDACTED:]/.cargo/registry/src/index.crates.io-6f17d22bba15001f/compio-tls-0.1.0-beta.2/src/stream/mod.rs:78:22
|
78 | pub struct TlsStream<S>(TlsStreamInner<S>);| ^ unused parameter
|
= help: consider removing `S`, referring to it in a field, or using a marker such as `PhantomData`
= help: if you intended `S` to be a const parameter, use `const S: usize` instead
error[E0004]: non-exhaustive patterns: type`&TlsConnectorInner` is non-empty
--> [:REDACTED:]/.cargo/registry/src/index.crates.io-6f17d22bba15001f/compio-tls-0.1.0-beta.2/src/adapter/mod.rs:55:15
|
55 | match &self.0 {
| ^^^^^^^
|
note: `TlsConnectorInner` defined here
--> [:REDACTED:]/.cargo/registry/src/index.crates.io-6f17d22bba15001f/compio-tls-0.1.0-beta.2/src/adapter/mod.rs:11:6
|
11 | enum TlsConnectorInner {
| ^^^^^^^^^^^^^^^^^
= note: the matched value is of type`&TlsConnectorInner`
= note: references are always considered inhabited
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown
|
55 ~ match &self.0 {
56 + _ =>todo!(),
57 + }
|
error[E0004]: non-exhaustive patterns: type`&TlsAcceptorInner` is non-empty
--> [:REDACTED:]/.cargo/registry/src/index.crates.io-6f17d22bba15001f/compio-tls-0.1.0-beta.2/src/adapter/mod.rs:105:15
|
105 | match &self.0 {
| ^^^^^^^
|
note: `TlsAcceptorInner` defined here
--> [:REDACTED:]/.cargo/registry/src/index.crates.io-6f17d22bba15001f/compio-tls-0.1.0-beta.2/src/adapter/mod.rs:67:6
|
67 | enum TlsAcceptorInner {
| ^^^^^^^^^^^^^^^^
= note: the matched value is of type`&TlsAcceptorInner`
= note: references are always considered inhabited
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown
|
105 ~ match &self.0 {
106 + _ =>todo!(),
107 + }
|
The text was updated successfully, but these errors were encountered:
Currently
cyper-core
cannot be built with--no-default-features
due the fact that it will importcompio-tls
no matter what, and that in turn causes compio to fail to build.For cyper,
compio-tls
should not be a default feature. Instead, it should only be toggled on when eithernative-tls
orrustls
is enabled.For compio,
compio-tls
should either become no-op when neither features is enabled or give a clearer error. Currently it shows:The text was updated successfully, but these errors were encountered: