mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-02-16 06:26:41 +01:00
Merge pull request #167 from tikue/master
* Fix breakage from nightly compiler changes. * Remove unused imports * Update TLS code to not use deprecated method * Bump versions Fixes #166
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tarpc"
|
name = "tarpc"
|
||||||
version = "0.8.0"
|
version = "0.9.0"
|
||||||
authors = ["Adam Wright <adam.austin.wright@gmail.com>", "Tim Kuehn <timothy.j.kuehn@gmail.com>"]
|
authors = ["Adam Wright <adam.austin.wright@gmail.com>", "Tim Kuehn <timothy.j.kuehn@gmail.com>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
documentation = "https://docs.rs/tarpc"
|
documentation = "https://docs.rs/tarpc"
|
||||||
@@ -26,7 +26,7 @@ net2 = "0.2"
|
|||||||
num_cpus = "1.0"
|
num_cpus = "1.0"
|
||||||
serde = "1.0"
|
serde = "1.0"
|
||||||
serde_derive = "1.0"
|
serde_derive = "1.0"
|
||||||
tarpc-plugins = { path = "src/plugins", version = "0.1.1" }
|
tarpc-plugins = { path = "src/plugins", version = "0.2.0" }
|
||||||
thread-pool = "0.1.1"
|
thread-pool = "0.1.1"
|
||||||
tokio-core = "0.1.6"
|
tokio-core = "0.1.6"
|
||||||
tokio-io = "0.1"
|
tokio-io = "0.1"
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ arguments to tarpc fns.
|
|||||||
Add to your `Cargo.toml` dependencies:
|
Add to your `Cargo.toml` dependencies:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
tarpc = "0.8.0"
|
tarpc = "0.9.0"
|
||||||
tarpc-plugins = "0.1.1"
|
tarpc-plugins = "0.2.0"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Example: Sync
|
## Example: Sync
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
## 0.9.0 (2017-09-17)
|
||||||
|
|
||||||
|
## Breaking Changes
|
||||||
|
Updates tarpc to use tarpc-plugins 0.2.
|
||||||
|
|
||||||
## 0.8.0 (2017-05-05)
|
## 0.8.0 (2017-05-05)
|
||||||
|
|
||||||
## Breaking Changes
|
## Breaking Changes
|
||||||
|
|||||||
@@ -6,12 +6,10 @@
|
|||||||
#![feature(plugin, use_extern_macros)]
|
#![feature(plugin, use_extern_macros)]
|
||||||
#![plugin(tarpc_plugins)]
|
#![plugin(tarpc_plugins)]
|
||||||
|
|
||||||
extern crate futures;
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate tarpc;
|
extern crate tarpc;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate serde_derive;
|
extern crate serde_derive;
|
||||||
extern crate tokio_core;
|
|
||||||
|
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|||||||
@@ -7,10 +7,8 @@
|
|||||||
#![feature(plugin, use_extern_macros)]
|
#![feature(plugin, use_extern_macros)]
|
||||||
#![plugin(tarpc_plugins)]
|
#![plugin(tarpc_plugins)]
|
||||||
|
|
||||||
extern crate futures;
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate tarpc;
|
extern crate tarpc;
|
||||||
extern crate tokio_core;
|
|
||||||
|
|
||||||
use std::sync::mpsc;
|
use std::sync::mpsc;
|
||||||
use std::thread;
|
use std::thread;
|
||||||
|
|||||||
@@ -9,8 +9,6 @@
|
|||||||
extern crate env_logger;
|
extern crate env_logger;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate tarpc;
|
extern crate tarpc;
|
||||||
extern crate futures;
|
|
||||||
extern crate tokio_core;
|
|
||||||
|
|
||||||
use add::{SyncService as AddSyncService, SyncServiceExt as AddExt};
|
use add::{SyncService as AddSyncService, SyncServiceExt as AddExt};
|
||||||
use double::{SyncService as DoubleSyncService, SyncServiceExt as DoubleExt};
|
use double::{SyncService as DoubleSyncService, SyncServiceExt as DoubleExt};
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ extern crate lazy_static;
|
|||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate tarpc;
|
extern crate tarpc;
|
||||||
extern crate env_logger;
|
extern crate env_logger;
|
||||||
extern crate futures;
|
|
||||||
extern crate serde_bytes;
|
extern crate serde_bytes;
|
||||||
extern crate tokio_core;
|
extern crate tokio_core;
|
||||||
|
|
||||||
|
|||||||
@@ -10,9 +10,7 @@
|
|||||||
extern crate log;
|
extern crate log;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate tarpc;
|
extern crate tarpc;
|
||||||
extern crate bincode;
|
|
||||||
extern crate env_logger;
|
extern crate env_logger;
|
||||||
extern crate futures;
|
|
||||||
extern crate tokio_core;
|
extern crate tokio_core;
|
||||||
|
|
||||||
use bar::FutureServiceExt as BarExt;
|
use bar::FutureServiceExt as BarExt;
|
||||||
|
|||||||
@@ -620,8 +620,7 @@ mod functional_test {
|
|||||||
if #[cfg(target_os = "macos")] {
|
if #[cfg(target_os = "macos")] {
|
||||||
extern crate security_framework;
|
extern crate security_framework;
|
||||||
|
|
||||||
use self::security_framework::certificate::SecCertificate;
|
use native_tls_inner::Certificate;
|
||||||
use native_tls_inner::backend::security_framework::TlsConnectorBuilderExt;
|
|
||||||
|
|
||||||
fn get_future_tls_client_options() -> future::client::Options {
|
fn get_future_tls_client_options() -> future::client::Options {
|
||||||
future::client::Options::default().tls(get_tls_client_context())
|
future::client::Options::default().tls(get_tls_client_context())
|
||||||
@@ -633,9 +632,9 @@ mod functional_test {
|
|||||||
|
|
||||||
fn get_tls_client_context() -> Context {
|
fn get_tls_client_context() -> Context {
|
||||||
let buf = include_bytes!("../test/root-ca.der");
|
let buf = include_bytes!("../test/root-ca.der");
|
||||||
let cert = unwrap!(SecCertificate::from_der(buf));
|
let cert = unwrap!(Certificate::from_der(buf));
|
||||||
let mut connector = unwrap!(TlsConnector::builder());
|
let mut connector = unwrap!(TlsConnector::builder());
|
||||||
connector.anchor_certificates(&[cert]);
|
connector.add_root_certificate(cert);
|
||||||
|
|
||||||
Context {
|
Context {
|
||||||
domain: DOMAIN.into(),
|
domain: DOMAIN.into(),
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tarpc-plugins"
|
name = "tarpc-plugins"
|
||||||
version = "0.1.1"
|
version = "0.2.0"
|
||||||
authors = ["Adam Wright <adam.austin.wright@gmail.com>", "Tim Kuehn <timothy.j.kuehn@gmail.com>"]
|
authors = ["Adam Wright <adam.austin.wright@gmail.com>", "Tim Kuehn <timothy.j.kuehn@gmail.com>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
documentation = "https://docs.rs/tarpc"
|
documentation = "https://docs.rs/tarpc"
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ fn snake_to_camel(cx: &mut ExtCtxt, sp: Span, tts: &[TokenTree]) -> Box<MacResul
|
|||||||
if let Some(tt @ TokenTree::Token(_, token::Eq)) = tokens.next() {
|
if let Some(tt @ TokenTree::Token(_, token::Eq)) = tokens.next() {
|
||||||
let mut docstr = tokens.next().expect("Docstrings must have literal docstring");
|
let mut docstr = tokens.next().expect("Docstrings must have literal docstring");
|
||||||
if let TokenTree::Token(_, token::Literal(token::Str_(ref mut doc), _)) = docstr {
|
if let TokenTree::Token(_, token::Literal(token::Str_(ref mut doc), _)) = docstr {
|
||||||
*doc = Symbol::intern(&str_lit(&doc.as_str()).replace("{}", &old_ident));
|
*doc = Symbol::intern(&str_lit(&doc.as_str(), None).replace("{}", &old_ident));
|
||||||
} else {
|
} else {
|
||||||
unreachable!();
|
unreachable!();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user