[dependencies.allocator-api2]
optional = true
version = "0.2"
[dependencies.async-stream]
version = "0.3"
[dependencies.bitflags]
version = "2"
[dependencies.bytes]
version = "1"
[dependencies.enum_dispatch]
version = "0.3.12"
[dependencies.facet]
version = "0.32.1"
[dependencies.futures]
version = "0.3"
[dependencies.futures-timeout]
version = "0.1"
[dependencies.libc]
optional = true
version = "0.2"
[dependencies.parking_lot]
version = "0.12"
[dependencies.shm-primitives]
optional = true
version = "0.5.0"
[dependencies.static_assertions]
optional = true
version = "1.1.0"
[dependencies.tokio]
features = ["sync", "rt", "macros", "time"]
version = "1"
[dependencies.tracing]
version = "0.1"
[dev-dependencies]
[features]
default = ["mem", "stream"]
mem = []
shm = ["dep:libc", "dep:static_assertions", "dep:allocator-api2", "dep:shm-primitives", "tokio/net"]
stream = []
websocket = ["dep:tokio-tungstenite"]
websocket-axum = ["websocket", "dep:axum"]
websocket-tungstenite = ["websocket"]
websocket-wasm = ["websocket"]
[lib]
name = "rapace_core"
path = "src/lib.rs"
[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
description = "Core types and traits for rapace RPC"
edition = "2024"
license = "MIT OR Apache-2.0"
name = "rapace-core"
readme = "README.md"
repository = "https://github.com/bearcove/rapace"
resolver = "2"
version = "0.5.0"
[package.metadata.docs.rs]
rustdoc-args = ["--html-in-header", "arborium-header.html"]
[package.metadata."docs.rs"]
rustdoc-args = ["--html-in-header", "arborium-header.html"]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.axum]
features = ["ws"]
optional = true
version = "0.8"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
features = ["sync", "rt", "macros", "time", "io-util", "net"]
version = "1"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-tungstenite]
optional = true
version = "0.28"
[target.'cfg(target_arch = "wasm32")'.dependencies.gloo-timers]
features = ["futures"]
version = "0.3"
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
features = ["console", "WebSocket", "MessageEvent", "BinaryType", "ErrorEvent", "CloseEvent"]
version = "0.3"
[[test]]
name = "shm_hub_roundtrip"
path = "tests/shm_hub_roundtrip.rs"
[[test]]
name = "transport_conformance"
path = "tests/transport_conformance.rs"