[package]
edition = "2021"
name = "string-offsets"
version = "0.2.1"
authors = ["The blackbird team <support@github.com>"]
build = false
exclude = ["/js"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Converts string offsets between UTF-8 bytes, UTF-16 code units, Unicode code points, and lines."
readme = "README.md"
keywords = [
"unicode",
"positions",
"utf16",
"characters",
"lines",
]
categories = [
"algorithms",
"data-structures",
"text-processing",
"development-tools::ffi",
]
license = "MIT"
repository = "https://github.com/github/rust-gems"
[features]
wasm = ["wasm-bindgen"]
[lib]
name = "string_offsets"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[bench]]
name = "performance"
path = "benchmarks/performance.rs"
harness = false
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.rand]
version = "0.10"
[dev-dependencies.rand_chacha]
version = "0.10"