| 1 | [package] |
| 2 | name = "oversight-formats" |
| 3 | version.workspace = true |
| 4 | edition.workspace = true |
| 5 | rust-version.workspace = true |
| 6 | license.workspace = true |
| 7 | description = "Format-specific watermark adapters for Oversight (text, PDF, DOCX, image)" |
| 8 | |
| 9 | [dependencies] |
| 10 | oversight-watermark = { path = "../oversight-watermark" } |
| 11 | oversight-semantic = { path = "../oversight-semantic" } |
| 12 | |
| 13 | sha2.workspace = true |
| 14 | thiserror.workspace = true |
| 15 | hex.workspace = true |
| 16 | |
| 17 | lopdf = { version = "0.34", optional = true } |
| 18 | |
| 19 | zip = { version = "2.3.0", default-features = false, features = ["deflate"], optional = true } |
| 20 | quick-xml = { version = "0.36", features = ["serialize"], optional = true } |
| 21 | |
| 22 | image = { version = "0.25", default-features = false, features = ["png", "jpeg"], optional = true } |
| 23 | rustdct = { version = "0.7.1", optional = true } |
| 24 | |
| 25 | [features] |
| 26 | default = ["text", "pdf", "docx", "image_fmt"] |
| 27 | text = [] |
| 28 | pdf = ["dep:lopdf"] |
| 29 | docx = ["dep:zip", "dep:quick-xml"] |
| 30 | image_fmt = ["dep:image", "dep:rustdct"] |
| 31 | |
| 32 | [dev-dependencies] |