8 breaking releases

0.10.0 Nov 17, 2023
0.8.0 Jul 2, 2023
0.7.0 Apr 30, 2023
Download history 8/week @ 2023-10-28 27/week @ 2023-11-11 42/week @ 2023-11-18 28/week @ 2023-11-25 33/week @ 2023-12-02 8/week @ 2023-12-09 17/week @ 2023-12-16 27/week @ 2023-12-23 5/week @ 2023-12-30 10/week @ 2024-01-06 9/week @ 2024-01-13 8/week @ 2024-01-20 24/week @ 2024-01-27 6/week @ 2024-02-03 37/week @ 2024-02-10

77 downloads per month
Used in 2 crates (via usdpl-build)

Apache-2.0

39KB
751 lines

nRPC nRPC-build

nRPC

NG's custom spin of gRPC. Intended to be decoupled from the network layer for use with websockets.

About

nRPC provides the glue logic from protobuf declarations to client and server Rust code. The server-side logic and client-server networking is not implemented. This makes it almost, but not quite, a gRPC implementation in Rust. To really drive that idea home, nRPC stands for nRPC Remote Procedure Call -- almost like what gRPC stands for.

Since the network layer is not provided, this will never be fully compliant with gRPC specifications. On the other hand, gRPC can't be used in browsers but nRPC could be used to write something that does. Since nRPC is just a hobby project, think of it like a cheap knock-off -- compliance with gRPC is best-effort where possible.

Why?

I wanted a well-known RPC library that could work with a client in a browser. The most popular RPC library seemed to be gRPC, except that didn't support browsers. So I made something that fit my requirements.

Dependencies

~11–23MB
~299K SLoC