Update solana-vote-signer to Rust 2018
This commit is contained in:
parent
0e58023794
commit
1b3e7f734a
|
@ -1,8 +1,9 @@
|
||||||
[package]
|
[package]
|
||||||
name = "solana-vote-signer"
|
|
||||||
version = "0.12.0"
|
|
||||||
description = "Solana Vote Signing Service"
|
|
||||||
authors = ["Solana Maintainers <maintainers@solana.com>"]
|
authors = ["Solana Maintainers <maintainers@solana.com>"]
|
||||||
|
edition = "2018"
|
||||||
|
name = "solana-vote-signer"
|
||||||
|
description = "Solana Vote Signing Service"
|
||||||
|
version = "0.12.0"
|
||||||
repository = "https://github.com/solana-labs/solana"
|
repository = "https://github.com/solana-labs/solana"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
homepage = "https://solana.com/"
|
homepage = "https://solana.com/"
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
#[macro_use]
|
use clap::{crate_version, App, Arg};
|
||||||
extern crate clap;
|
|
||||||
extern crate log;
|
|
||||||
extern crate solana_metrics;
|
|
||||||
extern crate solana_sdk;
|
|
||||||
extern crate solana_vote_signer;
|
|
||||||
|
|
||||||
use clap::{App, Arg};
|
|
||||||
use solana_vote_signer::rpc::VoteSignerRpcService;
|
use solana_vote_signer::rpc::VoteSignerRpcService;
|
||||||
use std::error;
|
use std::error;
|
||||||
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
|
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
pub mod rpc;
|
pub mod rpc;
|
||||||
|
|
||||||
extern crate bs58;
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate log;
|
extern crate log;
|
||||||
extern crate solana_jsonrpc_core as jsonrpc_core;
|
extern crate solana_jsonrpc_core as jsonrpc_core;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//! The `rpc` module implements the Vote signing service RPC interface.
|
//! The `rpc` module implements the Vote signing service RPC interface.
|
||||||
|
|
||||||
use jsonrpc_core::*;
|
use crate::jsonrpc_core::*;
|
||||||
use jsonrpc_http_server::*;
|
use crate::jsonrpc_http_server::*;
|
||||||
use solana_sdk::pubkey::Pubkey;
|
use solana_sdk::pubkey::Pubkey;
|
||||||
use solana_sdk::signature::{Keypair, KeypairUtil, Signature};
|
use solana_sdk::signature::{Keypair, KeypairUtil, Signature};
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
@ -178,7 +178,7 @@ impl Default for LocalVoteSigner {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use jsonrpc_core::Response;
|
use crate::jsonrpc_core::Response;
|
||||||
use solana_sdk::signature::{Keypair, KeypairUtil};
|
use solana_sdk::signature::{Keypair, KeypairUtil};
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue