Skip to content

Commit

Permalink
use wasm-bindgen's fs.readFileSync loader in node (#17)
Browse files Browse the repository at this point in the history
* use wasm-bindgen's fs.readFileSync loader in node

* remove index.ts

* update rust deps

* bump to 0.4.0 and add eslint-plugin because tooling was looking for it

* bump cargo version
  • Loading branch information
jbr authored Sep 29, 2022
1 parent e98691b commit 3495002
Show file tree
Hide file tree
Showing 4 changed files with 2,631 additions and 231 deletions.
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hpke-dispatch"
version = "0.3.0"
version = "0.4.0"
edition = "2021"
description = "runtime algorithmic selection for hybrid public key encryption"
license = "MPL-2.0"
Expand Down Expand Up @@ -36,14 +36,14 @@ hpke = { version = "0.9.0", default-features = false, features = ["std"] }
zeroize = "1.3"

[dependencies.serde_crate]
version = "1.0.136"
version = "1.0.145"
features = ["derive"]
optional = true
package = "serde"

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.80"
getrandom = { version = "0.2.6", features = ["js", "js-sys"] }
wasm-bindgen = "0.2.83"
getrandom = { version = "0.2.7", features = ["js", "js-sys"] }

[lib]
crate-type = ["cdylib", "rlib"]
Expand All @@ -53,6 +53,6 @@ lto = true

[dev-dependencies]
hex = { version = "0.4.3", features = ["serde"] }
serde = { version = "1.0.136", features = ["derive"] }
serde_json = "1.0.79"
wasm-bindgen-test = "0.3.30"
serde = { version = "1.0.145", features = ["derive"] }
serde_json = "1.0.85"
wasm-bindgen-test = "0.3.33"
Loading

0 comments on commit 3495002

Please sign in to comment.