##// END OF EJS Templates
rust-chg: upgrade to 2018 edition and remove useless extern crates...
Yuya Nishihara -
r45179:1f5ab1a9 default
parent child Browse files
Show More
@@ -4,6 +4,7 b' version = "0.1.0"'
4 4 authors = ["Yuya Nishihara <yuya@tcha.org>"]
5 5 description = "Client for Mercurial command server with cHg extension"
6 6 license = "GPL-2.0+"
7 edition = "2018"
7 8
8 9 [dependencies]
9 10 bytes = "0.4"
@@ -1,5 +1,3 b''
1 extern crate cc;
2
3 1 fn main() {
4 2 cc::Build::new()
5 3 .warnings(true)
@@ -5,7 +5,7 b''
5 5
6 6 //! Functions to send client-side fds over the command server channel.
7 7
8 use futures::{Async, Future, Poll};
8 use futures::{try_ready, Async, Future, Poll};
9 9 use std::io;
10 10 use std::os::unix::io::AsRawFd;
11 11 use tokio_hglib::codec::ChannelMessage;
@@ -3,17 +3,6 b''
3 3 // This software may be used and distributed according to the terms of the
4 4 // GNU General Public License version 2 or any later version.
5 5
6 extern crate bytes;
7 #[macro_use]
8 extern crate futures;
9 extern crate libc;
10 #[macro_use]
11 extern crate log;
12 extern crate tokio;
13 extern crate tokio_hglib;
14 extern crate tokio_process;
15 extern crate tokio_timer;
16
17 6 mod attachio;
18 7 mod clientext;
19 8 pub mod locator;
@@ -6,6 +6,7 b''
6 6 //! Utility for locating command-server process.
7 7
8 8 use futures::future::{self, Either, Loop};
9 use log::debug;
9 10 use std::env;
10 11 use std::ffi::{OsStr, OsString};
11 12 use std::fs::{self, DirBuilder};
@@ -3,12 +3,6 b''
3 3 // This software may be used and distributed according to the terms of the
4 4 // GNU General Public License version 2 or any later version.
5 5
6 extern crate chg;
7 extern crate futures;
8 extern crate log;
9 extern crate tokio;
10 extern crate tokio_hglib;
11
12 6 use chg::locator::{self, Locator};
13 7 use chg::procutil;
14 8 use chg::{ChgClientExt, ChgUiHandler};
General Comments 0
You need to be logged in to leave comments. Login now