Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
123 lines (103 loc) · 2.52 KB
/
Copy pathCargo.toml
File metadata and controls
123 lines (103 loc) · 2.52 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
116
117
118
119
120
121
122
123
[package]
name = "obsidian_sync_lib"
version = "0.1.0"
edition = "2024"
description = "A Rust library for Git sync obsidian using libgit2"
license = "MIT OR Apache-2.0"
repository = "https://github.com/Utishnik/ObsidianSyncLib"
keywords = ["git", "libgit2", "vcs"]
categories = ["development-tools::version-control"]
[lib]
name = "obsidian_sync_lib"
path = "src/lib.rs"
[dependencies]
git2 = "0.20.2"
validator = { version = "0.16", features = ["derive"] }
dotenvy = "0.15.7"
backtrace = "0.3"
serde_json = "1.0"
tinyvec = "1.8"
itoa = "1.0"
time = "0.3"
[features]
dev_utils = []
display_utils = []
debug_trait_utils = []
debug_and_test_utils = []
debug = ["dev_utils","display_utils",
"debug_trait_utils","debug_and_test_utils"]
default = ["debug"]
[workspace]
members = ["ansicodes",
"barrier_not_idle",
"encodings",
"arena_backends",
"bitfields_c2rust",
"bitfields_c2rust/field_type",
"bitfields_c2rust/build_error",
"bitfields_c2rust/build_error_general",
"validation_transcoding",
"rc_utils/",
"debug_more_asserts",
"debug_more_asserts/std_test_asserts",
]
resolver = "2"
[workspace.dependencies]
serde = { version = "1.0.90", features = ["derive"] }
[profile.release]
opt-level = "z"
lto = true # полная LTO
codegen-units = 1 # максимум оптимизации
strip = "symbols" # удаляет все символы
debug = false
debug-assertions = false
[profile.dev]
opt-level = "s" # мега оптимизация по размеру
lto = true # link-time optimization
codegen-units = 16
[profile.minimal]
inherits = "release"
opt-level = "z"
lto = "thin"
codegen-units = 1
strip = "symbols"
panic = "abort"
incremental = false
[profile.blazing]
inherits = "release"
opt-level = 3
lto = "fat"
codegen-units = 1
strip = "symbols"
panic = "abort"
incremental = false
[[test]]
name = "test_tokinezer"
path = "tests/test_tokinizer.rs"
[[test]]
name = "test_iterators"
path = "tests/test_iterators.rs"
[[test]]
name = "test_parser"
path = "tests/test_parser.rs"
[[test]]
name = "test_backtrace_debug"
path = "tests/back_trace_debug_test.rs"
[[test]]
name = "splitt_b_space_test"
path = "tests/splitt_b_space_test.rs"
[[test]]
name = "debug_test"
path = "tests/debug_test.rs"
[[test]]
name = "multi_thread_debug_test"
path = "tests/multi_thread_debug_test.rs"
[[test]]
name = "test_utils"
path = "tests/test_utlis.rs"
[[test]]
name = "str_utils_test"
path = "tests/str_utils_test.rs"
[[test]]
name = "abstract_parser_test"
path = "tests/test_abstract_parser.rs"