-
Notifications
You must be signed in to change notification settings - Fork 205
Convert tarpc::service! function macro to #[tarpc::service] attribute macro #247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
name = "tarpc-plugins" | ||
version = "0.5.1" | ||
authors = ["Adam Wright <[email protected]>", "Tim Kuehn <[email protected]>"] | ||
edition = "2018" | ||
license = "MIT" | ||
documentation = "https://docs.rs/tarpc-plugins" | ||
homepage = "https://github.com/google/tarpc" | ||
|
@@ -11,6 +12,9 @@ categories = ["asynchronous", "network-programming"] | |
readme = "../README.md" | ||
description = "Proc macros for tarpc." | ||
|
||
[features] | ||
serde1 = [] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be enabled by default There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried to get this to work. Unfortunately, it presents a footgun for users who don't need serde but don't opt out of the default features. They'll get the following errors if they don't have serde in their Cargo.toml dependencies:
This comment has more context. |
||
|
||
[badges] | ||
travis-ci = { repository = "google/tarpc" } | ||
|
||
|
@@ -22,3 +26,17 @@ proc-macro2 = "0.4" | |
|
||
[lib] | ||
proc-macro = true | ||
|
||
[dev-dependencies] | ||
bincode = "1" | ||
bincode-transport = { package = "tarpc-bincode-transport", version = "0.7", path = "../bincode-transport" } | ||
bytes = { version = "0.4", features = ["serde"] } | ||
futures-preview = { version = "0.3.0-alpha.17", features = ["compat"] } | ||
humantime = "1.0" | ||
env_logger = "0.6" | ||
serde = { version = "1.0", features = ["derive"] } | ||
tarpc = { path = "../tarpc" } | ||
tokio = "0.1" | ||
tokio-executor = "0.1" | ||
tokio-tcp = "0.1" | ||
pin-utils = "0.1.0-alpha.4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I keep forgetting to update examples before pushing code. This will make that harder. I could make this change outside this pr if you'd like.