[package] name = "ezrpc" version = "0.1.1" authors = ["metaworm "] edition = "2021" license = "MIT" description = "Ergonomic, flexible and Zero-cost RPC framework" homepage = "https://crates.io/crates/ezrpc" documentation = "https://docs.rs/ezrpc" repository = "https://github.com/metaworm/ezrpc" categories = ['web-programming::websocket', 'wasm'] keywords = ['rpc', 'msgpack', 'msgpack-rpc', 'websocket', 'wasm'] [features] default = [] [dependencies] rmp = '0.8' log = '0.4' log-error = '0.1' lockfree = '0.5' rmp-serde = '1' anyhow = '1' futures = '0.3.21' async-trait = '0.1' async-lock = '2.5' downcast = "0.11" serde-transcode = '1' serde-value = '0.7' rmpv = {version = '1', features = ['with-serde']} serde = {version = "1", default-features = false, features = ['derive', 'rc', 'alloc']} [target.'cfg(not(target_arch="wasm32"))'.dependencies] parking_lot = '0.12' ws-tool = {version = '0.8', features = ['async']} tokio = {version = '1', features = ["net", "time", "rt", "sync", "io-util"]} [target.'cfg(target_arch="wasm32")'.dependencies] js-sys = '0.3' gloo-utils = "0.2" gloo-console = '0.3' ws_stream_wasm = '0.7' serde-wasm-bindgen = '0.5' wasm-bindgen = "0.2" wasm-bindgen-futures = '0.4' # resolve https://github.com/rustwasm/wasm-bindgen/issues/2215 parking_lot = {version = "0.11", features = ["wasm-bindgen"]} gloo-timers = {version = "0.3", features = ['futures']} [dev-dependencies] spin = '0.9' flexi_logger = "0.26" serde_bytes = '0.11' [target.'cfg(target_arch="wasm32")'.dev-dependencies] wasm-bindgen-test = "0.3" [target.'cfg(not(target_arch="wasm32"))'.dev-dependencies] tokio = {version = '1', features = ["macros"]} serde_json = '1'