csv2xlsx-line

Crates.iocsv2xlsx-line
lib.rscsv2xlsx-line
version0.1.2
created_at2025-02-11 17:52:53.01857+00
updated_at2025-06-20 16:32:17.208117+00
descriptionA rust library to convert csv to multiple xlsx files
homepagehttps://github.com/Zcb991/csv2xlsx-line
repositoryhttps://github.com/Zcb991/csv2xlsx-line
max_upload_size
id1551735
size40,866
(Zcb991)

documentation

README

csv2xlsx-line

A rust library to convert csv to multiple xlsx files

usage

1、add dependency

[dependencies]
csv2xlsx = "0.1.0"  # 或者使用最新版本

2、use

use std::error::Error;
use csv2xlsx_line::{read_columns_headers, convert_from_path};
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;


fn main() -> Result<(), Box<dyn Error>> {

    let file = "data.csv";
    let flag = Arc::new(AtomicBool::new(false));
    convert_from_path(file, &flag);

    Ok(())
}

dev

upload to crates.io

  1. update version on cargo.toml
  2. git operator

like

git add .

git commit -m "aaa"

git push

...

  1. cargo package --allow-dirty
  2. cargo publish

test

cd src
cargo test
Commit count: 4

cargo fmt