[package]
edition = "2021"
rust-version = "1.85.0"
name = "rulox_types"
version = "0.6.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Helper types for the rulox crate."
readme = "README.md"
keywords = [
"lox",
"scripting",
"parsing",
]
categories = ["parser-implementations"]
license = "MIT"
repository = "https://github.com/Spartan2909/rulox"
[features]
serde = [
"dep:serde",
"dep:serde_json",
"bytes/serde",
]
[lib]
name = "rulox_types"
path = "src/lib.rs"
[dependencies.bytes]
version = "1"
[dependencies.castaway]
version = "0.2"
[dependencies.fastrand]
version = "2"
[dependencies.pin-project]
version = "1.1.5"
[dependencies.proc-macro2]
version = "1.0"
[dependencies.quote]
version = "1.0"
[dependencies.serde]
version = "1"
features = [
"derive",
"rc",
]
optional = true
[dependencies.serde_json]
version = "1"
optional = true
[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
dbg_macro = "warn"
inline_always = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
option_if_let_else = "allow"
redundant_pub_crate = "allow"
semicolon_inside_block = "warn"
todo = "warn"
undocumented_unsafe_blocks = "forbid"
use_self = "allow"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_op_in_unsafe_fn = "forbid"