fetchlet 0.1.1

Rust-hosted JavaScript functions and Fetch handlers with explicit host services
Documentation
// JavaScript's end of a channel lives in the bridge, which only an engine,
// the fuzzing harness and the unit tests compile.

mod message;
mod service;

#[cfg_attr(
    not(any(
        feature = "boa",
        feature = "quickjs",
        feature = "v8",
        feature = "fuzzing",
        test
    )),
    allow(dead_code)
)]
mod end;
#[cfg_attr(
    not(any(feature = "boa", feature = "quickjs", feature = "v8")),
    allow(dead_code)
)]
mod upgrade;

pub use end::{ChannelEnd, ChannelEvent};
pub use message::{CloseFrame, Message};
pub use service::{ChannelFuture, ChannelRequest, ChannelService, channel_fn};
pub use upgrade::ServerWebSocket;

#[cfg(any(
    feature = "boa",
    feature = "quickjs",
    feature = "v8",
    feature = "fuzzing",
    test
))]
pub(crate) use end::Refused;
pub(crate) use end::{GuestEnd, pair};