# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "meta_oxide"
version = "0.1.0"
authors = ["Yury Fedoseev <yfedoseev@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Universal metadata extraction library supporting 13 formats (HTML Meta, Open Graph, Twitter Cards, JSON-LD, Microdata, Microformats, RDFa, Dublin Core, Web App Manifest, oEmbed, rel-links, Images, SEO) with 7 language bindings"
readme = "README.md"
keywords = [
    "metadata",
    "parsing",
    "html",
    "web",
    "extraction",
]
categories = [
    "parser-implementations",
    "web-programming",
    "text-processing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/yfedoseev/meta_oxide"

[features]
c-api = []
default = ["python"]
python = ["pyo3"]

[lib]
name = "meta_oxide"
crate-type = [
    "cdylib",
    "rlib",
    "staticlib",
]
path = "src/lib.rs"

[[example]]
name = "before_after_comparison"
path = "examples/before_after_comparison.rs"

[[example]]
name = "macro_demo"
path = "examples/macro_demo.rs"

[dependencies.pyo3]
version = "0.22"
features = ["extension-module"]
optional = true

[dependencies.scraper]
version = "0.20"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "1.0"

[dependencies.url]
version = "2.5"

[dev-dependencies.pyo3]
version = "0.22"
features = ["auto-initialize"]

[build-dependencies.cbindgen]
version = "0.27"

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
