Skip to content

Commit 600f846

Browse files
bkioshnstevenj
andauthored
fix(rust/catalyst-types): Make catalyst-types WASM compatible (#470)
* feat: make wasm a feature Signed-off-by: bkioshn <[email protected]> * feat: move hashing from cat-type to cbc-type Signed-off-by: bkioshn <[email protected]> * fix: remove unused dep Signed-off-by: bkioshn <[email protected]> * fix: remove feat and use target arch Signed-off-by: bkioshn <[email protected]> * fix: revert add hash files Signed-off-by: bkioshn <[email protected]> * fix: bump minor version Signed-off-by: bkioshn <[email protected]> * fix: revert Signed-off-by: bkioshn <[email protected]> * Update rust/catalyst-types/Cargo.toml Co-authored-by: Steven Johnson <[email protected]> --------- Signed-off-by: bkioshn <[email protected]> Co-authored-by: Steven Johnson <[email protected]>
1 parent 809b3db commit 600f846

File tree

5 files changed

+6
-408
lines changed

5 files changed

+6
-408
lines changed

rust/catalyst-types/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "catalyst-types"
3-
version = "0.0.5"
3+
version = "0.0.6"
44
edition.workspace = true
55
license.workspace = true
66
authors.workspace = true
@@ -16,24 +16,24 @@ workspace = true
1616
name = "catalyst_types"
1717

1818
[dependencies]
19-
blake2b_simd = "1.0.2"
2019
displaydoc = "0.2.5"
2120
ed25519-dalek = "2.1.1"
2221
fluent-uri = "0.3.2"
23-
hex = "0.4.3"
2422
minicbor = { version = "0.25.1", features = ["std"] }
2523
num-traits = "0.2.19"
2624
orx-concurrent-vec = { version = "3.6.0", features = ["serde"] }
27-
pallas-crypto = { version = "0.33.0" }
2825
serde = { version = "1.0.217", features = ["derive", "rc"] }
2926
thiserror = "2.0.11"
3027
base64-url = "3.0.0"
3128
uuid = { version = "1.12.0", features = ["v4", "v7", "serde"] }
3229
chrono = "0.4.39"
33-
fmmap = { version = "0.4.0", features = ["sync", "tokio"] }
3430
tracing = "0.1.41"
3531
strum = { version = "0.27.1", features = ["derive"] }
3632

33+
# Only include fmmap for non-wasm32 targets
34+
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
35+
fmmap = { version = "0.4.0", features = ["sync"] }
36+
3737
[dev-dependencies]
3838
ed25519-dalek = { version = "2.1.1", features = ["rand_core"] }
3939
proptest = { version = "1.6.0", features = ["attr-macro"] }

rust/catalyst-types/src/hash_wrapper.rs

Lines changed: 0 additions & 143 deletions
This file was deleted.

0 commit comments

Comments
 (0)