Code Monkey home page Code Monkey logo

Comments (2)

tikue avatar tikue commented on May 28, 2024

Hi, thanks!

  1. Reading the spec, it sounds like jsonrpc is a transport-agnostic, stateless RPC protocol. tarpc is also transport-agnostic, so I kind of imagine that a jsonrpc library would be filling a similar niche to tarpc. But if there is a specific crate you are interested in using, share the link and I'll take a look!
  2. If you run cargo doc on your crate, it should generate documentation for the generated types. Is that what you're looking for? Let me know if something appears to be missing. The readme mentions this, but feel free to send a PR if it's not clear enough.

from tarpc.

dan-da avatar dan-da commented on May 28, 2024

I'm also interested in a tarpc jsonrpc transport.

As I understand it, jsonrpc is transport-agnostic in the sense that it can be used over eg unix sockets, tcp, udp, http, etc. But not in the sense that one can change the serialization format (json) or method invocation and response envelopes.

Clearly json is compatible with tarpc. The question in my mind is if/how the request/response mechanism could be integrated. So a json-rpc method-call would be routed to a tarpc server trait method, and also if a method returns an error then it should be converted into a jsonrpc error.

I'm hopeful that this kind of translation could occur in a hypothetical tarpc-jsonrpc-transport crate, but I am not familiar enough with tarpc's transport plugin layer to understand how methods are invoked exactly.

@tikue does the above seem achievable to you?

from tarpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.