Skip to content

Commit

Permalink
Revert "[PM-12431] Temporarily un-export bitwarden_fido (#1072)"
Browse files Browse the repository at this point in the history
This reverts commit 73d3ce8.
  • Loading branch information
coltonhurst authored Sep 26, 2024
1 parent 73d3ce8 commit 4b30a34
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-rust-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
env:
PUBLISH_GRACE_SLEEP: 10
CARGO_REGISTRY_TOKEN: ${{ steps.retrieve-secrets.outputs.cratesio-api-token }}
run: cargo-release release publish --exclude bw --exclude bws --exclude bitwarden-fido --execute --no-confirm
run: cargo-release release publish --exclude bw --exclude bws --execute --no-confirm

- name: Update deployment status to Success
if: ${{ inputs.release_type != 'Dry Run' && success() }}
Expand Down
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions crates/bitwarden/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ uniffi = [
"bitwarden-core/uniffi",
"bitwarden-crypto/uniffi",
"bitwarden-exporters/uniffi",
# PR #1072
# "bitwarden-fido/uniffi",
"bitwarden-fido/uniffi",
"bitwarden-generators/uniffi",
"bitwarden-send/uniffi",
"bitwarden-vault/uniffi",
Expand All @@ -44,8 +43,7 @@ bitwarden-api-identity = { workspace = true }
bitwarden-core = { workspace = true }
bitwarden-crypto = { workspace = true }
bitwarden-exporters = { workspace = true, optional = true }
# PR #1072
# bitwarden-fido = { workspace = true, optional = true }
bitwarden-fido = { workspace = true, optional = true }
bitwarden-generators = { workspace = true, optional = true }
bitwarden-send = { workspace = true, optional = true }
bitwarden-sm = { workspace = true, optional = true }
Expand Down
4 changes: 1 addition & 3 deletions crates/bitwarden/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ pub enum Error {
ExportError(#[from] ExportError),

// Fido
/*
# PR #1072
#[cfg(all(feature = "uniffi", feature = "internal"))]
#[error(transparent)]
MakeCredential(#[from] bitwarden_fido::MakeCredentialError),
Expand All @@ -59,7 +57,7 @@ pub enum Error {
#[cfg(all(feature = "uniffi", feature = "internal"))]
#[error(transparent)]
Fido2Client(#[from] bitwarden_fido::Fido2ClientError),
*/

#[error("Internal error: {0}")]
Internal(Cow<'static, str>),
}
Expand Down
16 changes: 4 additions & 12 deletions crates/bitwarden/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,10 @@ pub mod internal {
pub use bitwarden_vault::*;
}

/*
PM-12431
# PR #1072
Temporarily un-export bitwarden_fido, as bitwarden_fido
is not ready for release yet. This will unblock the
1.0 releases.
*/
// #[cfg(feature = "uniffi")]
// pub mod fido {
// pub use bitwarden_fido::*;
// }
#[cfg(feature = "uniffi")]
pub mod fido {
pub use bitwarden_fido::*;
}
}
#[cfg(feature = "internal")]
pub use internal::*;
Expand Down

0 comments on commit 4b30a34

Please sign in to comment.