[package]
edition = "2024"
name = "undoredo"
version = "0.8.13"
authors = ["Mikolaj Wielgus <wielgusmikolaj@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Delta-based undo-redo decorator for collections such as HashMap, BTreeMap, StableVec, thunderdome::Arena, rstar::RTree. No need to implement commands."
documentation = "https://docs.rs/undoredo"
readme = "README.md"
keywords = [
"undo",
"redo",
"no_std",
]
categories = [
"data-structures",
"gui",
"no-std",
"rust-patterns",
]
license = "MIT OR Apache-2.0"
repository = "https://codeberg.org/topola/undoredo"
[package.metadata.docs.rs]
cargo-args = [
"--all-features",
"-Zunstable-options",
"-Zrustdoc-scrape-examples",
]
[badges.maintenance]
status = "actively-developed"
[features]
default = ["std"]
derive = ["undoredo_derive"]
rstar = [
"dep:rstar",
"maplike/rstar",
]
rstared = [
"dep:rstared",
"dep:rstar",
]
stable-vec = [
"dep:stable-vec",
"maplike/stable-vec",
]
std = []
thunderdome = [
"dep:thunderdome",
"maplike/thunderdome",
]
[lib]
name = "undoredo"
path = "src/lib.rs"
[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"
doc-scrape-examples = true
required-features = ["std"]
[[example]]
name = "btreeset"
path = "examples/btreeset.rs"
[[example]]
name = "cmd_commit"
path = "examples/cmd_commit.rs"
doc-scrape-examples = true
required-features = ["std"]
[[example]]
name = "rstar"
path = "examples/rstar.rs"
doc-scrape-examples = true
required-features = ["rstar"]
[[example]]
name = "rstared"
path = "examples/rstared.rs"
doc-scrape-examples = true
required-features = ["rstared"]
[[example]]
name = "stable_vec"
path = "examples/stable_vec.rs"
doc-scrape-examples = true
required-features = ["stable-vec"]
[[example]]
name = "thunderdome"
path = "examples/thunderdome.rs"
doc-scrape-examples = true
required-features = ["thunderdome"]
[[test]]
name = "alloc"
path = "tests/alloc.rs"
[[test]]
name = "derive_apply_edit"
path = "tests/derive_apply_edit.rs"
[[test]]
name = "derive_flush_edit"
path = "tests/derive_flush_edit.rs"
[[test]]
name = "rstar"
path = "tests/rstar.rs"
[[test]]
name = "rstared"
path = "tests/rstared.rs"
[[test]]
name = "stable_vec"
path = "tests/stable_vec.rs"
[[test]]
name = "std"
path = "tests/std.rs"
[[test]]
name = "thunderdome"
path = "tests/thunderdome.rs"
[dependencies.maplike]
version = "0.8"
[dependencies.rstar]
version = "0.12"
optional = true
[dependencies.rstared]
version = "0.8"
optional = true
[dependencies.stable-vec]
version = "0.4"
optional = true
[dependencies.thunderdome]
version = "0.6"
optional = true
[dependencies.undoredo_derive]
version = "0.8"
optional = true
[dev-dependencies.rstar]
version = "0.12"
[dev-dependencies.rstared]
version = "0.8"
[dev-dependencies.stable-vec]
version = "0.4"
[dev-dependencies.thunderdome]
version = "0.6"