Skip to content

Commit 5a2e9ba

Browse files
committed
Migrate back to tsify
1 parent c0f7f72 commit 5a2e9ba

File tree

42 files changed

+181
-70
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+181
-70
lines changed

Cargo.lock

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ serde_qs = ">=0.12.0, <0.16"
5555
serde_repr = ">=0.1.12, <0.2"
5656
thiserror = ">=1.0.40, <3"
5757
tokio = { version = "1.36.0", features = ["macros"] }
58-
tsify-next = { version = ">=0.5.4, <0.6", features = [
58+
tsify = { version = ">=0.5.5, <0.6", features = [
5959
"js",
6060
], default-features = false }
6161
uniffi = "=0.28.3"

crates/bitwarden-core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ uniffi = ["bitwarden-crypto/uniffi", "dep:uniffi"] # Uniffi bindings
2424
wasm = [
2525
"bitwarden-error/wasm",
2626
"dep:wasm-bindgen",
27-
"dep:tsify-next"
27+
"dep:tsify"
2828
] # WASM support
2929

3030
[dependencies]
@@ -45,7 +45,7 @@ serde_json = { workspace = true }
4545
serde_qs = { workspace = true }
4646
serde_repr = { workspace = true }
4747
thiserror = { workspace = true }
48-
tsify-next = { workspace = true, optional = true }
48+
tsify = { workspace = true, optional = true }
4949
uniffi = { workspace = true, optional = true, features = ["tokio"] }
5050
uuid = { workspace = true }
5151
wasm-bindgen = { workspace = true, optional = true }

crates/bitwarden-core/src/client/client_settings.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use serde::{Deserialize, Serialize};
2121
#[cfg_attr(feature = "uniffi", derive(uniffi::Record))]
2222
#[cfg_attr(
2323
feature = "wasm",
24-
derive(tsify_next::Tsify),
24+
derive(tsify::Tsify),
2525
tsify(into_wasm_abi, from_wasm_abi)
2626
)]
2727
pub struct ClientSettings {
@@ -51,7 +51,7 @@ impl Default for ClientSettings {
5151
#[cfg_attr(feature = "uniffi", derive(uniffi::Enum))]
5252
#[cfg_attr(
5353
feature = "wasm",
54-
derive(tsify_next::Tsify),
54+
derive(tsify::Tsify),
5555
tsify(into_wasm_abi, from_wasm_abi)
5656
)]
5757
pub enum DeviceType {

crates/bitwarden-core/src/mobile/crypto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use bitwarden_crypto::{
1313
};
1414
use serde::{Deserialize, Serialize};
1515
#[cfg(feature = "wasm")]
16-
use {tsify_next::Tsify, wasm_bindgen::prelude::*};
16+
use {tsify::Tsify, wasm_bindgen::prelude::*};
1717

1818
use crate::{
1919
client::{encryption_settings::EncryptionSettingsError, LoginMethod, UserLoginMethod},

crates/bitwarden-crypto/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ keywords.workspace = true
1616

1717
[features]
1818
default = []
19-
wasm = ["dep:tsify-next", "dep:wasm-bindgen"] # WASM support
19+
wasm = ["dep:tsify", "dep:wasm-bindgen"] # WASM support
2020

2121
uniffi = ["dep:uniffi"] # Uniffi bindings
2222
no-memory-hardening = [] # Disable memory hardening features
@@ -49,7 +49,7 @@ sha1 = ">=0.10.5, <0.11"
4949
sha2 = ">=0.10.6, <0.11"
5050
subtle = ">=2.5.0, <3.0"
5151
thiserror = { workspace = true }
52-
tsify-next = { workspace = true, optional = true }
52+
tsify = { workspace = true, optional = true }
5353
typenum = ">=1.18.0, <1.19.0"
5454
uniffi = { workspace = true, optional = true }
5555
uuid = { workspace = true }

crates/bitwarden-crypto/src/keys/kdf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use schemars::JsonSchema;
55
use serde::{Deserialize, Serialize};
66
use sha2::Digest;
77
#[cfg(feature = "wasm")]
8-
use tsify_next::Tsify;
8+
use tsify::Tsify;
99
use typenum::U32;
1010
use zeroize::Zeroize;
1111

crates/bitwarden-error-macro/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ bitwarden-error = { workspace = true, features = ["wasm"] }
3434
js-sys.workspace = true
3535
serde.workspace = true
3636
thiserror.workspace = true
37-
tsify-next.workspace = true
37+
tsify.workspace = true
3838
wasm-bindgen.workspace = true

crates/bitwarden-error-macro/src/full/attribute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub(crate) fn bitwarden_error_full(
1414

1515
let wasm_attributes = cfg!(feature = "wasm").then(|| {
1616
quote! {
17-
#[derive(bitwarden_error::tsify_next::Tsify)]
17+
#[derive(bitwarden_error::tsify::Tsify)]
1818
#[tsify(into_wasm_abi)]
1919
}
2020
});

crates/bitwarden-error-macro/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ mod full;
101101
/// }
102102
/// ```
103103
///
104-
/// will use tsify_next::Tsify to generate roughly the following TypeScript definition:
104+
/// will use tsify::Tsify to generate roughly the following TypeScript definition:
105105
///
106106
/// ```typescript
107107
/// export type CryptoError =

crates/bitwarden-error/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ keywords.workspace = true
1818
wasm = [
1919
"bitwarden-error-macro/wasm",
2020
"dep:js-sys",
21-
"dep:tsify-next",
21+
"dep:tsify",
2222
"dep:wasm-bindgen"
2323
]
2424

2525
[dependencies]
2626
bitwarden-error-macro = { workspace = true }
2727
js-sys = { workspace = true, optional = true }
28-
tsify-next = { workspace = true, optional = true }
28+
tsify = { workspace = true, optional = true }
2929
wasm-bindgen = { workspace = true, optional = true }
3030

3131
[lints]

crates/bitwarden-error/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ pub mod wasm;
99
#[cfg(feature = "wasm")]
1010
#[doc(hidden)]
1111
pub use ::js_sys;
12-
/// Re-export the `tsify_next` crate since the proc macro depends on it.
12+
/// Re-export the `tsify` crate since the proc macro depends on it.
1313
#[cfg(feature = "wasm")]
1414
#[doc(hidden)]
15-
pub use ::tsify_next;
15+
pub use ::tsify;
1616
/// Re-export the `wasm_bindgen` crate since the proc macro depends on it.
1717
#[cfg(feature = "wasm")]
1818
#[doc(hidden)]

crates/bitwarden-exporters/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ keywords.workspace = true
1717

1818
[features]
1919
uniffi = ["dep:uniffi", "bitwarden-core/uniffi"] # Uniffi bindings
20-
wasm = ["dep:tsify-next", "dep:wasm-bindgen"] # WebAssembly bindings
20+
wasm = ["dep:tsify", "dep:wasm-bindgen"] # WebAssembly bindings
2121

2222
[dependencies]
2323
base64 = ">=0.22.1, <0.23"
@@ -33,7 +33,7 @@ num-traits = ">=0.2, <0.3"
3333
serde = { workspace = true }
3434
serde_json = { workspace = true }
3535
thiserror = { workspace = true }
36-
tsify-next = { workspace = true, optional = true }
36+
tsify = { workspace = true, optional = true }
3737
uniffi = { workspace = true, optional = true }
3838
uuid = { workspace = true }
3939
wasm-bindgen = { workspace = true, optional = true }

crates/bitwarden-exporters/src/cxf/export.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use credential_exchange_format::{
44
};
55
use uuid::Uuid;
66
#[cfg(feature = "wasm")]
7-
use {tsify_next::Tsify, wasm_bindgen::prelude::*};
7+
use {tsify::Tsify, wasm_bindgen::prelude::*};
88

99
use crate::{cxf::CxfError, Cipher, CipherType, Login};
1010

crates/bitwarden-exporters/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub use error::ExportError;
2626
#[cfg_attr(feature = "uniffi", derive(uniffi::Enum))]
2727
#[cfg_attr(
2828
feature = "wasm",
29-
derive(serde::Serialize, serde::Deserialize, tsify_next::Tsify),
29+
derive(serde::Serialize, serde::Deserialize, tsify::Tsify),
3030
tsify(into_wasm_abi, from_wasm_abi)
3131
)]
3232
pub enum ExportFormat {

crates/bitwarden-generators/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ keywords.workspace = true
1616

1717
[features]
1818
uniffi = ["dep:uniffi"] # Uniffi bindings
19-
wasm = ["dep:tsify-next", "dep:wasm-bindgen"]
19+
wasm = ["dep:tsify", "dep:wasm-bindgen"]
2020

2121
[dependencies]
2222
bitwarden-core = { workspace = true, features = ["internal"] }
@@ -28,7 +28,7 @@ schemars = { workspace = true }
2828
serde = { workspace = true }
2929
serde_json = { workspace = true }
3030
thiserror = { workspace = true }
31-
tsify-next = { workspace = true, optional = true }
31+
tsify = { workspace = true, optional = true }
3232
uniffi = { workspace = true, optional = true }
3333
wasm-bindgen = { workspace = true, optional = true }
3434

crates/bitwarden-generators/src/passphrase.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use schemars::JsonSchema;
55
use serde::{Deserialize, Serialize};
66
use thiserror::Error;
77
#[cfg(feature = "wasm")]
8-
use tsify_next::Tsify;
8+
use tsify::Tsify;
99

1010
use crate::util::capitalize_first_letter;
1111

crates/bitwarden-generators/src/password.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use schemars::JsonSchema;
66
use serde::{Deserialize, Serialize};
77
use thiserror::Error;
88
#[cfg(feature = "wasm")]
9-
use tsify_next::Tsify;
9+
use tsify::Tsify;
1010

1111
#[bitwarden_error(flat)]
1212
#[derive(Debug, Error)]

crates/bitwarden-generators/src/username.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use schemars::JsonSchema;
66
use serde::{Deserialize, Serialize};
77
use thiserror::Error;
88
#[cfg(feature = "wasm")]
9-
use tsify_next::Tsify;
9+
use tsify::Tsify;
1010

1111
use crate::util::capitalize_first_letter;
1212

@@ -41,7 +41,7 @@ pub enum AppendType {
4141
#[cfg_attr(feature = "uniffi", derive(uniffi::Enum))]
4242
#[cfg_attr(
4343
feature = "wasm",
44-
derive(tsify_next::Tsify),
44+
derive(tsify::Tsify),
4545
tsify(into_wasm_abi, from_wasm_abi)
4646
)]
4747
/// Configures the email forwarding service to use.
@@ -78,7 +78,7 @@ pub enum ForwarderServiceType {
7878
#[cfg_attr(feature = "uniffi", derive(uniffi::Enum))]
7979
#[cfg_attr(
8080
feature = "wasm",
81-
derive(tsify_next::Tsify),
81+
derive(tsify::Tsify),
8282
tsify(into_wasm_abi, from_wasm_abi)
8383
)]
8484
pub enum UsernameGeneratorRequest {

crates/bitwarden-ipc/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ keywords.workspace = true
1111

1212
[features]
1313
wasm = [
14-
"dep:tsify-next",
14+
"dep:tsify",
1515
"dep:wasm-bindgen",
1616
"dep:wasm-bindgen-futures",
1717
"dep:js-sys",
@@ -25,7 +25,7 @@ serde = { workspace = true }
2525
serde_json = { workspace = true }
2626
thiserror = { workspace = true }
2727
tokio = { features = ["sync", "time"], workspace = true }
28-
tsify-next = { workspace = true, optional = true }
28+
tsify = { workspace = true, optional = true }
2929
wasm-bindgen = { workspace = true, optional = true }
3030
wasm-bindgen-futures = { workspace = true, optional = true }
3131

crates/bitwarden-ipc/src/endpoint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use serde::{Deserialize, Serialize};
22
#[cfg(feature = "wasm")]
3-
use {tsify_next::Tsify, wasm_bindgen::prelude::*};
3+
use {tsify::Tsify, wasm_bindgen::prelude::*};
44

55
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Hash)]
66
#[cfg_attr(feature = "wasm", derive(Tsify), tsify(into_wasm_abi, from_wasm_abi))]

crates/bitwarden-ssh/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ keywords.workspace = true
1818
[features]
1919
wasm = [
2020
"bitwarden-error/wasm",
21-
"dep:tsify-next",
21+
"dep:tsify",
2222
"dep:wasm-bindgen"
2323
] # WASM support
2424
uniffi = ["dep:uniffi"] # Uniffi bindings
@@ -38,7 +38,7 @@ ssh-key = { version = ">=0.6.7, <0.7", features = [
3838
"rsa",
3939
], default-features = false }
4040
thiserror = { workspace = true }
41-
tsify-next = { workspace = true, optional = true }
41+
tsify = { workspace = true, optional = true }
4242
uniffi = { workspace = true, optional = true }
4343
wasm-bindgen = { workspace = true, optional = true }
4444

0 commit comments

Comments
 (0)