commit debc15ea196dabfeda7f1a3d9ce33a27b1410021
parent 110b1b5dab274c003e1636da34959c81c76041cc
Author: Erik Loualiche <eloualic@umn.edu>
Date: Fri, 13 Mar 2026 16:21:12 -0500
refactor: flatten project structure and optimize release binary
Move Cargo project from xlcat/ subdirectory to repo root for
GitHub release. Add release profile: strip, LTO, codegen-units=1,
panic=abort, opt-level=z. Binary size: 17MB → 4.1MB.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Diffstat:
12 files changed, 25 insertions(+), 17 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -0,0 +1,2 @@
+/target
+.claude/
diff --git a/xlcat/Cargo.lock b/Cargo.lock
diff --git a/Cargo.toml b/Cargo.toml
@@ -0,0 +1,23 @@
+[package]
+name = "xlcat"
+version = "0.1.0"
+edition = "2024"
+
+[dependencies]
+calamine = "0.26"
+polars = { version = "0.46", features = ["dtype-date", "dtype-datetime", "dtype-duration", "csv"] }
+clap = { version = "4", features = ["derive"] }
+anyhow = "1"
+
+[profile.release]
+strip = true
+lto = true
+codegen-units = 1
+panic = "abort"
+opt-level = "z"
+
+[dev-dependencies]
+rust_xlsxwriter = "0.82"
+assert_cmd = "2"
+predicates = "3"
+tempfile = "3"
diff --git a/xlcat/src/formatter.rs b/src/formatter.rs
diff --git a/xlcat/src/main.rs b/src/main.rs
diff --git a/xlcat/src/metadata.rs b/src/metadata.rs
diff --git a/xlcat/src/reader.rs b/src/reader.rs
diff --git a/xlcat/tests/common/mod.rs b/tests/common/mod.rs
diff --git a/xlcat/tests/test_integration.rs b/tests/test_integration.rs
diff --git a/xlcat/tests/test_metadata.rs b/tests/test_metadata.rs
diff --git a/xlcat/.gitignore b/xlcat/.gitignore
@@ -1 +0,0 @@
-/target
diff --git a/xlcat/Cargo.toml b/xlcat/Cargo.toml
@@ -1,16 +0,0 @@
-[package]
-name = "xlcat"
-version = "0.1.0"
-edition = "2024"
-
-[dependencies]
-calamine = "0.26"
-polars = { version = "0.46", features = ["dtype-date", "dtype-datetime", "dtype-duration", "csv"] }
-clap = { version = "4", features = ["derive"] }
-anyhow = "1"
-
-[dev-dependencies]
-rust_xlsxwriter = "0.82"
-assert_cmd = "2"
-predicates = "3"
-tempfile = "3"