-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCargo.toml
More file actions
115 lines (104 loc) · 3.29 KB
/
Cargo.toml
File metadata and controls
115 lines (104 loc) · 3.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[workspace]
package.version = "0.2.0"
package.authors = ["Wojciech Danilo <wojciech.danilo@gmail.com>"]
package.edition = "2024"
package.license = "MIT OR Apache-2.0"
package.repository = "https://github.com/wdanilo/fixed-num"
members = ["crates/*", "tests/*"]
resolver = "3"
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
overflow-checks = false
strip = true
[profile.bench]
opt-level = 3
lto = "fat"
codegen-units = 1
overflow-checks = false
strip = true
[workspace.dependencies]
fixed-num = { version = "0.2.0", path = "crates/lib" }
fixed-num-helper = { version = "0.2.0", path = "crates/helper" }
fixed-num-macro = { version = "0.2.0", path = "crates/macro" }
validator = { version = "0.2.0", package = "fixed-num-validator", path = "crates/validator" }
arrow-buffer = { version = "55" }
ethnum = { version = "1.5.1" }
paste = { default-features = false, version = "1", features = [] }
rand = { default-features = false, version = "0.9", features = ["std_rng"] }
serde = { version = "1" }
# Benchmarks
rust_decimal = { version = "1.37.1", features = ["maths"] }
bigdecimal = "0.4.8"
decimal = { package = "decimal", version = "2.1.0", features = ["serde"] }
fixed = { version = "1.29.0", features = ["serde", "std"] }
decimal-rs = "0.1.43"
fastnum = "0.2.3"
# Macros
quote = { version = "1" }
# Tests and benchmarks
serde_json = { version = "1", features = ["arbitrary_precision"] }
criterion = { version = "0.5", features = ["real_blackbox"] }
[workspace.lints.clippy]
assigning_clones = "warn"
checked_conversions = "warn"
cloned_instead_of_copied = "warn"
cognitive_complexity = "warn"
dbg_macro = "warn"
doc_markdown = "warn"
explicit_iter_loop = "warn"
filter_map_next = "warn"
if_then_some_else_none = "warn"
index_refutable_slice = "warn"
large_futures = "warn"
large_stack_frames = "warn"
large_types_passed_by_value = "warn"
manual_let_else = "warn"
map_unwrap_or = "warn"
needless_pass_by_ref_mut = "warn"
nonstandard_macro_braces = "warn"
option_option = "warn"
panic = "warn"
pub_underscore_fields = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
renamed_function_params = "warn"
semicolon_outside_block = "warn"
trivially_copy_pass_by_ref = "warn"
tuple_array_conversions = "warn"
unchecked_duration_subtraction = "warn"
uninlined_format_args = "warn"
unnecessary_box_returns = "warn"
unnecessary_safety_doc = "warn"
unnecessary_wraps = "warn"
unnested_or_patterns = "warn"
unreadable_literal = "warn"
unused_self = "warn"
use_self = "warn"
unwrap_used = "warn"
type_complexity = "allow"
[workspace.lints.rust]
ambiguous_negative_literals = "deny"
closure_returning_async_block = "warn"
elided_lifetimes_in_paths = "warn"
explicit_outlives_requirements = "warn"
let_underscore_drop = "warn"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
non_ascii_idents = "warn"
redundant_imports = "warn"
redundant_lifetimes = "warn"
single_use_lifetimes = "warn"
trivial_numeric_casts = "warn"
unit_bindings = "warn"
unnameable_types = "warn"
unreachable_pub = "warn"
unused_crate_dependencies = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"
unused_lifetimes = "deny"
unused_macro_rules = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"