Cargo.toml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. [workspace]
  2. members = ["lib", "macros", "tools/uniffi-bindgen"]
  3. default-members = ["lib", "macros"]
  4. resolver = "2"
  5. [profile.release]
  6. lto = true
  7. [patch.crates-io]
  8. blake2 = { path = "patches/blake2" }
  9. tsify = { path = "patches/tsify" }
  10. tsify-macros = { path = "patches/tsify/tsify-macros" }
  11. # Commented lints are currently unstable and we want to try them ASAP.
  12. [workspace.lints.rust]
  13. deprecated_safe = "warn"
  14. explicit_outlives_requirements = "warn"
  15. #fuzzy_provenance_casts = "warn"
  16. #impl_trait_overcaptures = "warn"
  17. #lossy_provenance_casts = "warn"
  18. macro_use_extern_crate = "warn"
  19. meta_variable_misuse = "warn"
  20. missing_abi = "warn"
  21. missing_docs = "warn"
  22. missing_unsafe_on_extern = "warn"
  23. #multiple_supertrait_upcastable = "warn"
  24. #must_not_suspend = "warn"
  25. non_ascii_idents = "warn"
  26. #non_exhaustive_omitted_patterns = "warn"
  27. non_local_definitions = "warn"
  28. redundant_lifetimes = "warn"
  29. single_use_lifetimes = "warn"
  30. unit_bindings = "warn"
  31. unnameable_types = "warn"
  32. unreachable_pub = "warn"
  33. unsafe_op_in_unsafe_fn = "warn"
  34. unstable_features = "warn"
  35. unused_crate_dependencies = "warn"
  36. unused_extern_crates = "warn"
  37. unused_macro_rules = "warn"
  38. unused_qualifications = "warn"
  39. unused_results = "warn"
  40. variant_size_differences = "warn"
  41. [workspace.lints.rustdoc]
  42. missing_crate_level_docs = "warn"
  43. private_doc_tests = "warn"
  44. unescaped_backticks = "warn"
  45. # Commented lints are in a newer Clippy version or tied to unstable and we want
  46. # to try them ASAP.
  47. [workspace.lints.clippy]
  48. # Pedantic
  49. pedantic = "warn"
  50. module_name_repetitions = { level = "allow", priority = 1 }
  51. similar_names = { level = "allow", priority = 1 }
  52. too_many_lines = { level = "allow", priority = 1 }
  53. # Restriction
  54. alloc_instead_of_core = { level = "warn", priority = 1 }
  55. #allow_attributes = { level = "warn", priority = 1 }
  56. #allow_attributes_without_reason = { level = "warn", priority = 1 }
  57. arithmetic_side_effects = { level = "warn", priority = 1 }
  58. as_underscore = { level = "warn", priority = 1 }
  59. big_endian_bytes = { level = "warn", priority = 1 }
  60. create_dir = { level = "warn", priority = 1 }
  61. dbg_macro = { level = "warn", priority = 1 }
  62. default_numeric_fallback = { level = "warn", priority = 1 }
  63. deref_by_slicing = { level = "warn", priority = 1 }
  64. empty_drop = { level = "warn", priority = 1 }
  65. empty_enum_variants_with_brackets = { level = "warn", priority = 1 }
  66. empty_structs_with_brackets = { level = "warn", priority = 1 }
  67. error_impl_error = { level = "warn", priority = 1 }
  68. exit = { level = "warn", priority = 1 }
  69. filetype_is_file = { level = "warn", priority = 1 }
  70. float_arithmetic = { level = "warn", priority = 1 }
  71. float_cmp_const = { level = "warn", priority = 1 }
  72. fn_to_numeric_cast_any = { level = "warn", priority = 1 }
  73. format_push_string = { level = "warn", priority = 1 }
  74. host_endian_bytes = { level = "warn", priority = 1 }
  75. impl_trait_in_params = { level = "warn", priority = 1 }
  76. indexing_slicing = { level = "warn", priority = 1 }
  77. infinite_loop = { level = "warn", priority = 1 }
  78. integer_division = { level = "warn", priority = 1 }
  79. integer_division_remainder_used = { level = "warn", priority = 1 }
  80. lossy_float_literal = { level = "warn", priority = 1 }
  81. min_ident_chars = { level = "warn", priority = 1 }
  82. missing_assert_message = { level = "warn", priority = 1 }
  83. mixed_read_write_in_expression = { level = "warn", priority = 1 }
  84. multiple_inherent_impl = { level = "warn", priority = 1 }
  85. multiple_unsafe_ops_per_block = { level = "warn", priority = 1 }
  86. mutex_atomic = { level = "warn", priority = 1 }
  87. needless_raw_strings = { level = "warn", priority = 1 }
  88. panic = { level = "warn", priority = 1 }
  89. partial_pub_fields = { level = "warn", priority = 1 }
  90. print_stderr = { level = "warn", priority = 1 }
  91. print_stdout = { level = "warn", priority = 1 }
  92. pub_without_shorthand = { level = "warn", priority = 1 }
  93. rc_buffer = { level = "warn", priority = 1 }
  94. rc_mutex = { level = "warn", priority = 1 }
  95. redundant_type_annotations = { level = "warn", priority = 1 }
  96. ref_patterns = { level = "warn", priority = 1 }
  97. renamed_function_params = { level = "warn", priority = 1 }
  98. rest_pat_in_fully_bound_structs = { level = "warn", priority = 1 }
  99. semicolon_inside_block = { level = "warn", priority = 1 }
  100. single_char_lifetime_names = { level = "warn", priority = 1 }
  101. std_instead_of_core = { level = "warn", priority = 1 }
  102. str_to_string = { level = "warn", priority = 1 }
  103. string_add = { level = "warn", priority = 1 }
  104. string_slice = { level = "warn", priority = 1 }
  105. string_to_string = { level = "warn", priority = 1 }
  106. suspicious_xor_used_as_pow = { level = "warn", priority = 1 }
  107. tests_outside_test_module = { level = "warn", priority = 1 }
  108. todo = { level = "warn", priority = 1 }
  109. try_err = { level = "warn", priority = 1 }
  110. undocumented_unsafe_blocks = { level = "warn", priority = 1 }
  111. unimplemented = { level = "warn", priority = 1 }
  112. unnecessary_safety_comment = { level = "warn", priority = 1 }
  113. unnecessary_safety_doc = { level = "warn", priority = 1 }
  114. unnecessary_self_imports = { level = "warn", priority = 1 }
  115. unneeded_field_pattern = { level = "warn", priority = 1 }
  116. unseparated_literal_suffix = { level = "warn", priority = 1 }
  117. #unused_result_ok = { level = "warn", priority = 1 }
  118. unwrap_used = { level = "warn", priority = 1 }
  119. use_debug = { level = "warn", priority = 1 }
  120. verbose_file_reads = { level = "warn", priority = 1 }
  121. # Cargo
  122. cargo = "warn"
  123. cargo_common_metadata = { level = "allow", priority = 1 }