[dependencies.cfg-if]
version = "1"
[dependencies.widestring]
default-features = false
features = ["alloc"]
optional = true
version = "1"
[dev-dependencies.lexopt]
version = "0.3"
[[example]]
name = "decode_str"
path = "examples/decode_str.rs"
[[example]]
name = "mini_iconv"
path = "examples/mini_iconv.rs"
[features]
default = ["win32", "web-encoding", "libc-iconv", "fallback-libiconv"]
fallback-libiconv = []
libc-iconv = []
libiconv = []
wasm-nonstandard-allow-legacy-encoding = []
web-encoding = ["widestring", "web-sys"]
win32 = ["widestring", "windows-sys"]
[lib]
name = "iconv_native"
path = "src/lib.rs"
[package]
authors = ["bdbai <bdbaiapp@163.com>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = "build.rs"
categories = ["text-processing", "encoding", "internationalization"]
description = "A lightweight text encoding converter based on platform native API or libiconv"
edition = "2021"
exclude = [".github", ".vscode", "rustfmt.toml"]
keywords = ["encoding", "unicode", "wasm", "iconv"]
license = "MIT OR Apache-2.0"
name = "iconv-native"
readme = "README.md"
repository = "https://github.com/bdbai/iconv-native-rs"
rust-version = "1.80"
version = "0.1.0"
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
features = ["TextEncoder", "TextDecoder", "TextDecoderOptions"]
optional = true
version = "0.3"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3"
[target.'cfg(target_env = "msvc")'.build-dependencies.vcpkg]
version = "0.2"
[target."cfg(windows)".dependencies.windows-sys]
features = ["Win32_Globalization"]
optional = true
version = "0.59"
[[test]]
name = "convert"
path = "tests/convert.rs"
[[test]]
name = "decode"
path = "tests/decode.rs"
[[test]]
name = "strings"
path = "tests/strings.rs"