[package]
edition = "2024"
rust-version = "1.88"
name = "charcode"
version = "0.1.0"
build = false
exclude = [
"/tools",
"/.github",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Character encoding conversion implementing the WHATWG Encoding Standard, with no external dependencies."
documentation = "https://docs.rs/charcode"
readme = "README.md"
keywords = [
"encoding",
"charset",
"utf-8",
"unicode",
"conversion",
]
categories = [
"encoding",
"text-processing",
"no-std",
]
license = "MIT"
repository = "https://github.com/KarpelesLab/charcode"
[package.metadata.docs.rs]
all-features = true
[features]
cli = ["std"]
default = ["std"]
serde = ["dep:serde"]
std = []
[lib]
name = "charcode"
path = "src/lib.rs"
[[bin]]
name = "charcode"
path = "src/bin/charcode/main.rs"
required-features = ["cli"]
[[test]]
name = "cli"
path = "tests/cli.rs"
[[test]]
name = "serde"
path = "tests/serde.rs"
[[test]]
name = "spec"
path = "tests/spec.rs"
[dependencies.serde]
version = "1"
optional = true
default-features = false
[dev-dependencies.serde_json]
version = "1"
[profile.release]
opt-level = 3