6 个版本 (重大更改)
0.5.0 | 2021年4月25日 |
---|---|
0.4.0 | 2021年4月10日 |
0.3.0 | 2021年4月9日 |
0.2.0 | 2021年4月8日 |
0.0.0 | 2021年4月4日 |
#2554 in 解析器实现
53KB
1.5K SLoC
mule
强健(且灵活)的 CSV、TSV 或其他分隔符分隔数据集的列数据集解析器
用法
use mule::{read_file, Result};
#[tokio::main]
pub async fn main() -> Result<()> {
let file_path = "datasets/sales-10.csv";
let dataset = read_file(file_path).await?;
println!("Got dataset: {:#?}", dataset);
Ok(())
}
其他示例可在示例目录中找到。
依赖
~4–6MB
~103K SLoC