gitbutler/Cargo.toml

104 lines
3.1 KiB
TOML
Raw Normal View History

2023-09-06 11:46:07 +03:00
[workspace]
members = [
"gitbutler-app",
"gitbutler-core",
2024-01-17 17:33:05 +03:00
"gitbutler-diff",
2024-01-17 18:21:21 +03:00
"gitbutler-git",
2023-09-06 11:46:07 +03:00
]
resolver = "2"
2023-09-06 11:46:07 +03:00
[workspace.dependencies]
gitbutler-core = { path = "gitbutler-core" }
2024-01-17 17:33:05 +03:00
git2 = { version = "0.18.1", features = ["vendored-openssl", "vendored-libgit2"] }
chore(deps): bump the rust-minor-updates group with 4 updates Bumps the rust-minor-updates group with 4 updates: [uuid](https://github.com/uuid-rs/uuid), [bstr](https://github.com/BurntSushi/bstr), [regex](https://github.com/rust-lang/regex) and [url](https://github.com/servo/rust-url). Updates `uuid` from 1.6.1 to 1.7.0 - [Release notes](https://github.com/uuid-rs/uuid/releases) - [Commits](https://github.com/uuid-rs/uuid/compare/1.6.1...1.7.0) Updates `bstr` from 1.8.0 to 1.9.0 - [Commits](https://github.com/BurntSushi/bstr/compare/1.8.0...1.9.0) Updates `regex` from 1.9.5 to 1.10.2 - [Release notes](https://github.com/rust-lang/regex/releases) - [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/regex/compare/1.9.5...1.10.2) Updates `url` from 2.4.1 to 2.5.0 - [Release notes](https://github.com/servo/rust-url/releases) - [Commits](https://github.com/servo/rust-url/compare/v2.4.1...v2.5.0) --- updated-dependencies: - dependency-name: uuid dependency-type: direct:production update-type: version-update:semver-minor dependency-group: rust-minor-updates - dependency-name: bstr dependency-type: direct:production update-type: version-update:semver-minor dependency-group: rust-minor-updates - dependency-name: regex dependency-type: direct:production update-type: version-update:semver-minor dependency-group: rust-minor-updates - dependency-name: url dependency-type: direct:production update-type: version-update:semver-minor dependency-group: rust-minor-updates ... Signed-off-by: dependabot[bot] <support@github.com>
2024-01-19 20:41:07 +03:00
uuid = "1.7.0"
serde = { version = "1.0", features = ["derive"] }
2024-01-17 17:33:05 +03:00
thiserror = "1.0.56"
rusqlite = { version = "0.29.0", features = [ "bundled", "blob" ] }
tokio = { version = "1.35.1" }
2023-09-06 11:46:07 +03:00
[profile.release]
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
lto = true # Enables link to optimizations
opt-level = "s" # Optimize for binary size
2023-09-29 09:56:34 +03:00
debug = true # Enable debug symbols, for sentry
2023-11-24 11:03:04 +03:00
[workspace.lints.rust]
unsafe_code = "forbid"
[workspace.lints.clippy]
all = "deny"
perf = "deny"
correctness = "deny"
complexity = "deny"
style = "deny"
pedantic = "deny"
# selection from clippy::restriction (see https://rust-lang.github.io/rust-clippy/master/index.html#/?groups=restriction)
as_underscore = "deny"
assertions_on_result_states = "deny"
clone_on_ref_ptr = "deny"
create_dir = "deny"
dbg_macro = "deny"
decimal_literal_representation = "deny"
default_numeric_fallback = "deny"
empty_drop = "deny"
empty_structs_with_brackets = "deny"
exit = "deny"
filetype_is_file = "deny"
float_cmp_const = "deny"
fn_to_numeric_cast_any = "deny"
format_push_string = "deny"
get_unwrap = "deny"
integer_division = "deny"
lossy_float_literal = "deny"
mem_forget = "deny"
mixed_read_write_in_expression = "deny"
mutex_atomic = "deny"
needless_raw_strings = "deny"
non_ascii_literal = "deny"
panic = "deny"
print_stderr = "deny"
pub_without_shorthand = "deny"
rc_buffer = "deny"
rc_mutex = "deny"
redundant_type_annotations = "deny"
ref_patterns = "deny"
rest_pat_in_fully_bound_structs = "deny"
same_name_method = "deny"
string_add = "deny"
string_lit_chars_any = "deny"
string_slice = "deny"
string_to_string = "deny"
suspicious_xor_used_as_pow = "deny"
todo = "deny"
try_err = "deny"
unimplemented = "deny"
unnecessary_self_imports = "deny"
unneeded_field_pattern = "deny"
unseparated_literal_suffix = "deny"
if_then_some_else_none = "deny"
use_debug = "deny"
2023-12-05 17:58:43 +03:00
mod_module_files = "deny"
self_named_module_files = "allow"
2023-11-24 11:03:04 +03:00
# TODO
# partial_pub_fields = "deny"
# print_stdout = "deny"
# unwrap_used = "deny"
# unwrap_in_result = "deny"
# noise and or false-positives
missing_errors_doc = { level = "allow", priority = 1 }
used_underscore_binding = { level = "allow", priority = 1 }
must_use_candidate = { level = "allow", priority = 1 }
module_name_repetitions = { level = "allow", priority = 1 }
missing_panics_doc = { level = "allow", priority = 1 }
too_many_lines = { level = "allow", priority = 1 }
implicit_hasher = { level = "allow", priority = 1 }
if_not_else = { level = "allow", priority = 1 }
return_self_not_must_use = { level = "allow", priority = 1 }
inconsistent_struct_constructor = { level = "allow", priority = 1 }
match_wildcard_for_single_variants = { level = "allow", priority = 1 }
unnested_or_patterns = { level = "allow", priority = 1 }
similar_names = { level = "allow", priority = 1 }
2023-12-11 13:19:17 +03:00
struct_field_names = { level = "allow", priority = 1 }