Rust 的 CSV 解析器,支持 Serde。

时间:2021-06-28 18:12:00
【文件属性】:
文件名称:Rust 的 CSV 解析器,支持 Serde。
文件大小:940KB
文件格式:ZIP
更新时间:2021-06-28 18:12:00
rust library csv rust-library 文件快速灵活的 Rust CSV 读取器和写入器,支持 Serde。根据 MIT 或UNLICENSE获得双重许可。文档https://docs.rs/csv如果您是 Rust 的新手,本教程是一个很好的起点。用法将此添加到您的Cargo.toml :[dependencies ]csv =" 1.1"例子此示例显示如何从标准输入读取 CSV 数据并将每条记录打印到标准输出。食谱中有更多示例。use std:: error:: Error;use std:: io;use std:: process;fnexample () ->Result <(),Box > {// Build the CSV reader and iterate over each record.letmut rdr= csv:: Reader::from_reader (io::stdin ());for resultin rdr.records () {// The iterator yields Result, so we check the/
【文件预览】:
rust-csv-master
----.travis.yml(129B)
----LICENSE-MIT(1KB)
----rustfmt.toml(44B)
----ISSUE_TEMPLATE.md(1KB)
----tests()
--------tests.rs(15KB)
----ci()
--------check-copy(879B)
--------script.sh(613B)
----appveyor.yml(659B)
----src()
--------error.rs(11KB)
--------reader.rs(88KB)
--------byte_record.rs(33KB)
--------deserializer.rs(34KB)
--------serializer.rs(36KB)
--------tutorial.rs(84KB)
--------string_record.rs(25KB)
--------cookbook.rs(7KB)
--------lib.rs(10KB)
--------writer.rs(46KB)
----Cargo.toml(1KB)
----benches()
--------bench.rs(14KB)
----csv-core()
--------LICENSE-MIT(1KB)
--------src()
--------Cargo.toml(846B)
--------benches()
--------UNLICENSE(1KB)
--------README.md(3KB)
--------COPYING(126B)
----examples()
--------tutorial-read-delimiter-01.rs(562B)
--------tutorial-perf-alloc-02.rs(561B)
--------tutorial-read-headers-02.rs(748B)
--------tutorial-error-02.rs(524B)
--------tutorial-read-serde-03.rs(549B)
--------tutorial-pipeline-search-01.rs(1KB)
--------tutorial-perf-alloc-03.rs(584B)
--------tutorial-pipeline-pop-01.rs(2KB)
--------tutorial-read-serde-invalid-02.rs(657B)
--------tutorial-error-01.rs(211B)
--------tutorial-perf-core-01.rs(3KB)
--------tutorial-read-01.rs(836B)
--------tutorial-pipeline-search-02.rs(905B)
--------tutorial-write-serde-02.rs(1KB)
--------data()
--------tutorial-read-serde-04.rs(989B)
--------tutorial-write-02.rs(1KB)
--------tutorial-write-serde-01.rs(1KB)
--------tutorial-error-04.rs(512B)
--------cookbook-read-basic.rs(565B)
--------tutorial-perf-serde-02.rs(976B)
--------cookbook-read-no-headers.rs(447B)
--------tutorial-setup-01.rs(602B)
--------cookbook-read-colon.rs(444B)
--------cookbook-read-serde.rs(811B)
--------tutorial-write-01.rs(997B)
--------tutorial-perf-serde-03.rs(990B)
--------tutorial-read-headers-01.rs(416B)
--------tutorial-read-serde-invalid-01.rs(603B)
--------tutorial-read-serde-01.rs(1KB)
--------tutorial-perf-alloc-01.rs(554B)
--------cookbook-write-basic.rs(645B)
--------tutorial-error-03.rs(642B)
--------cookbook-write-serde.rs(963B)
--------tutorial-perf-serde-01.rs(835B)
--------tutorial-read-serde-02.rs(729B)
--------tutorial-write-delimiter-01.rs(808B)
----UNLICENSE(1KB)
----.gitignore(88B)
----csv-index()
--------LICENSE-MIT(1KB)
--------src()
--------Cargo.toml(709B)
--------UNLICENSE(1KB)
--------README.md(2KB)
--------COPYING(126B)
----README.md(3KB)
----scripts()
--------copy-examples(1KB)
----COPYING(126B)

网友评论