Coder Social home page Coder Social logo

msgpack-rpc about rust-msgpack HOT 5 OPEN

anfractuosity avatar anfractuosity commented on June 22, 2024 1
msgpack-rpc

from rust-msgpack.

Comments (5)

euclio avatar euclio commented on June 22, 2024

I don't think it's ready to go yet. I'm currently working on a project that would make use of this however, @mneumann, what needs to be done?

from rust-msgpack.

mneumann avatar mneumann commented on June 22, 2024

@anfractuosity , @euclio It only parses the RPC messages, but it does not implement the socket infrastructure and the dispatch. Should be easy to do... If you don't need interoperability between different languages, you might also take a look at https://github.com/pcwalton/ipc-channel.

from rust-msgpack.

anfractuosity avatar anfractuosity commented on June 22, 2024

I just had a go at compiling with the RPC module included but got the following error messages, which I'll take a go at fixing.

But I'm wondering after fixing those, roughly what would I need to do to use it? As in how would I define an RPC server interface for clients to call methods from?

   Compiling msgpack v0.1.0 (file:///home/chris/Repositories/rust-msgpack)
src/rpc.rs:2:17: 2:26 error: unresolved import `serialize::Encodable`. Maybe a missing `extern crate serialize`?
src/rpc.rs:2 use serialize::{Encodable, Decodable, Encoder, Decoder};
                             ^~~~~~~~~
src/rpc.rs:2:28: 2:37 error: unresolved import `serialize::Decodable`. Maybe a missing `extern crate serialize`?
src/rpc.rs:2 use serialize::{Encodable, Decodable, Encoder, Decoder};
                                        ^~~~~~~~~
src/rpc.rs:2:39: 2:48 error: unresolved import `serialize::Encoder`. Maybe a missing `extern crate serialize`?
src/rpc.rs:2 use serialize::{Encodable, Decodable, Encoder, Decoder};
                                                   ^~~~~~~~~
src/rpc.rs:2:48: 2:57 error: unresolved import `serialize::Decoder`. Maybe a missing `extern crate serialize`?
src/rpc.rs:2 use serialize::{Encodable, Decodable, Encoder, Decoder};
                                                            ^~~~~~~~~
src/rpc.rs:3:19: 3:26 error: unresolved import `std::old_io::IoError`. Could not find `old_io` in `std`
src/rpc.rs:3 use std::old_io::{IoError, IoResult};
                               ^~~~~~~
src/rpc.rs:3:28: 3:36 error: unresolved import `std::old_io::IoResult`. Could not find `old_io` in `std`
src/rpc.rs:3 use std::old_io::{IoError, IoResult};
                                        ^~~~~~~~
error: aborting due to 6 previous errors
Could not compile `msgpack`.

from rust-msgpack.

euclio avatar euclio commented on June 22, 2024

I mucked around in it a little bit but I'm not familiar with rust serialization at all. After updating the old types it seems that it's using an old interface as well? Or needs more super imports?

from rust-msgpack.

mneumann avatar mneumann commented on June 22, 2024

I see. It's still using very old interfaces. At first, serialize is now rustc_serialize. Then of course old_io is gone. I think you should use MsgpackResult instead of IoResult. You will probably find some examples here: https://github.com/rust-lang/rustc-serialize.

from rust-msgpack.

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.