html2pdf-api 0.3.1

Thread-safe headless browser pool for high-performance HTML to PDF conversion with native Rust web framework integration.
Documentation
# 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 = "2024"
rust-version = "1.85"
name = "html2pdf-api"
version = "0.3.1"
authors = ["lpfy <lpfy@msn.com>"]
build = false
exclude = [".github/*"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Thread-safe headless browser pool for high-performance HTML to PDF conversion with native Rust web framework integration."
homepage = "https://github.com/lpfy/html2pdf-api"
documentation = "https://docs.rs/html2pdf-api"
readme = "README.md"
keywords = [
    "browser",
    "chrome",
    "headless",
    "pool",
    "automation",
]
categories = [
    "web-programming",
    "concurrency",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/lpfy/html2pdf-api"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
actix-integration = [
    "dep:actix-web",
    "dep:serde",
    "dep:serde_json",
    "env-config",
]
axum-integration = [
    "dep:axum",
    "dep:tower",
    "dep:serde",
    "dep:serde_json",
    "env-config",
]
default = ["env-config"]
env-config = ["dep:dotenvy"]
rocket-integration = [
    "dep:rocket",
    "dep:serde",
    "dep:serde_json",
    "env-config",
]
test-utils = []

[lib]
name = "html2pdf_api"
path = "src/lib.rs"

[[example]]
name = "actix_web_example"
path = "examples/actix_web_example.rs"
required-features = ["actix-integration"]

[[example]]
name = "axum_example"
path = "examples/axum_example.rs"
required-features = ["axum-integration"]

[[example]]
name = "rocket_example"
path = "examples/rocket_example.rs"
required-features = ["rocket-integration"]

[[test]]
name = "concurrent_tests"
path = "tests/concurrent_tests.rs"

[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"

[dependencies.actix-web]
version = "4"
optional = true

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.dotenvy]
version = "0.15"
optional = true

[dependencies.headless_chrome]
version = "1"
features = ["fetch"]

[dependencies.log]
version = "0.4"

[dependencies.rocket]
version = "0.5"
features = ["json"]
optional = true

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

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "sync",
    "time",
    "macros",
]

[dependencies.tower]
version = "0.5"
optional = true

[dependencies.url]
version = "2"

[dependencies.urlencoding]
version = "2"

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[dev-dependencies.tokio-test]
version = "0.4"

[dev-dependencies.uuid]
version = "1"
features = ["v4"]