Dependencies
See what the SDK, the bindings and the CLI are built on, with the versions of Cargo.lock and
the other lock files, and their licenses.
Every license is permissive (MIT, Apache-2.0, Unlicense) or weak copyleft (MPL-2.0 for UniFFI, LGPL-3.0 for OpenPGP.js), compatible with the AGPL-3.0 of the project.
List them yourself
cargo tree -p <CRATE> -e normal --depth 1 # the direct dependencies of a crate
cargo metadata # licenses and repositories of the whole tree
cargo metadata includes the indirect dependencies.
Rust crates
passbolt-sdk
Some crates come with a feature or a target only:
- The OpenPGP.js engine (
openpgpjsfeature) bringsrquickjsand the WebCrypto primitives (aes,aes-gcm,cbc,ctr,hkdf,sha2). - The Sequoia engine (
sequoiafeature) bringssequoia-openpgp2.4 (LGPL-2.0-or-later) on Nettle, andsha2; it needs Nettle and GMP (nettle-dev) and libclang to build. - On Android and iOS, the OpenPGP.js engine builds the
rquickjsbindings with bindgen: it needs libclang. - The
nativefeature bringsreqwestandtokio. - WebAssembly brings
wasm-bindgen,js-sysandsend_wrapper.
| Crate | Version | License | Role |
|---|---|---|---|
aes | 0.8.4 | MIT OR Apache-2.0 | AES for the OpenPGP.js engine (WebCrypto) / KDBX 3.1 |
aes-gcm | 0.10.3 | Apache-2.0 OR MIT | AES-GCM for the OpenPGP.js engine (WebCrypto) |
base64 | 0.22.1 | MIT OR Apache-2.0 | Base64 |
cbc | 0.1.2 | MIT OR Apache-2.0 | CBC mode: OpenPGP.js engine, KDBX 3.1 |
chrono | 0.4.44 | MIT OR Apache-2.0 | Dates (RFC 3339, expiry) |
ctr | 0.9.2 | MIT OR Apache-2.0 | CTR mode for the OpenPGP.js engine |
hex | 0.4.3 | MIT OR Apache-2.0 | Hexadecimal (fingerprints, SHA-1) |
hkdf | 0.12.4 | MIT OR Apache-2.0 | HKDF for the OpenPGP.js engine |
js-sys | 0.3.91 | MIT OR Apache-2.0 | JavaScript objects (WebAssembly) |
percent-encoding | 2.3.2 | MIT OR Apache-2.0 | URL encoding of API paths |
pgp | 0.21.0 | MIT OR Apache-2.0 | OpenPGP (rPGP): keys, encryption, signatures |
rand | 0.8.8 | MIT OR Apache-2.0 | Random numbers (OS generator) |
regex-lite | 0.1.9 | MIT OR Apache-2.0 | pattern of the resource type schemas |
reqwest | 0.12.15 | MIT OR Apache-2.0 | HTTP client (native, rustls) |
rquickjs | 0.14.0 | MIT | QuickJS, for the embedded OpenPGP.js engine |
secrecy | 0.10.3 | Apache-2.0 OR MIT | Secrets that do not print |
send_wrapper | 0.6.0 | MIT OR Apache-2.0 | OpenPGP.js engine in WebAssembly |
serde | 1.0.228 | MIT OR Apache-2.0 | Serialization |
serde_json | 1.0.149 | MIT OR Apache-2.0 | JSON |
sha1 | 0.10.6 | MIT OR Apache-2.0 | Have I Been Pwned (k-anonymity) |
sha2 | 0.10.9 | MIT OR Apache-2.0 | SHA-256: OpenPGP.js engine, KDBX |
thiserror | 2.0.18 | MIT OR Apache-2.0 | Error types |
tokio | 1.50.0 | MIT | Async runtime |
totp-rs | 5.7.0 | MIT | TOTP codes |
unicode-segmentation | 1.12.0 | MIT OR Apache-2.0 | Characters as users see them (secret entropy) |
url | 2.5.8 | MIT OR Apache-2.0 | URLs |
uuid | 1.26.1 | Apache-2.0 OR MIT | UUIDs |
wasm-bindgen | 0.2.114 | MIT OR Apache-2.0 | Rust ↔ JavaScript |
wasm-bindgen-futures | 0.4.64 | MIT OR Apache-2.0 | Promises ↔ futures |
zeroize | 1.8.2 | Apache-2.0 OR MIT | Secrets zeroed in memory |
passbolt-ffi
| Crate | Version | License | Role |
|---|---|---|---|
chrono | 0.4.44 | MIT OR Apache-2.0 | Dates (RFC 3339, expiry) |
secrecy | 0.10.3 | Apache-2.0 OR MIT | Secrets that do not print |
serde | 1.0.228 | MIT OR Apache-2.0 | Serialization |
serde_json | 1.0.149 | MIT OR Apache-2.0 | JSON |
tokio | 1.50.0 | MIT | Async runtime |
uniffi | 0.29.5 | MPL-2.0 | FFI bindings generator (Mozilla) |
passbolt-wasm
| Crate | Version | License | Role |
|---|---|---|---|
getrandom | 0.2.17 | MIT OR Apache-2.0 | Randomness from the Web Crypto API |
js-sys | 0.3.91 | MIT OR Apache-2.0 | JavaScript objects (WebAssembly) |
secrecy | 0.10.3 | Apache-2.0 OR MIT | Secrets that do not print |
serde | 1.0.228 | MIT OR Apache-2.0 | Serialization |
serde-wasm-bindgen | 0.6.5 | MIT | Serde ↔ JavaScript values |
serde_json | 1.0.149 | MIT OR Apache-2.0 | JSON |
uuid | 1.26.1 | Apache-2.0 OR MIT | UUIDs |
wasm-bindgen | 0.2.114 | MIT OR Apache-2.0 | Rust ↔ JavaScript |
wasm-bindgen-futures | 0.4.64 | MIT OR Apache-2.0 | Promises ↔ futures |
web-sys | 0.3.91 | MIT OR Apache-2.0 | Web APIs (fetch) |
passbolt-cli
ratatui and arboard come with the tui feature, on by default.
| Crate | Version | License | Role |
|---|---|---|---|
aes | 0.8.4 | MIT OR Apache-2.0 | AES for the OpenPGP.js engine (WebCrypto) / KDBX 3.1 |
anyhow | 1.0.102 | MIT OR Apache-2.0 | Errors of the CLI |
arboard | 3.7.0 | MIT OR Apache-2.0 | System clipboard (tui) |
argon2 | 0.5.3 | MIT OR Apache-2.0 | Argon2 KDF (KDBX 4 import) |
base64 | 0.22.1 | MIT OR Apache-2.0 | Base64 |
cbc | 0.1.2 | MIT OR Apache-2.0 | CBC mode: OpenPGP.js engine, KDBX 3.1 |
cel | 0.15.0 | MIT | CEL --filter expressions |
chacha20 | 0.9.1 | Apache-2.0 OR MIT | ChaCha20 (KDBX 4) |
chrono | 0.4.44 | MIT OR Apache-2.0 | Dates (RFC 3339, expiry) |
clap | 4.5.60 | MIT OR Apache-2.0 | Command line |
clap_complete | 4.5.66 | MIT OR Apache-2.0 | Shell completions |
clap_mangen | 0.2.31 | MIT OR Apache-2.0 | Man pages (gendoc) |
config | 0.14.1 | MIT OR Apache-2.0 | Config files (TOML, YAML, JSON) |
directories | 5.0.1 | MIT OR Apache-2.0 | Config directory of each OS |
flate2 | 1.1.9 | MIT OR Apache-2.0 | Gzip (KDBX) |
hmac | 0.12.1 | MIT OR Apache-2.0 | HMAC (KDBX 4) |
indicatif | 0.17.11 | MIT | Progress bars |
keepass | 0.6.19 | MIT | KDBX read and KDBX 4 write |
rand | 0.8.8 | MIT OR Apache-2.0 | Random numbers (OS generator) |
ratatui | 0.29.0 | MIT | Terminal UI (tui), with crossterm |
rpassword | 7.4.0 | Apache-2.0 | Hidden password prompt |
salsa20 | 0.10.2 | MIT OR Apache-2.0 | Salsa20 (KDBX 3.1 protected fields) |
secrecy | 0.10.3 | Apache-2.0 OR MIT | Secrets that do not print |
secstr | 0.5.1 | Unlicense | Secret strings of the keepass crate |
serde | 1.0.228 | MIT OR Apache-2.0 | Serialization |
serde_json | 1.0.149 | MIT OR Apache-2.0 | JSON |
sha2 | 0.10.9 | MIT OR Apache-2.0 | SHA-256: OpenPGP.js engine, KDBX |
tokio | 1.50.0 | MIT | Async runtime |
toml | 0.8.23 | MIT OR Apache-2.0 | TOML |
unicode-width | 0.2.0 | MIT OR Apache-2.0 | Column widths of tables |
xml-rs | 0.8.28 | MIT | KDBX XML |
zeroize | 1.8.2 | Apache-2.0 OR MIT | Secrets zeroed in memory |
Tests only
| Crate | Used by |
|---|---|
assert_cmd | passbolt-cli |
futures-executor | passbolt-sdk, passbolt-ffi, passbolt-wasm |
predicates | passbolt-cli |
proptest | passbolt-sdk |
rstest | passbolt-sdk, passbolt-ffi, passbolt-wasm, passbolt-cli |
tempfile | passbolt-cli |
tokio-test | passbolt-cli |
totp-rs | passbolt-cli |
url | passbolt-ffi |
uuid | passbolt-ffi |
wasm-bindgen-test | passbolt-wasm |
wiremock | passbolt-sdk, passbolt-ffi |
Shipped with the SDK
| Component | Version | License | Where |
|---|---|---|---|
| OpenPGP.js | 6.1.1 | LGPL-3.0-or-later | crates/passbolt-sdk/vendor/openpgpjs, the openpgpjs engine (default without gopenpgp, and in JavaScript); tests/interop checks what the SDK writes with it |
| EFF large wordlist | 2016 | CC BY 3.0 US | crates/passbolt-sdk/src/generator/words.txt, the passphrases, as in the browser extension |
| GopenPGP | 3.5.2 | MIT | crates/passbolt-sdk/gopenpgp, the gopenpgp engine, default of the released binaries (needs Go) |
| JNA | 5.14.0 | Apache-2.0 OR LGPL-2.1 | Java and Android bindings: calls the native library |
| kotlinx.coroutines | 1.9.0 | Apache-2.0 | Android: the suspend functions of AsyncPassboltClient |
| ffi (gem) | ~> 1.15 | BSD-3-Clause | Ruby bindings: calls the native library |
Build and packaging
| Tool | Version | Builds |
|---|---|---|
| Rust | 1.88 or later | everything (rust-version of the crates) |
UniFFI uniffi-bindgen | 0.29.5 | Python, Kotlin, Swift and Ruby bindings |
| uniffi-bindgen-go | 0.5.0+v0.29.5 | Go bindings |
| uniffi-bindgen-cs | 0.10.0+v0.29.4 | C# bindings |
| uniffi-bindgen-java | 0.2.1 | Java bindings |
| wasm-bindgen-cli | as Cargo.lock (0.2.114) | the npm package |
| TypeScript | 5.8.3 | checks the declarations of the npm package |
| maturin | 1.8 or later | Python wheels |
| cargo-ndk | 4.1.2 | Android libraries |
| Gradle | 8.11.1 | Android AAR, with the Android Gradle plugin 8.7.3 and Kotlin 2.1.0 |
| Swift | tools 5.9 | Swift package and XCFramework |
| .NET | 8 | NuGet package |
| Go | stable | Go module (cgo), the gopenpgp engine |
| Docusaurus | 3.9.2 | this documentation (website/), with React 18.3.1 |
| gitleaks | 8.24.0 | the secret scan of the CI |
GitHub Actions
ci.yml, sdk.yml and docs.yml use
actions/checkout,
actions/cache,
actions/upload-artifact and
download-artifact,
actions/setup-node,
setup-python,
setup-java,
setup-go,
setup-dotnet,
actions/upload-pages-artifact and
deploy-pages,
dtolnay/rust-toolchain,
Swatinem/rust-cache,
PyO3/maturin-action,
ruby/setup-ruby,
gradle/actions,
NuGet/login,
pypa/gh-action-pypi-publish and
rubygems/configure-rubygems-credentials.
Add a dependency
A new dependency needs:
- a reason the standard library or a crate already there cannot give;
- a license from the list above;
- a maintained repository.
Prefer pure Rust, for the musl and WebAssembly builds. Leave optional what only one feature
uses, as tui does.
Related
- Development: build and check the workspace.
- Bindings and CI: where the build tools are used.