# 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.80.1" name = "leetcode-api" version = "0.5.2" authors = ["saying121 "] build = false exclude = ["tests/"] autobins = false autoexamples = false autotests = false autobenches = false description = "leetcode api" homepage = "https://github.com/saying121/lcode" readme = "README.md" keywords = [ "leetcode", "api", ] categories = ["web-programming::http-client"] license = "MIT" repository = "https://github.com/saying121/lcode" [lib] name = "leetcode_api" path = "src/lib.rs" [dependencies.colored] version = "^2" [dependencies.decrypt-cookies] version = "^0.7.0-alpha.0" features = ["reqwest"] default-features = false [dependencies.futures] version = "^0.3" default-features = false [dependencies.html2text] version = "0.13" [dependencies.lcode-config] version = "^0.3" [dependencies.miette] version = "^7" default-features = true [dependencies.paste] version = "^1" [dependencies.ratatui] version = "^0.29" optional = true [dependencies.regex] version = "^1" [dependencies.reqwest] version = "^0.12" features = [ "json", "rustls-tls", "brotli", "http2", ] default-features = false [dependencies.scraper] version = "^0.21" [dependencies.sea-orm] version = "^1" features = [ "sqlx-sqlite", "runtime-tokio-rustls", "macros", ] default-features = false [dependencies.serde] version = "^1" features = ["derive"] default-features = false [dependencies.serde_json] version = "^1" default-features = false [dependencies.tabled] version = "^0.16" [dependencies.tokio] version = "^1" features = [ "macros", "time", ] [dependencies.tracing] version = "^0.1" [dependencies.unicode-width] version = "^0.2" [dev-dependencies.pretty_assertions] version = "^1" [dev-dependencies.tokio] version = "^1" features = ["rt-multi-thread"] [dev-dependencies.tracing-subscriber] version = "^0.3" features = ["env-filter"] default-features = true [features] default = ["ratatui"] ratatui = ["dep:ratatui"] [lints.clippy] allow_attributes = "warn" allow_attributes_without_reason = "warn" as_underscore = "warn" assigning_clones = "warn" bool_to_int_with_if = "warn" borrow_as_ptr = "warn" cast_ptr_alignment = "warn" cast_sign_loss = "warn" clone_on_ref_ptr = "warn" cloned_instead_of_copied = "warn" create_dir = "warn" default_trait_access = "warn" default_union_representation = "warn" deref_by_slicing = "warn" disallowed_script_idents = "warn" doc_link_with_quotes = "warn" doc_markdown = "warn" empty_drop = "warn" empty_enum_variants_with_brackets = "warn" empty_structs_with_brackets = "warn" enum_glob_use = "warn" error_impl_error = "warn" expl_impl_clone_on_copy = "warn" explicit_deref_methods = "warn" explicit_into_iter_loop = "warn" explicit_iter_loop = "warn" filetype_is_file = "warn" filter_map_next = "warn" flat_map_option = "warn" fn_to_numeric_cast_any = "warn" format_push_string = "warn" from_iter_instead_of_collect = "warn" if_not_else = "warn" if_then_some_else_none = "warn" impl_trait_in_params = "warn" implicit_clone = "warn" inconsistent_struct_constructor = "warn" index_refutable_slice = "warn" inefficient_to_string = "warn" into_iter_without_iter = "warn" iter_filter_is_ok = "warn" iter_filter_is_some = "warn" iter_not_returning_iterator = "warn" iter_without_into_iter = "warn" large_digit_groups = "warn" large_futures = "warn" large_stack_arrays = "warn" lossy_float_literal = "warn" macro_use_imports = "warn" manual_assert = "warn" manual_c_str_literals = "warn" manual_instant_elapsed = "warn" manual_is_variant_and = "warn" manual_let_else = "warn" manual_ok_or = "warn" manual_string_new = "warn" many_single_char_names = "warn" map_unwrap_or = "warn" match_on_vec_items = "warn" match_same_arms = "warn" maybe_infinite_iter = "warn" mismatching_type_param_order = "warn" missing_asserts_for_indexing = "warn" missing_fields_in_debug = "warn" mixed_read_write_in_expression = "warn" modulo_arithmetic = "warn" multiple_crate_versions = "allow" multiple_unsafe_ops_per_block = "warn" naive_bytecount = "warn" needless_bitwise_bool = "warn" needless_continue = "warn" needless_pass_by_value = "warn" no_mangle_with_rust_abi = "warn" option_as_ref_cloned = "warn" panic_in_result_fn = "warn" ptr_as_ptr = "warn" ptr_cast_constness = "warn" pub_without_shorthand = "warn" range_minus_one = "warn" range_plus_one = "warn" rc_mutex = "warn" redundant_closure_for_method_calls = "warn" redundant_else = "warn" ref_option_ref = "warn" rest_pat_in_fully_bound_structs = "warn" same_functions_in_if_condition = "warn" same_name_method = "warn" semicolon_if_nothing_returned = "warn" semicolon_outside_block = "warn" should_panic_without_expect = "warn" single_char_pattern = "warn" stable_sort_primitive = "warn" str_split_at_newline = "warn" str_to_string = "warn" string_add_assign = "warn" string_to_string = "warn" trivial_regex = "allow" trivially_copy_pass_by_ref = "warn" try_err = "warn" unchecked_duration_subtraction = "warn" unnecessary_join = "warn" unnecessary_safety_comment = "warn" unnecessary_safety_doc = "warn" unnecessary_self_imports = "warn" unnecessary_wraps = "warn" unneeded_field_pattern = "warn" unnested_or_patterns = "warn" unused_async = "warn" unused_self = "warn" unwrap_used = "warn" verbose_bit_mask = "warn" verbose_file_reads = "warn" zero_sized_map_values = "warn" [lints.clippy.cargo] level = "warn" priority = -1 [lints.clippy.nursery] level = "warn" priority = -1 [lints.clippy.perf] level = "deny" priority = -1 [lints.rust]