mirror of
https://github.com/bitwarden/server.git
synced 2026-01-31 14:13:18 +08:00
[PM-22263] Integate Rust SDK to Seeder (#6150)
Adds a Rust SDK for performing seed related cryptograhic operations. It depends on internal portions of our Rust SDK. Primarily parts of the bitwarden-crypto crate.
This commit is contained in:
33
util/RustSdk/rust/Cargo.toml
Normal file
33
util/RustSdk/rust/Cargo.toml
Normal file
@@ -0,0 +1,33 @@
|
||||
[package]
|
||||
name = "sdk"
|
||||
publish = false
|
||||
|
||||
version = "0.1.0"
|
||||
authors = ["Bitwarden Inc"]
|
||||
edition = "2021"
|
||||
homepage = "https://bitwarden.com"
|
||||
repository = "https://github.com/bitwarden/server"
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib"]
|
||||
|
||||
[dependencies]
|
||||
base64 = "0.22.1"
|
||||
bitwarden-core = { git = "https://github.com/bitwarden/sdk-internal.git", rev = "1461b3ba6bb6e2d0114770eb4572a1398b4789ef" }
|
||||
bitwarden-crypto = { git = "https://github.com/bitwarden/sdk-internal.git", rev = "1461b3ba6bb6e2d0114770eb4572a1398b4789ef" }
|
||||
serde = "=1.0.219"
|
||||
serde_json = "=1.0.141"
|
||||
|
||||
[build-dependencies]
|
||||
csbindgen = "=1.9.3"
|
||||
|
||||
# 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
|
||||
|
||||
[profile.release]
|
||||
codegen-units = 1
|
||||
lto = true
|
||||
opt-level = 3
|
||||
Reference in New Issue
Block a user