diff --git a/Cargo.lock b/Cargo.lock index 9b8063cb..0ed3fabf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -379,6 +379,44 @@ dependencies = [ "rand_core 0.6.4", ] +[[package]] +name = "crypto-helper" +version = "0.10.0" +dependencies = [ + "asn1-parser", + "base64 0.22.0", + "bcrypt", + "flate2", + "gloo-timers 0.3.0", + "hex", + "hmac-sha256", + "hmac-sha512", + "js-sys", + "log", + "md5", + "oid", + "paste", + "picky", + "picky-krb", + "rand 0.9.0-alpha.0", + "rand_chacha 0.9.0-alpha.0", + "rsa", + "serde", + "serde_json", + "serde_qs", + "sha1 0.11.0-pre.3", + "similar", + "time", + "wasm-bindgen", + "wasm-logger", + "web-sys", + "yew", + "yew-agent", + "yew-hooks", + "yew-notifications", + "yew-router", +] + [[package]] name = "curve25519-dalek" version = "4.1.2" @@ -614,6 +652,7 @@ checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0" dependencies = [ "futures-channel", "futures-core", + "futures-executor", "futures-io", "futures-sink", "futures-task", @@ -636,6 +675,17 @@ version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" +[[package]] +name = "futures-executor" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + [[package]] name = "futures-io" version = "0.3.30" @@ -2205,6 +2255,9 @@ name = "similar" version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32fea41aca09ee824cc9724996433064c89f7777e60762749a4170a14abbfa21" +dependencies = [ + "serde", +] [[package]] name = "slab" @@ -2532,43 +2585,6 @@ dependencies = [ "web-sys", ] -[[package]] -name = "web-app" -version = "0.10.0" -dependencies = [ - "asn1-parser", - "base64 0.22.0", - "bcrypt", - "flate2", - "gloo-timers 0.3.0", - "hex", - "hmac-sha256", - "hmac-sha512", - "js-sys", - "log", - "md5", - "oid", - "paste", - "picky", - "picky-krb", - "rand 0.9.0-alpha.0", - "rand_chacha 0.9.0-alpha.0", - "rsa", - "serde", - "serde_json", - "serde_qs", - "sha1 0.11.0-pre.3", - "similar", - "time", - "wasm-bindgen", - "wasm-logger", - "web-sys", - "yew", - "yew-hooks", - "yew-notifications", - "yew-router", -] - [[package]] name = "web-sys" version = "0.3.69" @@ -2691,6 +2707,31 @@ dependencies = [ "yew-macro", ] +[[package]] +name = "yew-agent" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e27eaca61ea9d0e1a6589dce592283b0e62ced527d8a8b28447957295d588f5" +dependencies = [ + "futures", + "gloo-worker 0.4.0", + "serde", + "wasm-bindgen", + "yew", + "yew-agent-macro", +] + +[[package]] +name = "yew-agent-macro" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ad00f6c9436d25c9225ed0fd8eea27e6d2886c1387bf934afdf91e9131b8b77" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.53", +] + [[package]] name = "yew-hooks" version = "0.3.1" diff --git a/Cargo.toml b/Cargo.toml index 44f7e56e..eff6de25 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "web-app" +name = "crypto-helper" version = "0.10.0" description = "The crypto-helper is an online app that helps to work with the diferent crypto algorithms." edition = "2021" @@ -14,11 +14,20 @@ members = [ "crates/prop-strategies" ] +[[bin]] +name = "crypto-helper-app" +path = "src/bin/main.rs" + +[[bin]] +name = "worker" +path = "src/bin/worker.rs" + [dependencies] yew = { version = "0.21", features = ["csr"] } yew-router = "0.18" yew-notifications = { git = "https://github.com/TheBestTvarynka/yew-notifications.git", features = ["standard-notification"] } yew-hooks = "0.3" +yew-agent = "0.3" # wasm js-sys = "0.3" @@ -57,4 +66,4 @@ oid = { version = "0.2", default-features = false } paste = "1.0" # diff -similar = "2.4" \ No newline at end of file +similar = { version = "2.4", features = ["serde"] } \ No newline at end of file diff --git a/index.html b/index.html index 878295b5..01fc53ea 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,7 @@