tanzhenhui_code_lib

Crates.iotanzhenhui_code_lib
lib.rstanzhenhui_code_lib
version0.6.1
sourcesrc
created_at2024-09-11 03:03:41.414862
updated_at2024-09-23 09:26:13.347584
descriptiontoolbox for my own
homepage
repository
max_upload_size
id1371554
size16,950
(fantasyhome)

documentation

README

ini_helper

implement example:

use tanzhenhui_code_lib::generate_get_ini_info;
generate_get_ini_info!(bz_dir, input_dir, output_dir, password);

this will read a file named "config.ini" in the same path of your program. in this example,the file will be like this:

config.ini

[common]

  • bz_dir = D:\tool\Bandizip\bz.exe
  • input_dir = D:\BaiduNetdiskDownload\
  • output_dir = D:\BaiduNetdiskDownload\output
  • password = 这是一个中文密码

you can get the info in the other place of your code like this:

use_example:

        let IniInfo {
            bz_dir,
            input_dir,
            output_dir,
            password,
        } = get_ini_info();

and you get four String variable in your code

Commit count: 0

cargo fmt