mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-01-02 01:20:10 +01:00
* Extend snake_to_camel plugin to replace {} in the doc string with the origin snake-cased ident.
Also, track tokio-rs master.
This is really ad-hoc, undiscoverable, and unintuitive, but there's no way to programmatically create doc strings
in regular code, and I want to produce better doc strings for the associated types.
Given `fn foo_bar`:
Before: `/// The type of future returned by the function of the same name.`
After: ``/// The type of future returned by `{}`.``
=> `/// The type of future returned by foo_bar.`
* Fix some docs
* Use a helper fn on pipeline::Frame instead of handrolled match.
* Don't hide docs for ClientFuture.
It's exposed in the Connect impl of FutureService -- the tradeoff for not generating *another* item -- and hiding it breaks doc links.
* Formatting
* Rename snake_to_camel plugin => tarpc-plugins
* Update README
* Mangle a lot of names in macro expansion.
To lower the chance of any issues, prefix idents in service expansion with __tarpc_service.
In future_enum, prefix with __future_enum. The pattern is basically __macro_name_ident.
Any imported enum variant will conflict with a let binding or a function arg, so we basically
can't use any generic idents at all. Example:
enum Req { request(..) }
use self::Req::request;
fn make_request(request: Request) { ... }
^^^^^^^ conflict here
Additionally, suffix generated associated types with Fut to avoid conflicts with camelcased rpcs.
Why someone would do that, I don't know, but we shouldn't allow that wart.
38 lines
1.1 KiB
TOML
38 lines
1.1 KiB
TOML
[package]
|
|
name = "tarpc"
|
|
version = "0.6.0"
|
|
authors = ["Adam Wright <adam.austin.wright@gmail.com>", "Tim Kuehn <timothy.j.kuehn@gmail.com>"]
|
|
license = "MIT"
|
|
documentation = "https://docs.rs/tarpc"
|
|
homepage = "https://github.com/google/tarpc"
|
|
repository = "https://github.com/google/tarpc"
|
|
keywords = ["rpc", "protocol", "remote", "procedure", "serialize"]
|
|
readme = "README.md"
|
|
description = "An RPC framework for Rust with a focus on ease of use."
|
|
|
|
[dependencies]
|
|
bincode = "0.6"
|
|
byteorder = "0.5"
|
|
bytes = { git = "https://github.com/carllerche/bytes" }
|
|
futures = { git = "https://github.com/alexcrichton/futures-rs" }
|
|
futures-cpupool = { git = "https://github.com/alexcrichton/futures-rs" }
|
|
lazy_static = "0.2"
|
|
log = "0.3"
|
|
scoped-pool = "1.0"
|
|
serde = "0.8"
|
|
serde_derive = "0.8"
|
|
tarpc-plugins = { path = "src/plugins" }
|
|
take = "0.1"
|
|
tokio-service = { git = "https://github.com/tokio-rs/tokio-service" }
|
|
tokio-proto = { git = "https://github.com/tokio-rs/tokio-proto" }
|
|
tokio-core = { git = "https://github.com/tokio-rs/tokio-core" }
|
|
|
|
[dev-dependencies]
|
|
chrono = "0.2"
|
|
env_logger = "0.3"
|
|
|
|
[features]
|
|
unstable = ["serde/unstable"]
|
|
|
|
[workspace]
|