[workspace] resolver = "2" members = ["crates/*"] package.edition = "2021" package.rust-version = "1.94.1" package.license = "Apache-2.0" [workspace.dependencies] tracing = { version = "0.1.41" } # Most of the lint configuration is based on https://github.com/EmbarkStudios/rust-ecosystem/blob/main/lints.toml [workspace.lints.rust] unsafe_code = "forbid" rust_2018_idioms = { level = "warn", priority = -1 } # Remove priority once https://github.com/rust-lang/rust-clippy/pull/12827 is available in stable clippy unused_qualifications = "warn" # missing_debug_implementations = "warn" # missing_docs = "warn" [workspace.lints.clippy] as_conversions = "warn" cloned_instead_of_copied = "warn" dbg_macro = "warn" expect_used = "warn" fn_params_excessive_bools = "warn" index_refutable_slice = "warn" indexing_slicing = "warn" large_futures = "warn" missing_panics_doc = "warn" mod_module_files = "warn" out_of_bounds_indexing = "warn" panic = "warn" panic_in_result_fn = "warn" panicking_unwrap = "warn" print_stderr = "warn" print_stdout = "warn" todo = "warn" trivially_copy_pass_by_ref = "warn" unimplemented = "warn" unnecessary_self_imports = "warn" unreachable = "warn" unwrap_in_result = "warn" unwrap_used = "warn" use_self = "warn" wildcard_dependencies = "warn" # Lints to allow option_map_unit_fn = "allow" [profile.release] strip = true lto = true codegen-units = 1 # Development-cycle build: optimized but without LTO, with parallel codegen and # symbols kept. Selected via the Dockerfile's CARGO_BUILD_PROFILE build arg; # never the default. [profile.release-fast] inherits = "release" lto = false codegen-units = 16 strip = "none" [patch.crates-io] hyperswitch_masking = { git = "https://github.com/juspay/framework-libs-rs", rev = "f1c0ee2abdb56d0aec81c2bf13f2026ecaa010f6" }