[package]
edition = "2024"
rust-version = "1.88"
name = "charcode"
version = "0.1.4"
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]
alloc = []
big5 = []
cli = [
"std",
"whatwg",
"translit",
]
default = [
"std",
"whatwg",
]
dos = [
"full-byte",
"half-byte",
]
ebcdic = ["full-byte"]
euc-jp = []
euc-kr = []
extras = [
"dos",
"ebcdic",
"mac",
"misc",
"unicode-extras",
]
full-byte = []
gb18030 = []
half-byte = []
iso-2022-cn = ["gb18030"]
iso-2022-jp = []
iso-2022-kr = ["euc-kr"]
mac = ["half-byte"]
misc = ["half-byte"]
serde = ["dep:serde"]
shift-jis = []
single-byte = ["half-byte"]
std = ["alloc"]
translit = []
unicode-extras = []
whatwg = [
"whatwg-aliases",
"single-byte",
"big5",
"euc-jp",
"euc-kr",
"gb18030",
"iso-2022-jp",
"shift-jis",
]
whatwg-aliases = []
[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"
[[bench]]
name = "throughput"
path = "benches/throughput.rs"
harness = false
required-features = ["whatwg"]
[dependencies.serde]
version = "1"
optional = true
default-features = false
[dev-dependencies.serde_json]
version = "1"
[profile.release]
opt-level = 3