-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose new Bitwarden crate with wrappers
- Loading branch information
Showing
17 changed files
with
99 additions
and
60 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
mod exporters; | ||
pub use exporters::{ClientExporters, ExportFormat}; | ||
mod client_generator; | ||
pub use client_generator::ClientGenerator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
[package] | ||
name = "bitwarden" | ||
description = """ | ||
Bitwarden Secrets Manager SDK | ||
""" | ||
keywords = ["bitwarden", "secrets-manager"] | ||
|
||
version.workspace = true | ||
authors.workspace = true | ||
edition.workspace = true | ||
rust-version.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
license-file.workspace = true | ||
|
||
[features] | ||
default = ["secrets"] | ||
|
||
internal = [ | ||
"dep:bitwarden-exporters", | ||
"dep:bitwarden-generators", | ||
"bitwarden-core/internal", | ||
] # Internal testing methods | ||
no-memory-hardening = [ | ||
"bitwarden-core/no-memory-hardening", | ||
] # Disable memory hardening features | ||
mobile = [ | ||
"internal", | ||
"bitwarden-core/mobile", | ||
"bitwarden-crypto/mobile", | ||
"bitwarden-generators/mobile", | ||
] # Mobile-specific features | ||
secrets = ["bitwarden-core/internal"] # Secrets manager API | ||
|
||
[dependencies] | ||
bitwarden-api-api = { workspace = true } | ||
bitwarden-api-identity = { workspace = true } | ||
bitwarden-core = { workspace = true } | ||
bitwarden-crypto = { workspace = true } | ||
bitwarden-exporters = { workspace = true, optional = true } | ||
bitwarden-generators = { workspace = true, optional = true } | ||
|
||
[lints] | ||
workspace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
pub use bitwarden_core::*; | ||
|
||
#[cfg(feature = "internal")] | ||
pub use bitwarden_generators::ClientGeneratorExt; | ||
#[cfg(feature = "internal")] | ||
pub mod generators { | ||
pub use bitwarden_generators::{ | ||
PassphraseGeneratorRequest, PasswordGeneratorRequest, UsernameGeneratorRequest, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters