diff --git a/Cargo.toml b/Cargo.toml index fd27b87..bcb3a72 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "iptoasn-webservice" description = "API server for iptoasn.com" -version = "0.2.4" +version = "0.2.5" homepage = "https://iptoasn.com" repository = "https://github.com/jedisct1/iptoasn-webservice" keywords = ["ip", "asn", "bgp"] diff --git a/LICENSE b/LICENSE index 133161d..3a82d89 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ BSD 2-Clause License -Copyright (c) 2016-2019, Frank Denis +Copyright (c) 2016-2020, Frank Denis All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/src/main.rs b/src/main.rs index 278f2da..3390a4a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,17 +1,18 @@ #[macro_use] extern crate horrorshow; - #[macro_use] extern crate log; #[macro_use] extern crate router; +#[macro_use] +extern crate clap; mod asns; mod webservice; use crate::asns::*; use crate::webservice::*; -use clap::{App, Arg}; +use clap::Arg; use std::sync::{Arc, RwLock}; use std::thread; use std::time::Duration; @@ -35,10 +36,7 @@ fn update_asns(asns_arc: &Arc>>, db_url: &str) { } fn main() { - let matches = App::new("iptoasn webservice") - .version("0.2.0") - .author("Frank Denis") - .about("Webservice for https://iptoasn.com") + let matches = app_from_crate!() .arg( Arg::with_name("listen_addr") .short("l")