# ----------------------------------------------------------------------------- # Metadata Gen - A powerful Rust library for extracting, validating, and processing metadata in YAML, TOML, and JSON formats from any content or data file. # ----------------------------------------------------------------------------- [package] name = "metadata-gen" version = "0.0.1" edition = "2021" rust-version = "1.56.0" license = "MIT OR Apache-2.0" description = """ A powerful Rust library for extracting, validating, and processing metadata in YAML, TOML, and JSON formats from any content or data file. """ homepage = "https://metadata-gen.com/" documentation = "https://doc.metadata-gen.com/metadata_gen/" repository = "https://github.com/sebastienrousseau/metadata-gen" readme = "README.md" build = "build.rs" # ----------------------------------------------------------------------------- # Crate Configuration # ----------------------------------------------------------------------------- categories = [ "command-line-utilities", "data-structures", "text-processing", "parsing", "development-tools" ] keywords = ["metadata", "yaml", "toml", "json", "metadata-gen"] [lib] name = "metadata_gen" path = "src/lib.rs" # ----------------------------------------------------------------------------- # Dependencies # ----------------------------------------------------------------------------- [dependencies] # Dependencies required for building and running the project. anyhow = "1.0" dtt = "0.0.8" quick-xml = "0.36" regex = "1.11" scraper = "0.20" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" serde_yml = "0.0.12" tempfile = "3.13" thiserror = "1.0" time = { version = "0.3", features = ["parsing"] } tokio = { version = "1.40", features = ["full"] } toml = "0.8" yaml-rust2 = "0.9" # ----------------------------------------------------------------------------- # Build Dependencies # ----------------------------------------------------------------------------- [build-dependencies] # Dependencies for build scripts. version_check = "0.9.4" # ----------------------------------------------------------------------------- # Development Dependencies # ----------------------------------------------------------------------------- [dev-dependencies] # Dependencies required for development, testing, and documentation. assert_fs = "1.1" criterion = "0.5" predicates = "3.1" serde = { version = "1.0", features = ["derive"] } # ----------------------------------------------------------------------------- # Examples # ----------------------------------------------------------------------------- [[example]] name = "error_example" path = "examples/error_example.rs" [[example]] name = "lib_example" path = "examples/lib_example.rs" [[example]] name = "metadata_example" path = "examples/metadata_example.rs" [[example]] name = "metatags_example" path = "examples/metatags_example.rs" [[example]] name = "utils_example" path = "examples/utils_example.rs" # ----------------------------------------------------------------------------- # Criterion Benchmark # ----------------------------------------------------------------------------- [[bench]] name = "metadata_benchmark" harness = false [profile.bench] debug = true # ----------------------------------------------------------------------------- # Features # ----------------------------------------------------------------------------- [features] default = [] advanced_parsing = [] # ----------------------------------------------------------------------------- # Release Profile # ----------------------------------------------------------------------------- [profile.release] lto = true codegen-units = 1 panic = 'abort' strip = true # ----------------------------------------------------------------------------- # Documentation Configuration # ----------------------------------------------------------------------------- [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"]