boko 0.2.0

Fast ebook conversion library for EPUB and Kindle formats
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"
name = "boko"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast ebook conversion library for EPUB and Kindle formats"
homepage = "https://github.com/zacharydenton/boko"
documentation = "https://docs.rs/boko"
readme = "README.md"
keywords = [
    "ebook",
    "epub",
    "mobi",
    "azw3",
    "kindle",
]
categories = [
    "parsing",
    "encoding",
]
license = "MIT"
repository = "https://github.com/zacharydenton/boko"

[features]
cli = [
    "dep:clap",
    "dep:serde",
    "dep:serde_json",
]
default = ["cli"]
wasm = [
    "wasm-bindgen",
    "console_error_panic_hook",
]

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

[[bin]]
name = "boko"
path = "src/main.rs"
required-features = ["cli"]

[[bin]]
name = "kfx-dump"
path = "src/bin/kfx-dump.rs"
required-features = ["cli"]

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

[[bench]]
name = "conversion"
path = "benches/conversion.rs"
harness = false

[dependencies.base64]
version = "0.22"

[dependencies.bstr]
version = "1.11"
features = ["alloc"]
default-features = false

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.console_error_panic_hook]
version = "0.1"
optional = true

[dependencies.cssparser]
version = "0.36"

[dependencies.encoding_rs]
version = "0.8"

[dependencies.html5ever]
version = "0.38"

[dependencies.ion-rs]
version = "1.0.0-rc.11"
features = ["experimental-reader-writer"]

[dependencies.memchr]
version = "2.7"

[dependencies.percent-encoding]
version = "2.3"

[dependencies.precomputed-hash]
version = "0.1"

[dependencies.quick-xml]
version = "0.39"

[dependencies.selectors]
version = "0.35"

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

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

[dependencies.sha1_smol]
version = "1.0"
features = ["std"]

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

[dependencies.zip]
version = "7.1"
features = ["deflate-flate2"]
default-features = false

[dev-dependencies.criterion]
version = "0.8"

[dev-dependencies.proptest]
version = "1.6"

[dev-dependencies.tempfile]
version = "3.14"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.flate2]
version = "1.1"
features = ["zlib-rs"]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.flate2]
version = "1.1"
features = ["rust_backend"]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"