budouy 0.2.1

Rust port of BudouX with optional HTML processing and CLI
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.88"
name = "budouy"
version = "0.2.1"
build = false
include = [
    "Cargo.toml",
    "README.md",
    "LICENSE",
    "src/**",
    "examples/**",
    "tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust port of BudouX with optional HTML processing and CLI"
readme = "README.md"
keywords = [
    "budoux",
    "text",
    "segmentation",
    "linebreak",
    "nlp",
]
categories = [
    "text-processing",
    "internationalization",
    "command-line-utilities",
    "no-std",
]
license = "Apache-2.0"
repository = "https://github.com/neodyland/budouy"

[package.metadata.docs.rs]
features = [
    "std",
    "html",
    "vendored-models",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
alloc = [
    "dep:hashbrown",
    "dep:spin",
]
cli = [
    "std",
    "dep:seahorse",
    "vendored-models",
]
default = [
    "cli",
    "std",
]
html = [
    "std",
    "dep:html5ever",
    "dep:kuchikikiki",
]
std = [
    "serde/std",
    "serde_json/std",
    "thiserror/std",
]
vendored-models = []
wasm = [
    "alloc",
    "vendored-models",
    "dep:wasm-bindgen",
]

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

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

[[example]]
name = "html_parse"
path = "examples/html_parse.rs"
required-features = [
    "html",
    "vendored-models",
]

[[example]]
name = "japanese_split"
path = "examples/japanese_split.rs"
required-features = ["vendored-models"]

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

[dependencies.hashbrown]
version = "0.16"
features = [
    "default-hasher",
    "serde",
]
optional = true
default-features = false

[dependencies.html5ever]
version = "0.38.0"
optional = true

[dependencies.kuchikikiki]
version = "0.9.2"
optional = true

[dependencies.seahorse]
version = "2"
optional = true

[dependencies.serde]
version = "1"
features = [
    "derive",
    "alloc",
]
default-features = false

[dependencies.serde_json]
version = "1"
features = ["alloc"]
default-features = false

[dependencies.spin]
version = "0.10"
features = [
    "once",
    "lazy",
]
optional = true
default-features = false

[dependencies.thiserror]
version = "2"
default-features = false

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

[lints.clippy]
absolute_paths = "warn"
allow_attributes = "deny"
exhaustive_enums = "warn"
exhaustive_structs = "warn"
self_only_used_in_recursion = "allow"
unwrap_used = "deny"

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"