rama-utils 0.3.0

utilities crate for rama
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.96.0"
name = "rama-utils"
version = "0.3.0"
authors = ["Glen De Cauwsemaecker <glen@plabayo.tech>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "utilities crate for rama"
readme = "README.md"
keywords = ["rama"]
categories = [
    "asynchronous",
    "network-programming",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/plabayo/rama"

[package.metadata.cargo-public-api-crates]
allowed = []

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]
targets = [
    "x86_64-unknown-linux-gnu",
    "x86_64-pc-windows-msvc",
    "x86_64-apple-darwin",
    "aarch64-apple-ios",
    "aarch64-linux-android",
]

[features]
default = ["std"]
std = [
    "rama-macros/std",
    "smallvec/write",
    "smol_str/std",
    "dep:tokio",
    "serde/std",
    "dep:parking_lot",
    "dep:regex",
    "dep:wildcard",
    "memchr/std",
    "tracing/std",
]

[lib]
name = "rama_utils"
path = "src/lib.rs"

[[test]]
name = "arcstr"
path = "tests/arcstr.rs"

[[test]]
name = "include_dir_no_compile"
path = "tests/include_dir_no_compile.rs"

[[test]]
name = "substr"
path = "tests/substr.rs"

[dependencies.const_format]
version = "0.2"

[dependencies.memchr]
version = "2.8"
default-features = false

[dependencies.parking_lot]
version = "0.12"
optional = true

[dependencies.pin-project-lite]
version = "0.2"

[dependencies.rama-macros]
version = "0.3.0"
default-features = false

[dependencies.regex]
version = "1.12"
features = [
    "perf",
    "unicode",
]
optional = true
default-features = false

[dependencies.serde]
version = "1.0"
features = [
    "alloc",
    "derive",
]
default-features = false

[dependencies.smallvec]
version = "1.15"
features = [
    "serde",
    "const_generics",
    "const_new",
]
default-features = false

[dependencies.smol_str]
version = "0.3"
features = ["serde"]
default-features = false

[dependencies.tokio]
version = "1.52"
features = [
    "fs",
    "time",
    "macros",
    "sync",
]
optional = true

[dependencies.tracing]
version = "0.1"
default-features = false

[dependencies.wildcard]
version = "0.3"
optional = true

[dev-dependencies.ahash]
version = "0.8"

[dev-dependencies.quickcheck]
version = "1.1"

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.serde_test]
version = "1"

[dev-dependencies.tempfile]
version = "3.27"

[dev-dependencies.tokio]
version = "1.52"
features = [
    "fs",
    "io-util",
    "time",
    "macros",
    "sync",
    "rt-multi-thread",
]

[dev-dependencies.trybuild]
version = "1.0"

[target."cfg(loom)".dev-dependencies.loom]
version = "0.7"

[lints.clippy]
allow_attributes = "warn"
assertions_on_result_states = "warn"
await_holding_lock = "warn"
await_holding_refcell_ref = "warn"
dbg_macro = "deny"
debug_assert_with_mut_call = "warn"
empty_enums = "warn"
enum_glob_use = "warn"
equatable_if_let = "warn"
exit = "warn"
expect_used = "deny"
expl_impl_clone_on_copy = "warn"
fallible_impl_from = "warn"
filter_map_next = "warn"
float_cmp = "warn"
float_cmp_const = "warn"
fn_params_excessive_bools = "warn"
get_unwrap = "deny"
if_let_mutex = "warn"
implicit_clone = "warn"
imprecise_flops = "warn"
inefficient_to_string = "warn"
infallible_try_from = "warn"
invalid_upcast_comparisons = "warn"
iter_not_returning_iterator = "warn"
large_futures = "warn"
let_underscore_future = "warn"
let_underscore_must_use = "warn"
linkedlist = "warn"
lossy_float_literal = "warn"
macro_use_imports = "warn"
manual_let_else = "warn"
map_err_ignore = "warn"
match_same_arms = "warn"
match_wildcard_for_single_variants = "warn"
mem_forget = "warn"
multiple_unsafe_ops_per_block = "warn"
needless_borrow = "warn"
needless_continue = "warn"
needless_pass_by_ref_mut = "warn"
needless_pass_by_value = "warn"
option_option = "warn"
panic = "deny"
print_stdout = "deny"
rc_mutex = "warn"
redundant_clone = "warn"
ref_option = "warn"
rest_pat_in_fully_bound_structs = "warn"
return_self_not_must_use = "warn"
single_match_else = "warn"
str_to_string = "warn"
suboptimal_flops = "warn"
todo = "deny"
trivially_copy_pass_by_ref = "warn"
type_complexity = "allow"
unchecked_time_subtraction = "deny"
unimplemented = "deny"
uninlined_format_args = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unnested_or_patterns = "warn"
unreachable = "deny"
unused_result_ok = "warn"
unused_self = "warn"
unwrap_used = "deny"
use_self = "warn"
verbose_file_reads = "warn"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.rust]
unreachable_pub = "deny"
unused_imports = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(fuzzing)",
    "cfg(loom)",
]

[lints.rustdoc]
broken_intra_doc_links = "deny"