[package]
edition = "2024"
rust-version = "1.93.1"
name = "fastring"
version = "0.0.0"
authors = ["Hantong Chen <cxwdyx620@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast string utilities"
readme = "README.md"
keywords = [
"string",
"arc",
]
categories = [
"no-std",
"encoding",
]
license = "MIT OR Apache-2.0"
repository = "https://codeberg.org/Hanyu/fastring"
[package.metadata.docs.rs]
features = [
"std",
"nightly",
"serde",
]
[features]
default = []
nightly = []
serde = ["dep:serde"]
std = []
[lib]
name = "fastring"
path = "src/lib.rs"
[dependencies.constcat]
version = "0.6.1"
[dependencies.serde]
version = "1.0"
optional = true
default-features = false
[dependencies.wrapper-lite]
version = "0.4.0"
[dev-dependencies.serde_test]
version = "1.0"
default-features = false
[target."cfg(loom)".dev-dependencies.loom]
version = "0.7.2"
[lints.clippy]
allow_attributes_without_reason = "warn"
assertions_on_result_states = "warn"
assigning_clones = "warn"
bool_to_int_with_if = "warn"
cloned_instead_of_copied = "warn"
cognitive_complexity = "warn"
collection_is_never_read = "warn"
create_dir = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
default_trait_access = "warn"
disallowed_script_idents = "deny"
doc_link_with_quotes = "warn"
doc_markdown = "warn"
else_if_without_else = "deny"
enum_glob_use = "warn"
exhaustive_enums = "warn"
exhaustive_structs = "warn"
filetype_is_file = "warn"
inefficient_to_string = "warn"
mem_forget = "warn"
missing_panics_doc = "warn"
mod_module_files = "deny"
multiple_inherent_impl = "warn"
must_use_candidate = "allow"
mutex_atomic = "warn"
mutex_integer = "warn"
needless_continue = "warn"
panic = "warn"
significant_drop_in_scrutinee = "warn"
string_slice = "warn"
todo = "warn"
unimplemented = "warn"
unreachable = "warn"
wildcard_dependencies = "deny"
wildcard_imports = "warn"
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "deny"
unexpected_cfgs = "allow"
unknown_lints = "allow"
unreachable_pub = "warn"
unsafe_code = "warn"
[profile.dev]
debug = "line-tables-only"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
incremental = false
strip = true