retroglyph-core 0.6.0

A 2D pseudographic terminal library -- core types, no backend
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.88"
name = "retroglyph-core"
version = "0.6.0"
authors = ["Matan Lurey <matan@lurey.org>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A 2D pseudographic terminal library -- core types, no backend"
readme = "README.md"
keywords = [
    "roguelike",
    "terminal",
    "grid",
    "gamedev",
]
categories = [
    "game-development",
    "graphics",
]
license = "MIT"
repository = "https://github.com/crates-lurey-io/retroglyph"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = [
    "std",
    "egc",
]
dev = []
egc = ["dep:unicode-segmentation"]
libm = [
    "dep:libm",
    "dep:alpha-blend",
    "gem/libm",
    "gem/libm-arch",
    "alpha-blend/libm",
    "alpha-blend/libm-arch",
]
serde = [
    "dep:serde",
    "ixy/serde",
]
std = [
    "dep:alpha-blend",
    "gem/std",
    "alpha-blend/std",
]
testing = []

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

[[example]]
name = "headless"
path = "examples/headless.rs"

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

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

[[bench]]
name = "blit"
path = "benches/blit.rs"
harness = false

[[bench]]
name = "color"
path = "benches/color.rs"
harness = false

[[bench]]
name = "fill_region"
path = "benches/fill_region.rs"
harness = false

[[bench]]
name = "flatten"
path = "benches/flatten.rs"
harness = false

[[bench]]
name = "grid_construct"
path = "benches/grid_construct.rs"
harness = false

[[bench]]
name = "grid_diff"
path = "benches/grid_diff.rs"
harness = false

[[bench]]
name = "subcell"
path = "benches/subcell.rs"
harness = false

[dependencies.alpha-blend]
version = "0.3"
optional = true
default-features = false

[dependencies.bitflags]
version = "2.4"

[dependencies.gem]
version = "0.2.2"
default-features = false

[dependencies.grixy]
version = "0.7.0"
features = [
    "alloc",
    "buffer",
]

[dependencies.ixy]
version = "0.8.0"

[dependencies.libm]
version = "0.2"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
default-features = false

[dependencies.unicode-segmentation]
version = "1.13"
optional = true
default-features = false

[dependencies.unicode-width]
version = "0.2"

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.fastrand]
version = "2"

[dev-dependencies.insta]
version = "1.34"
features = ["yaml"]

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

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

[dev-dependencies.unicode-width]
version = "0.2"

[lints.clippy]
missing_errors_doc = "deny"
missing_panics_doc = "deny"
module_name_repetitions = "allow"
must_use_candidate = "deny"

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

[lints.clippy.nursery]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_qualifications = "warn"

[lints.rustdoc]
bare_urls = "warn"
broken_intra_doc_links = "deny"
invalid_codeblock_attributes = "deny"
invalid_rust_codeblocks = "deny"
private_intra_doc_links = "warn"
unescaped_backticks = "warn"