[package]
edition = "2021"
rust-version = "1.81"
name = "js-string-escape"
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 use as a JavaScript string literal body. A faithful port of the js-string-escape npm package. Zero deps, no_std."
homepage = "https://github.com/trananhtung/js-string-escape"
documentation = "https://docs.rs/js-string-escape"
readme = "README.md"
keywords = [
"escape",
"javascript",
"string",
"literal",
"js",
]
categories = [
"text-processing",
"encoding",
"no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/trananhtung/js-string-escape"
[lib]
name = "js_string_escape"
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"