litter 0.20220716.0-WIP-DO-NOT-USE-OR-YOU-WILL-BE-FIRED-AND-I-WILL-BE-FIRED-OH-NO

🗑️ litter makes your literals mutable with smart pointers into your source code
[package]
description = "🗑️ litter makes your literals mutable with smart pointers into your source code"
edition = "2021"
license = "MIT OR Apache-2.0"
name = "litter"
version = "0.20220716.0-WIP-DO-NOT-USE-OR-YOU-WILL-BE-FIRED-AND-I-WILL-BE-FIRED-OH-NO"

[dependencies]
bstr = "0.2.17"
derive_more = "0.99.17"
document-features = "0.2.1"
log = "0.4.17"
miette = "5.1.1"
once_cell = "1.13.0"
parking_lot = { version = "0.12.1", features = ["send_guard"] }
postcard = { version = "1.0.0", optional = true, default-features = false }
serde = { version = "1.0.139", optional = true, default-features = false }
serde_json = { version = "1.0.82", optional = true }
serde_yaml = { version = "0.8.25", optional = true }
toml = { version = "0.5.9", optional = true }

[dev-dependencies]
serde_derive = "1.0.139"

[package.metadata.docs.rs]
all-features = true
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples=all"]

[features]
#! ## Cargo Features

#- We omit the serialization features by default.
default = ["mut", "write", "panic"]

## Support for writing literal mutations back to their source file.
write = ["mut"]

## Support for "mutating" literals.
mut = ["std"]

## Support (de)serializing string/byte literals as JSON using `serde`, via the
## `.edit_json()` extension method.
json = ["dep:serde", "std", "dep:serde_json"]

## Support (de)serializing byte literals as Postcard using `serde`, via the
## `.edit_postcard()` extension method.
postcard = ["dep:serde", "dep:postcard"]

## Support (de)serializing string/byte literals as TOML using `serde`, via the
## `.edit_toml()` extension method.
toml = ["dep:serde", "std", "dep:toml"]

## Support (de)serializing string/byte literals as YAML using `serde`, via the
## `.edit_yaml()` extension method.
yaml = ["dep:serde", "std", "dep:serde_yaml"]

## Include features that may panic on error.
panic = []

#- Include features that require the built-in `std` module (operating system bindings).
std = ["alloc", "serde?/std", "postcard?/use-std"]

#- Include features that require the built-in `alloc` module (memory allocation).
alloc = ["serde?/alloc", "postcard?/alloc"]

#- Internal pseudo feature that should only be activated by `--all-features`.
__all__ = []