-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
52 lines (45 loc) · 1.64 KB
/
Cargo.toml
File metadata and controls
52 lines (45 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[package]
name = "hipdf"
version = "0.0.0-development"
edition = "2021"
authors = ["Jorge Soares <jorge@ducflair.com>"]
description = "A high-level PDF manipulation library built on lopdf"
license = "MIT"
repository = "https://github.com/ducflair/hipdf"
keywords = ["pdf", "lopdf", "layers", "ocg", "manipulation"]
categories = ["multimedia", "api-bindings"]
readme = "README.md"
exclude = [
"tests/outputs/",
"tests/assets/",
"node_modules/**/*",
]
[lib]
name = "hipdf"
path = "src/lib.rs"
[dependencies]
image = { version = "0.25", default-features = false, features = ["webp"] }
jpeg-decoder = "0.3.2"
miniz_oxide = "0.8.9"
png = "0.18.0"
ttf-parser = { version = "0.20", features = ["variable-fonts"] }
# Target-specific configuration to ensure correct behavior without consumer-side feature flags
# For non-WASM targets, use lopdf with its default native features
[target.'cfg(not(all(target_arch = "wasm32", target_os = "unknown")))'.dependencies]
lopdf = { version = "0.38.0" }
# For wasm32-unknown-unknown, enable lopdf's wasm_js mode and getrandom's wasm_js support
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
lopdf = { version = "0.38.0", default-features = false, features = ["wasm_js"] }
[dev-dependencies]
png = { version = "0.18.0", features = ["unstable"] }
wasm-bindgen-test = "0.3"
[features]
# No feature flags are required by consumers; behavior is selected automatically by target.
# These are kept empty for backward compatibility so enabling them has no effect.
default = []
wasm_js = []
native = []
# Test configuration
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]