Fmt & Added CI
This commit is contained in:
parent
39fe1b820b
commit
b939961181
16 changed files with 181 additions and 104 deletions
|
|
@ -3,8 +3,8 @@ use maxminddb::{Reader, geoip2};
|
|||
use serde::Deserialize;
|
||||
use std::net::IpAddr;
|
||||
|
||||
// For now only MMDB because i cant found .proto schemes of
|
||||
// V2Ray GeoSite.dat :((
|
||||
// For now only MMDB because i cant found .proto schemes of
|
||||
// V2Ray GeoSite.dat :((
|
||||
// TODO: V2Ray protobuf parsing && Test 4 ts
|
||||
|
||||
/// Interface enum for `dst_addr` info
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
pub mod geoip2;
|
||||
pub mod toml;
|
||||
pub mod v2ray;
|
||||
pub mod v2ray;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use crate::geoparsers::v2ray::types::{Domain, GeoSite, GeoSiteList};
|
||||
use prost::bytes::Buf;
|
||||
use prost::Message;
|
||||
use prost::bytes::Buf;
|
||||
use std::fs;
|
||||
|
||||
pub struct GeoSiteService {
|
||||
|
|
|
|||
|
|
@ -33,17 +33,7 @@ pub mod domain {
|
|||
}
|
||||
}
|
||||
/// Type of domain value.
|
||||
#[derive(
|
||||
Clone,
|
||||
Copy,
|
||||
Debug,
|
||||
PartialEq,
|
||||
Eq,
|
||||
Hash,
|
||||
PartialOrd,
|
||||
Ord,
|
||||
::prost::Enumeration
|
||||
)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
|
||||
#[repr(i32)]
|
||||
pub enum Type {
|
||||
/// The value is used as is.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue