Comments (7)
I agree that we should migrate to futures-rs and tokio-core. I've made some progress in that direction with the capnp-futures-rs crate, but there is still a lot to do. Please keep me posted on any progress you make, and feel free to ask me any questions.
from capnproto-rust.
This is done! See https://dwrensha.github.io/capnproto-rust/2017/01/04/rpc-futures.html.
@salpalvv: I've added some more documentation to the readme at https://github.com/dwrensha/capnp-rpc-rust. Perhaps we should also have fully-working "hello" example in the /examples/ directory.
from capnproto-rust.
Well, i'm studying the code, and the rpc protocol specification, read the code of the new and old create, and i'm lost yet. And I have one question:
- How you visualize the migration, ¿what's the next file you could migrate?, because i don't know where to start really
from capnproto-rust.
Well, the light is coming to me. My attemp is starting here: https://github.com/gabomgp/capnp-rpc-tokio. There is ver little yet, but i hope i can help.
from capnproto-rust.
- How you visualize the migration, ¿what's the next file you could migrate?
I would start by updating this declaration in the capnp
crate to be
pub type Promise<T,E> = Box<::futures::Future<Item=T,Error=E>>;
I would then update the capnpc
crate so that code generation still produces code that typechecks. Then I would start on capnp-rpc
.
from capnproto-rust.
I've started working on this: https://github.com/dwrensha/capnproto-rust/tree/futures, https://github.com/dwrensha/capnpc-rust/tree/futures, https://github.com/dwrensha/capnp-rpc-rust/tree/futures
from capnproto-rust.
While I eagerly await the futures implementation, I went ahead and dove into capnproto-rust with the gj dep because I plan to use capnproto-rpc for my project.
One issue that I had was the lack of very simple examples. I had to go to this blog post to find a simple hello world example.
I would like to suggest that when you have the futures implementation that you have an extremely simple, contrived example (hello world is always great) so even I may follow along. Futures are very complex as is and I imagine having to follow along with a pubsub and calculator examples may prove difficult.
from capnproto-rust.
Related Issues (20)
- Using `CapabilityServerSet` prevents Server objects from being dropped at the appropriate time HOT 11
- Document when write_message errors HOT 1
- Export APIs as C with the help of bindgen HOT 2
- Use of deprecated try macro HOT 1
- std::marker::PhantomData still used when using no_std HOT 1
- Stringify on `AnyPointer` HOT 2
- Enum fields with defaults generate bad setters HOT 3
- Adding or Extending Clients in Rust code? HOT 2
- Annotation and struct module names can conflict HOT 1
- Consider making builders chainable
- get_annotation_types breaks on non-builtin external types, despite comment in codegen.rs saying otherwise HOT 7
- How to check schema compatibility? HOT 2
- Question - It is possible expose more than one rpc interface throughout one socket? HOT 4
- Initialize a primitive list from Vec HOT 6
- `set_root_canonical` errors on assertion HOT 2
- Support async_io_stream IoStream HOT 1
- BufferSegments has the same definition as NoAllocSliceSegments HOT 1
- introduce canonical way to import stream.capnp and other core schemas HOT 4
- Canonicalize message on receive HOT 5
- Implement streaming support
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 capnproto-rust.