Skip to content

Commit

Permalink
Merge pull request #111 from availproject/marko/wascompatbile-flag
Browse files Browse the repository at this point in the history
Marko/wascompatbile flag
  • Loading branch information
Leouarz authored Nov 29, 2024
2 parents b845db8 + 2c37f60 commit c711cb9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions kate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ serde = [ "dep:serde" ]

extended-columns = []
maximum-block-size = []
wasmcompatible = ["kate-recovery/wasmcompatible"]

[[bench]]
name = "reconstruct"
Expand Down
7 changes: 4 additions & 3 deletions kate/recovery/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ edition = "2018"
license = "Apache-2.0"

[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.2.15", features = ["js"] }
sp-io = { workspace = true, features = [ "disable_panic_handler" ] }
getrandom = { version = "0.2.15", default-features = false, features = ["js"], optional = true }
sp-io = { workspace = true, default-features = false, feautes = ["disable_panic_handler"], optional = true }

[dependencies]
# Internals
avail-core = { path = "../../core", default-features = false }
dusk-plonk = { workspace = true }
dusk-plonk = { workspace = true, optional = true }

# Parity
codec = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] }
Expand Down Expand Up @@ -47,5 +47,6 @@ std = [
"sp-arithmetic/std",
"sp-std/std",
]
wasmcompatible = ["dep:getrandom", "dep:sp-io", "dep:dusk-plonk"]

serde = [ "dep:serde" ]
1 change: 1 addition & 0 deletions kate/recovery/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ pub mod sparse_slice_read;
#[cfg(feature = "std")]
pub mod testnet;

#[cfg(any(feature = "std", feature = "wasmcompatible"))]
pub mod couscous;

0 comments on commit c711cb9

Please sign in to comment.