Compare commits
5 Commits
10a1e64de1
...
5a14d064c5
Author | SHA1 | Date | |
---|---|---|---|
5a14d064c5 | |||
4290c7a322 | |||
6a4688b9c1 | |||
b4b7136626 | |||
1257ad61d5 |
@ -9,18 +9,34 @@ jobs:
|
||||
Build:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Rust
|
||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/cache@v4
|
||||
env:
|
||||
prefix-key: v0-rust
|
||||
hash-short: ${{ (hashFiles('Cargo.lock') | cut -c 1-8) }}
|
||||
with:
|
||||
toolchain: stable
|
||||
- name: Create Script
|
||||
uses: actions-rs/cargo@v1
|
||||
key: ${{ env.prefix-key }}-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Cargo.lock') }}
|
||||
restore-keys: |
|
||||
${{ env.prefix-key }}-${{ runner.os }}-${{ runner.arch }}-
|
||||
${{ env.prefix-key }}-${{ runner.os }}-
|
||||
${{ env.prefix-key }}-
|
||||
path: |
|
||||
~/.cargo/bin
|
||||
~/.cargo/.crates.toml
|
||||
~/.cargo/.crates2.json
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
~/.rustup/toolchains
|
||||
./target
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: 1.88.0
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: run
|
||||
- name: Upload Artifact
|
||||
uses: christopherhx/gitea-upload-artifact@v4
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: chn_list.rsc
|
||||
path: chn_list.rsc
|
||||
retention-days: 7
|
||||
|
10
Cargo.lock
generated
10
Cargo.lock
generated
@ -1,6 +1,6 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
version = 4
|
||||
|
||||
[[package]]
|
||||
name = "addr2line"
|
||||
@ -84,8 +84,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
||||
|
||||
[[package]]
|
||||
name = "cn_cidr"
|
||||
version = "0.1.0"
|
||||
name = "chnlist"
|
||||
version = "0.1.1"
|
||||
dependencies = [
|
||||
"reqwest",
|
||||
"tokio",
|
||||
@ -240,9 +240,9 @@ checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604"
|
||||
|
||||
[[package]]
|
||||
name = "hermit-abi"
|
||||
version = "0.3.3"
|
||||
version = "0.3.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7"
|
||||
checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024"
|
||||
|
||||
[[package]]
|
||||
name = "http"
|
||||
|
@ -1,9 +1,9 @@
|
||||
[package]
|
||||
name = "cn_cidr"
|
||||
version = "0.1.0"
|
||||
name = "chnlist"
|
||||
version = "0.1.1"
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
|
||||
[dependencies]
|
||||
reqwest = "0.11.22"
|
||||
tokio = { version = "1.33.0", features = ["macros", "rt-multi-thread", "rt"] }
|
||||
tokio = { version = "1.33.0", features = ["macros", "rt-multi-thread"] }
|
||||
|
@ -16,11 +16,6 @@ imap.mail.me.com
|
||||
smtp.mail.me.com
|
||||
|
||||
# internal service domain
|
||||
dl.simaek.com
|
||||
nas.simaek.com
|
||||
dl.xueye.io
|
||||
|
||||
# PTSBAO
|
||||
ptsbao.club
|
||||
www.plex.tv
|
||||
|
||||
dl.simaek.com
|
||||
hk.simaek.com
|
||||
|
@ -14,7 +14,7 @@ async fn main() {
|
||||
}
|
||||
|
||||
async fn create() -> Result<(), Box<dyn Error>> {
|
||||
let url = "https://ispip.clang.cn/all_cn.txt";
|
||||
let url = "https://raw.githubusercontent.com/gaoyifan/china-operator-ip/refs/heads/ip-lists/china.txt";
|
||||
let dest = "chn_list.rsc";
|
||||
let mut dest = File::create(dest).unwrap();
|
||||
// address list name
|
||||
|
Loading…
Reference in New Issue
Block a user