Comments (5)
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.
@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.
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.
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.
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)
- Add enum support. HOT 3
- Out of touch with master. HOT 4
- Build failing on serialise::Decoder trait HOT 2
- Travis builds failing since bbd93a7 HOT 1
- Support rust enums HOT 1
- Doesn't compile with the latest rust HOT 1
- Fails to pack/unpack
- task '<main>' failed at 'called `Option::unwrap()` on a `None` value' HOT 5
- Structs are encoded w/ map type but are not valid msgpack maps! HOT 8
- Nullary option variants corrupt the next element in the decoder. HOT 2
- Publish to crates.io HOT 1
- Value is not Decodable after the move to associated types HOT 4
- port to rust 1.0.0 alpha
- Clone Trait
- Build is broken against nightly
- Does not compile with rustc 1.7.0 HOT 3
- Won't Compile with rustc 1.15.0-nightly (8f02c429a 2016-12-15)
- It doesn't compile with byteorder v1.2.1 HOT 1
- Mark this library as deprecated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-msgpack.