-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
84 lines (66 loc) · 1.93 KB
/
Cargo.toml
File metadata and controls
84 lines (66 loc) · 1.93 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[package]
name = "xmlschema"
version = "0.1.0"
edition = "2021"
authors = ["xmlschema-rs contributors"]
license = "MIT"
description = "A Rust implementation of XML Schema (XSD 1.0 and XSD 1.1) for validation and data conversion"
repository = "https://github.com/ParapluOU/xmlschema-rs"
keywords = ["xml", "xsd", "schema", "validation", "parser"]
categories = ["parser-implementations", "encoding", "data-structures"]
readme = "README.md"
[lib]
name = "xmlschema"
path = "src/lib.rs"
[[bin]]
name = "xmlschema"
path = "src/main.rs"
required-features = ["cli"]
[dependencies]
# XML parsing
quick-xml = "0.31"
roxmltree = "0.19"
# Error handling
thiserror = "1.0"
# Data structures
indexmap = "2.0" # Ordered maps
# Decimal numbers for XSD decimal type
rust_decimal = "1.33"
# Date/time handling
chrono = "0.4"
# URL handling
url = "2.5"
# Regex support
regex = "1.10"
once_cell = "1.19" # For lazy static regex compilation
# Base64 encoding/decoding
base64 = "0.21"
# JSON support for converters
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Optional: CLI support
clap = { version = "4.4", features = ["derive"], optional = true }
lazy_static = "1.5.0"
[dev-dependencies]
# Testing
proptest = "1.4" # Property-based testing
criterion = "0.5" # Benchmarking
pretty_assertions = "1.4" # Better test failure messages
tempfile = "3.8" # Temporary files for tests
# Schema bundles for integration tests
schemas-core = { git = "https://github.com/ParapluOU/schemas-rs.git" }
schemas-dita = { git = "https://github.com/ParapluOU/schemas-rs.git" }
schemas-dita-lce = { git = "https://github.com/ParapluOU/schemas-rs.git" }
schemas-niso-sts = { git = "https://github.com/ParapluOU/schemas-rs.git" }
[features]
default = []
cli = ["dep:clap"]
full = ["cli"]
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
[profile.bench]
inherits = "release"
# This prevents cargo from trying to include this in the parent workspace
[workspace]