# 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"
rust-version = "1.75"
name = "glum"
version = "0.1.0"
authors = ["Jascha Wanger <https://jascha.me>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A reading-focused terminal markdown viewer"
readme = "README.md"
keywords = [
    "markdown",
    "tui",
    "reader",
    "cli",
]
categories = [
    "command-line-utilities",
    "text-processing",
]
license = "Apache-2.0"
repository = "https://github.com/jaschadub/glum"

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

[[bin]]
name = "glum"
path = "src/main.rs"

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

[dependencies.anyhow]
version = "1"

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.crossterm]
version = "0.28"

[dependencies.dirs]
version = "5"

[dependencies.notify]
version = "6"
features = ["macos_kqueue"]
default-features = false

[dependencies.pulldown-cmark]
version = "0.12"
default-features = false

[dependencies.ratatui]
version = "0.29"
features = ["crossterm"]
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.textwrap]
version = "0.16"
features = [
    "unicode-linebreak",
    "unicode-width",
]
default-features = false

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

[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
many_single_char_names = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
redundant_closure_for_method_calls = "allow"
return_self_not_must_use = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
unnecessary_wraps = "allow"

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

[lints.rust]
unsafe_code = "forbid"

[profile.dev]
opt-level = 0
debug = 1

[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
strip = "symbols"
