# 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 = "2021"
name = "flywheel-compositor"
version = "0.1.0"
authors = ["Flywheel Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A zero-flicker terminal compositor for Agentic CLIs"
readme = "README.md"
keywords = [
    "terminal",
    "tui",
    "compositor",
    "agent",
    "cli",
]
categories = [
    "command-line-interface",
    "rendering",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ccheshirecat/flywheel"

[lib]
name = "flywheel"
crate-type = [
    "lib",
    "cdylib",
    "staticlib",
]
path = "src/lib.rs"

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

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

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

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

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

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

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

[dependencies.bitflags]
version = "2.6"

[dependencies.crossbeam-channel]
version = "0.5"

[dependencies.crossterm]
version = "0.28"

[dependencies.unicode-segmentation]
version = "1.12"

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

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

[dev-dependencies.crossbeam-channel]
version = "0.5"

[dev-dependencies.ratatui]
version = "0.29"

[dev-dependencies.sysinfo]
version = "0.30"

[lints.clippy]
inefficient_to_string = "deny"
large_enum_variant = "warn"
large_types_passed_by_value = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "warn"
trivially_copy_pass_by_ref = "warn"

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

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

[lints.rust]
missing_docs = "warn"
unsafe_code = "warn"

[profile.bench]
lto = true
codegen-units = 1

[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true
