6个版本 (破坏性更新)
0.6.0 | 2021年2月8日 |
---|---|
0.5.0 | 2021年2月7日 |
0.4.0 | 2021年2月7日 |
0.3.0 | 2020年12月22日 |
0.1.0 | 2020年12月18日 |
#946 in HTTP服务器
32KB
350 行
运行服务器
cargo run -p my_public_ip_server -- \
--config-file server/config.toml \
--db-dir db \
--log-file server/log4rs.yaml \
--pid-file server/my_public_ip_server.pid \
--cert-file server/cert.pem \
--key-file server/key.pem \
--port 8998
运行客户端
RUST_LOG=info cargo run -p my_public_ip_client -- \
--url=https://127.0.0.1:8998 \
--api-key=abcdef \
list
RUST_LOG=info cargo run -p my_public_ip_client -- \
--url=https://127.0.0.1:8998 \
--api-key=012345 \
update
RUST_LOG=info cargo run -p my_public_ip_client -- \
--url=https://127.0.0.1:8998 \
--api-key=012345 \
update-forever \
--interval=3
依赖项
~32MB
~652K SLoC