Skip to content

ConnectionHandle not found when using axum but not tungstenite feature #92

@kasbah

Description

@kasbah
   Compiling samod v0.9.0
error[E0425]: cannot find type `ConnectionHandle` in this scope
   --> /home/kaspar/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/samod-0.9.0/src/websocket.rs:272:17
    |
272 |     ) -> Result<ConnectionHandle, crate::Stopped> {
    |                 ^^^^^^^^^^^^^^^^ not found in this scope
    |
help: consider importing this struct through its public re-export
    |
  1 + use crate::ConnectionHandle;
    |

Adding tungstenite to features works around this. Previously we had only features = ["tokio", "axum"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions