[package]
edition = "2024"
name = "boko"
version = "0.4.0"
build = false
exclude = [
"/tests/fixtures",
"/fuzz",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast native ebook converter for EPUB, KFX, AZW3, and MOBI — the only KFX writer that needs no Kindle Previewer"
homepage = "https://github.com/zacharydenton/boko"
documentation = "https://docs.rs/boko"
readme = "README.md"
keywords = [
"ebook",
"epub",
"kfx",
"azw3",
"kindle",
]
categories = [
"parsing",
"encoding",
]
license = "GPL-3.0-or-later"
repository = "https://github.com/zacharydenton/boko"
[features]
cli = [
"dep:clap",
"dep:serde",
"dep:serde_json",
"dep:ion-rs",
]
default = [
"cli",
"parallel",
]
parallel = ["dep:rayon"]
wasm = [
"wasm-bindgen",
"console_error_panic_hook",
]
[lib]
name = "boko"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[bin]]
name = "boko"
path = "src/bin/boko/main.rs"
required-features = ["cli"]
[[example]]
name = "build_annotated_kfx_fixture"
path = "examples/build_annotated_kfx_fixture.rs"
[[example]]
name = "profile_convert"
path = "examples/profile_convert.rs"
[[test]]
name = "azw3_large_book"
path = "tests/azw3_large_book.rs"
[[test]]
name = "azw3_roundtrip"
path = "tests/azw3_roundtrip.rs"
[[test]]
name = "cascade_golden"
path = "tests/cascade_golden.rs"
[[test]]
name = "corpus"
path = "tests/corpus.rs"
[[test]]
name = "epub3_nav_toc"
path = "tests/epub3_nav_toc.rs"
[[test]]
name = "epub_exports_fonts_and_toc"
path = "tests/epub_exports_fonts_and_toc.rs"
[[test]]
name = "epub_href_decoding"
path = "tests/epub_href_decoding.rs"
[[test]]
name = "error_classification"
path = "tests/error_classification.rs"
[[test]]
name = "export_validity"
path = "tests/export_validity.rs"
[[test]]
name = "kfx_annotated_metadata"
path = "tests/kfx_annotated_metadata.rs"
[[test]]
name = "kfx_dump_golden"
path = "tests/kfx_dump_golden.rs"
[[test]]
name = "kfx_font_extraction"
path = "tests/kfx_font_extraction.rs"
[[test]]
name = "kfx_reproducible"
path = "tests/kfx_reproducible.rs"
[[test]]
name = "kfx_table_roundtrip"
path = "tests/kfx_table_roundtrip.rs"
[[test]]
name = "link_resolution"
path = "tests/link_resolution.rs"
[[test]]
name = "markdown_pipeline"
path = "tests/markdown_pipeline.rs"
[[test]]
name = "normalized_export"
path = "tests/normalized_export.rs"
[[test]]
name = "parser_crash_corpus"
path = "tests/parser_crash_corpus.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.39"
[dependencies.ion-rs]
version = "1.0.0-rc.11"
features = ["experimental-reader-writer"]
optional = true
[dependencies.memchr]
version = "2.7"
[dependencies.percent-encoding]
version = "2.3"
[dependencies.precomputed-hash]
version = "0.1"
[dependencies.quick-xml]
version = "0.39"
[dependencies.rustc-hash]
version = "2.1"
[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.smallvec]
version = "1.15"
[dependencies.thiserror]
version = "2"
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dependencies.xml5ever]
version = "0.39.0"
[dependencies.zip]
version = "8.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(not(target_arch = "wasm32"))'.dependencies.rayon]
version = "1.10"
optional = true
[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"
[profile.dist]
lto = "thin"
inherits = "release"
[profile.release]
lto = "thin"
codegen-units = 1
overflow-checks = true