# 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.87"
name = "logbrew-cli"
version = "0.1.7"
authors = ["LogBrewCo"]
build = false
include = [
    "Cargo.lock",
    "Cargo.toml",
    "LICENSE",
    "README.md",
    "src/**",
    "tests/**",
]
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Public command-line interface for LogBrew."
homepage = "https://logbrew.co"
readme = "README.md"
keywords = [
    "logbrew",
    "cli",
    "observability",
    "logs",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/LogBrewCo/cli"

[package.metadata.dist]
dist = true
formula = "logbrew"
npm-package = "logbrew-cli"

[package.metadata.wix]
upgrade-guid = "740F488A-F669-4698-AA07-15053924C85C"
path-guid = "6165A5A2-FEA6-475E-83C6-34614F8F2498"
license = false
eula = false

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "rustls",
    "http2",
]
default-features = false

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
]

[dev-dependencies.wiremock]
version = "0.6"

[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
as_underscore = "deny"
cargo_common_metadata = "deny"
clone_on_ref_ptr = "deny"
dbg_macro = "deny"
deref_by_slicing = "deny"
empty_drop = "deny"
empty_enum_variants_with_brackets = "deny"
error_impl_error = "deny"
exit = "deny"
expect_used = "deny"
float_cmp_const = "deny"
format_push_string = "deny"
get_unwrap = "deny"
if_then_some_else_none = "deny"
impl_trait_in_params = "deny"
infinite_loop = "deny"
lossy_float_literal = "deny"
mem_forget = "deny"
missing_assert_message = "deny"
missing_docs_in_private_items = "deny"
multiple_inherent_impl = "deny"
must_use_candidate = "deny"
mutex_atomic = "deny"
needless_raw_strings = "deny"
negative_feature_names = "deny"
panic = "deny"
partial_pub_fields = "deny"
print_stderr = "deny"
print_stdout = "deny"
pub_without_shorthand = "deny"
rc_buffer = "deny"
rc_mutex = "deny"
redundant_feature_names = "deny"
renamed_function_params = "deny"
rest_pat_in_fully_bound_structs = "deny"
same_name_method = "deny"
str_to_string = "deny"
string_lit_chars_any = "deny"
todo = "deny"
undocumented_unsafe_blocks = "deny"
unimplemented = "deny"
unnecessary_safety_comment = "deny"
unnecessary_self_imports = "deny"
unneeded_field_pattern = "deny"
unseparated_literal_suffix = "deny"
unused_result_ok = "deny"
unused_trait_names = "deny"
unwrap_used = "deny"
verbose_file_reads = "deny"
wildcard_dependencies = "deny"
wildcard_enum_match_arm = "deny"

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

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

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

[lints.rust]
absolute_paths_not_starting_with_crate = "deny"
ambiguous_negative_literals = "deny"
deprecated_in_future = "deny"
deprecated_safe_2024 = "deny"
edition_2024_expr_fragment_specifier = "deny"
elided_lifetimes_in_paths = "deny"
explicit_outlives_requirements = "deny"
ffi_unwind_calls = "deny"
impl_trait_redundant_captures = "deny"
keyword_idents_2024 = "deny"
let_underscore_drop = "deny"
macro_use_extern_crate = "deny"
meta_variable_misuse = "deny"
missing_copy_implementations = "deny"
missing_debug_implementations = "deny"
missing_docs = "deny"
missing_unsafe_on_extern = "deny"
non_ascii_idents = "deny"
redundant_imports = "deny"
redundant_lifetimes = "deny"
single_use_lifetimes = "deny"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unit_bindings = "deny"
unnameable_types = "deny"
unreachable_pub = "deny"
unsafe_code = "forbid"
unsafe_op_in_unsafe_fn = "deny"
unused_qualifications = "deny"
unused_results = "deny"
variant_size_differences = "deny"

[lints.rust.future_incompatible]
level = "deny"
priority = -1

[lints.rust.nonstandard_style]
level = "deny"
priority = -1

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1

[lints.rust.rust_2024_compatibility]
level = "deny"
priority = -1

[lints.rust.unused]
level = "deny"
priority = -1

[lints.rust.warnings]
level = "deny"
priority = -2

[lints.rustdoc]
bare_urls = "deny"
broken_intra_doc_links = "deny"
private_intra_doc_links = "deny"

[profile.dist]
lto = "thin"
inherits = "release"

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