Merge pull request #1370 from dotCooCoo/chore/craft-ods-test-support-gate

craft-ods: build the testing module only for tests and the test-support feature
This commit is contained in:
BFlat
2026-11-26 10:07:34 +07:00
committed by GitHub
4 changed files with 13 additions and 0 deletions
Generated
+1
View File
@@ -3456,6 +3456,7 @@ name = "craft-ods"
version = "0.1.0"
dependencies = [
"craft-odf",
"craft-ods",
"craft-sheet",
"craft-xml",
"thiserror 2.0.21",
+5
View File
@@ -10,6 +10,10 @@ repository.workspace = true
[lints]
workspace = true
[features]
# `testing`: small `.ods` packages built in code, for the tests of crates that read them.
test-support = []
[dependencies]
craft-odf = { workspace = true }
craft-sheet = { workspace = true }
@@ -18,3 +22,4 @@ thiserror = { workspace = true }
[dev-dependencies]
craft-odf = { workspace = true }
craft-ods = { path = ".", features = ["test-support"] }
+6
View File
@@ -41,3 +41,9 @@ every cell after that point and sets `Workbook::text_truncated`, so the caller c
of failing. Rows and cells after the cell that passes it are not read. The one-cell limit still
applies to every cell read, that cell included; the cell and merged-range limits count the cells
kept.
## Features
- `test-support` enables `testing`, which builds small `.ods` packages in code (`spreadsheet`,
`content`, `package`) for the tests of crates that read spreadsheets. It is not a general
spreadsheet writer.
+1
View File
@@ -30,6 +30,7 @@
mod content;
mod model;
#[cfg(any(test, feature = "test-support"))]
#[doc(hidden)]
pub mod testing;