-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathCargo.toml
More file actions
171 lines (160 loc) · 7.5 KB
/
Cargo.toml
File metadata and controls
171 lines (160 loc) · 7.5 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
[workspace]
resolver = "2"
members = ["bitwarden_license/*", "crates/*"]
exclude = ["support/lints"]
# Global settings for all crates should be defined here
[workspace.package]
# Update using `cargo set-version -p bitwarden-core <new-version>`
version = "3.0.0"
authors = ["Bitwarden Inc"]
edition = "2024"
# Important: Changing rust-version should be considered a breaking change
rust-version = "1.88.0"
homepage = "https://bitwarden.com"
repository = "https://github.com/bitwarden/sdk-internal"
license-file = "LICENSE"
readme = "DISCLAIMER.md"
keywords = ["bitwarden"]
# Define dependencies that are expected to be consistent across all crates
[workspace.dependencies]
# External crates that are expected to maintain a consistent version across all crates
async-trait = ">=0.1.80, <0.2"
bitwarden-api-api = { path = "crates/bitwarden-api-api", version = "=3.0.0" }
bitwarden-api-base = { path = "crates/bitwarden-api-base", version = "=3.0.0" }
bitwarden-api-identity = { path = "crates/bitwarden-api-identity", version = "=3.0.0" }
bitwarden-api-key-connector = { path = "crates/bitwarden-api-key-connector", version = "=3.0.0" }
bitwarden-auth = { path = "crates/bitwarden-auth", version = "=3.0.0" }
bitwarden-cli = { path = "crates/bitwarden-cli", version = "=3.0.0" }
bitwarden-collections = { path = "crates/bitwarden-collections", version = "=3.0.0" }
bitwarden-commercial-vault = { path = "bitwarden_license/bitwarden-commercial-vault", version = "=3.0.0" }
bitwarden-core = { path = "crates/bitwarden-core", version = "=3.0.0" }
bitwarden-core-macro = { path = "crates/bitwarden-core-macro", version = "=3.0.0" }
bitwarden-crypto = { path = "crates/bitwarden-crypto", version = "=3.0.0" }
bitwarden-encoding = { path = "crates/bitwarden-encoding", version = "=3.0.0" }
bitwarden-error = { path = "crates/bitwarden-error", version = "=3.0.0" }
bitwarden-error-macro = { path = "crates/bitwarden-error-macro", version = "=3.0.0" }
bitwarden-exporters = { path = "crates/bitwarden-exporters", version = "=3.0.0" }
bitwarden-ffi = { path = "crates/bitwarden-ffi", version = "=3.0.0" }
bitwarden-ffi-macro = { path = "crates/bitwarden-ffi-macro", version = "=3.0.0" }
bitwarden-fido = { path = "crates/bitwarden-fido", version = "=3.0.0" }
bitwarden-generators = { path = "crates/bitwarden-generators", version = "=3.0.0" }
bitwarden-ipc = { path = "crates/bitwarden-ipc", version = "=3.0.0" }
bitwarden-logging = { path = "crates/bitwarden-logging", version = "=3.0.0" }
bitwarden-logging-macro = { path = "crates/bitwarden-logging-macro", version = "=3.0.0" }
bitwarden-organization-crypto = { path = "crates/bitwarden-organization-crypto", version = "=3.0.0" }
bitwarden-organizations = { path = "crates/bitwarden-organizations", version = "=3.0.0" }
bitwarden-pm = { path = "crates/bitwarden-pm", version = "=3.0.0" }
bitwarden-policies = { path = "crates/bitwarden-policies", version = "=3.0.0" }
bitwarden-send = { path = "crates/bitwarden-send", version = "=3.0.0" }
bitwarden-server-communication-config = { path = "crates/bitwarden-server-communication-config", version = "=3.0.0" }
bitwarden-shared-unlock = { path = "crates/bitwarden-shared-unlock", version = "=3.0.0" }
bitwarden-ssh = { path = "crates/bitwarden-ssh", version = "=3.0.0" }
bitwarden-state = { path = "crates/bitwarden-state", version = "=3.0.0" }
bitwarden-state-bridge-macro = { path = "crates/bitwarden-state-bridge-macro", version = "=3.0.0" }
bitwarden-sync = { path = "crates/bitwarden-sync", version = "=3.0.0" }
bitwarden-test = { path = "crates/bitwarden-test", version = "=3.0.0" }
bitwarden-test-macro = { path = "crates/bitwarden-test-macro", version = "=3.0.0" }
bitwarden-threading = { path = "crates/bitwarden-threading", version = "=3.0.0" }
bitwarden-uniffi-error = { path = "crates/bitwarden-uniffi-error", version = "=3.0.0" }
bitwarden-user-crypto-management = { path = "crates/bitwarden-user-crypto-management", version = "=3.0.0" }
bitwarden-uuid = { path = "crates/bitwarden-uuid", version = "=3.0.0" }
bitwarden-uuid-macro = { path = "crates/bitwarden-uuid-macro", version = "=3.0.0" }
bitwarden-vault = { path = "crates/bitwarden-vault", version = "=3.0.0" }
chrono = { version = ">=0.4.26, <0.5", features = [
"clock",
"serde",
"std",
], default-features = false }
ciborium = ">=0.2.2, <0.3"
data-encoding = ">=2.0, <3"
ed25519-dalek = { version = "3.0.0-pre.7" }
futures = ">=0.3.31, <0.4"
hmac = "0.13.0"
http = ">=1.4.0, <2.0"
js-sys = { version = ">=0.3.72, <0.4" }
mockall = { version = ">=0.13.1, <0.15" }
proc-macro2 = ">=1.0.89, <2"
quote = ">=1.0.37, <2"
rand = ">=0.10.0, <0.11"
rand_chacha = ">=0.10.0, <0.11"
reqwest = { version = "0.12.28", features = [
"json",
"multipart",
"http2",
], default-features = false }
reqwest-middleware = { version = "0.4.2", features = [
"json",
"multipart",
] }
rsa = "0.10.0-rc.17"
rustls = { version = "0.23.19", default-features = false }
rustls-platform-verifier = "0.6.0"
schemars = { version = ">=1.0.0, <2.0", features = ["uuid1", "chrono04"] }
serde = { version = ">=1.0, <2.0", features = ["derive"] }
serde-wasm-bindgen = ">=0.6.0, <0.7"
serde_bytes = { version = ">=0.11.17, <0.12.0" }
serde_json = ">=1.0.96, <2.0"
serde_qs = ">=0.12.0, <0.16"
serde_repr = ">=0.1.12, <0.2"
sha1 = "0.11.0"
sha2 = "0.11.0"
subtle = ">=2.5.0, <3.0"
syn = ">=2.0.87, <3"
thiserror = ">=1.0.40, <3"
tokio = { version = "1.36.0", features = ["macros"] }
tracing = { version = "0.1.41" }
tracing-subscriber = { version = "0.3.20", features = [
"fmt",
"env-filter",
"tracing-log",
] }
tsify = { version = ">=0.5.5, <0.6", features = [
"js",
], default-features = false }
uniffi = "=0.31.0"
url = ">=2.5.8, <3.0"
uuid = { version = ">=1.3.3, <2.0", features = ["serde", "v4", "js"] }
validator = { version = ">=0.18.1, <0.21", features = ["derive"] }
wasm-bindgen = { version = "=0.2.114", features = ["serde-serialize"] }
wasm-bindgen-cli = "=0.2.114"
wasm-bindgen-futures = "0.4.64"
wasm-bindgen-test = "0.3.64"
wiremock = ">=0.6.0, <0.7"
zeroize = { version = ">=1.7.0, <2.0" }
zxcvbn = ">=3.0.1, <4.0"
[workspace.lints.clippy]
disallowed-macros = "deny"
unused_async = "warn"
unwrap_used = "deny"
string_slice = "warn"
print_stdout = "warn"
print_stderr = "warn"
[workspace.lints.rust]
missing_docs = "warn"
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(feature, values("uniffi", "wasm"))',
] }
[workspace.metadata.dylint]
libraries = [{ path = "support/lints" }]
# Turn on a small amount of optimisation in development mode. This might interfere when trying to use a debugger
# if the compiler decides to optimize some code away, if that's the case, it can be set to 0 or commented out
[profile.dev]
opt-level = 1
# Compile all dependencies with some optimizations when building this crate on debug
# This slows down clean builds by about 50%, but the resulting binaries can be orders of magnitude faster
# As clean builds won't occur very often, this won't slow down the development process
[profile.dev.package."*"]
opt-level = 2
# Turn on LTO on release mode
[profile.release]
codegen-units = 1
lto = true
opt-level = "z"
# Enable optimization for the bitwarden-crypto crate. This will increase the binary size slightly (~0.1MB),
# but it will more aggressively inline functions. This will help us avoid extra stack copies of keys and
# other sensitive values being left behind without cleanup.
[profile.release.package.bitwarden-crypto]
opt-level = 3
# Stripping the binary reduces the size by ~30%, but the stacktraces won't be usable anymore.
# This is fine as long as we don't have any unhandled panics, but let's keep it disabled for now
# strip = true