Crate rsup_config

Crate rsup_config 

Source
Expand description

读取配置文件 操作配置文件 默认目录: macos|linux: /opt/rsup windows: C:\Program Files\rsup

配置文件: config.toml

配置文件格式:

name = "rsup"
version = "0.1.0"
dir = "/opt/rsup"
[web]
port = 8888
static_dir = "/opt/rsup/web"

[pkg]
npm_registry = "https://registry.npmmirror.com"

Structs§

Config
配置文件结构体
PkgConfig
包管理配置结构体
WebConfig
web 配置结构体

Statics§

CONFIG
配置共享全局变量,避免重复读取配置文件