[package]
edition = "2021"
rust-version = "1.81"
name = "jsesc"
version = "0.1.0"
authors = ["trananhtung"]
build = false
exclude = [
"/.github",
"/.gitignore",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Escape a string for safe embedding in JavaScript or JSON source. A faithful port of the jsesc npm package's string escaping. Zero deps, no_std."
homepage = "https://github.com/trananhtung/jsesc"
documentation = "https://docs.rs/jsesc"
readme = "README.md"
keywords = [
"escape",
"javascript",
"json",
"string",
"unicode",
]
categories = [
"text-processing",
"encoding",
"no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/trananhtung/jsesc"
[lib]
name = "jsesc"
path = "src/lib.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[dependencies]
[lints.clippy]
all = "warn"
pedantic = "warn"
[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"