mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-27 13:17:41 +00:00
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:
Generated
+1
@@ -3456,6 +3456,7 @@ name = "craft-ods"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"craft-odf",
|
||||
"craft-ods",
|
||||
"craft-sheet",
|
||||
"craft-xml",
|
||||
"thiserror 2.0.21",
|
||||
|
||||
@@ -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"] }
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
|
||||
mod content;
|
||||
mod model;
|
||||
#[cfg(any(test, feature = "test-support"))]
|
||||
#[doc(hidden)]
|
||||
pub mod testing;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user