ini_lib

Crates.ioini_lib
lib.rsini_lib
version0.1.4
sourcesrc
created_at2022-11-07 10:21:15.009643
updated_at2023-02-23 12:54:27.410568
description一个简单解析ini的库,允许重名[Section]
homepagehttps://github.com/Rehtt/ini_lib_rust
repositoryhttps://github.com/Rehtt/ini_lib_rust
max_upload_size
id707146
size19,256
(Rehtt)

documentation

https://docs.rs/ini_lib

README

一个允许重名 [Section] 解析ini的简单库

use ini_lib::ini_str;
let a = "[Interface]
Address = 10.1.1.2/24
PrivateKey = keykeykeykey
ListenPort = 51820
DNS = 8.8.8.8
[Peer]
PublicKey = keykeykeykeykeykeykeykey
Endpoint = 1.1.1.1:51820
AllowedIPs = 10.1.1.5/32
[Peer]
PublicKey = keykeykeykeykeykeykeykeykeykeykeykey
PresharedKey = keykeykeykeykeykeykeykeykeykeykeykeykeykeykeykey
Endpoint = 2.2.2.2:51820
AllowedIPs = 10.13.13.0/24
PersistentKeepalive = 25";
println!("{:#?}",ini_str!(a));
 use ini_lib::ini_file;
 println!("{:#?}",ini_file!("test.ini"));

Record

0.1.4 fix

0.1.3 fix

0.1.2 fix

0.1.1 fix

0.1.0 init

Commit count: 8

cargo fmt