add simple xml_parser

This commit is contained in:
light-ly 2024-11-07 17:47:54 +08:00
parent 3a4bd0c7e4
commit 4affc95bfe
3 changed files with 19 additions and 1 deletions

16
Cargo.lock generated
View File

@ -349,6 +349,7 @@ dependencies = [
"tower-lsp", "tower-lsp",
"vhdl_lang", "vhdl_lang",
"walkdir", "walkdir",
"xml",
] ]
[[package]] [[package]]
@ -2002,3 +2003,18 @@ checksum = "36c1fec1a2bb5866f07c25f68c26e565c4c200aebb96d7e55710c19d3e8ac49b"
dependencies = [ dependencies = [
"memchr", "memchr",
] ]
[[package]]
name = "xml"
version = "0.8.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ede1c99c55b4b3ad0349018ef0eccbe954ce9c342334410707ee87177fcf2ab4"
dependencies = [
"xml-rs",
]
[[package]]
name = "xml-rs"
version = "0.8.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "af310deaae937e48a26602b730250b4949e125f468f11e6990be3e5304ddd96f"

View File

@ -25,6 +25,7 @@ regex = "1.9.1"
structopt = "0.3.26" structopt = "0.3.26"
strum = "0.26.1" strum = "0.26.1"
strum_macros = "0.26.1" strum_macros = "0.26.1"
xml = "0.8.16"
[dev-dependencies] [dev-dependencies]
tempdir = "0.3.7" tempdir = "0.3.7"

View File

@ -5,3 +5,4 @@ pub mod sv_parser;
pub mod vhdl_parser; pub mod vhdl_parser;
pub mod cache_storage; pub mod cache_storage;
pub mod xml_parser;