From d6ecc75b7928b398278540c811deaf0dffecd434 Mon Sep 17 00:00:00 2001 From: Daniel Thompson-Yvetot Date: Mon, 11 Jan 2021 17:19:28 +0100 Subject: [PATCH 1/3] feat(wasm): use feature flag to enhance uuid Signed-off-by: Daniel Thompson-Yvetot --- Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 583d64b9..96242d49 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ config = "0.10.1" futures = { version = "0.3.4", features = ["thread-pool"] } rand = "0.7" regex = "1" -uuid = { version = "0.8.1", features = ["v4"] } +uuid = { package = "uuid", version = "0.8.1", features = ["v4"] } pin-utils = "0.1.0" slog = "2.5" slog-stdlog = "4.0" @@ -32,3 +32,7 @@ dashmap = "3" [dev-dependencies] riker-testkit = "0.1.0" log = "0.4" + +[features] +default = [] +wasm = ["uuid/wasm-bindgen"] From 62052a6769e13ecff8558f8b08492504a5a625c5 Mon Sep 17 00:00:00 2001 From: Daniel Thompson-Yvetot Date: Mon, 11 Jan 2021 17:20:55 +0100 Subject: [PATCH 2/3] feat(wasm): use feature flag to enhance uuid Signed-off-by: Daniel Thompson-Yvetot --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 96242d49..678511c5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ config = "0.10.1" futures = { version = "0.3.4", features = ["thread-pool"] } rand = "0.7" regex = "1" -uuid = { package = "uuid", version = "0.8.1", features = ["v4"] } +uuid = { version = "0.8.1", features = ["v4"] } pin-utils = "0.1.0" slog = "2.5" slog-stdlog = "4.0" From 1d409acf44c3e4b080e4815ede2eb18a5375101b Mon Sep 17 00:00:00 2001 From: Daniel Thompson-Yvetot Date: Tue, 12 Jan 2021 08:28:03 +0100 Subject: [PATCH 3/3] feat(README): add note about WASM Signed-off-by: Daniel Thompson-Yvetot --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2b04e1c9..d6a6b625 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ Riker provides: - Out-of-the-box, configurable, non-blocking logging - Command Query Responsibility Segregation (CQRS) - Easily run futures +- Can be used with wasm (Just set `wasm` feature flag) [Website](https://riker.rs) | [API Docs](https://docs.rs/riker)