From e08f567a28da9cda531e7ad99d0e990463c5f835 Mon Sep 17 00:00:00 2001 From: Andrew Stein Date: Thu, 11 Aug 2022 22:52:53 -0400 Subject: [PATCH] Publish to crates.io --- examples/blocks/src/streaming/streaming.js | 2 +- rust/perspective-viewer/Cargo.lock | 177 ++------------------- rust/perspective-viewer/Cargo.toml | 17 +- 3 files changed, 30 insertions(+), 166 deletions(-) diff --git a/examples/blocks/src/streaming/streaming.js b/examples/blocks/src/streaming/streaming.js index ab3dc00259..a18a7f311a 100644 --- a/examples/blocks/src/streaming/streaming.js +++ b/examples/blocks/src/streaming/streaming.js @@ -90,6 +90,6 @@ window.addEventListener("DOMContentLoaded", async function () { // Add more rows every 50ms using the `update()` method on the `table` directly. (function postRow() { table.update(newRows()); - setTimeout(postRow, 50); + setTimeout(postRow, 10); })(); }); diff --git a/rust/perspective-viewer/Cargo.lock b/rust/perspective-viewer/Cargo.lock index 6f55e3b67b..63208f1e97 100644 --- a/rust/perspective-viewer/Cargo.lock +++ b/rust/perspective-viewer/Cargo.lock @@ -8,12 +8,6 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" -[[package]] -name = "anymap2" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d301b3b94cb4b2f23d7917810addbbaff90738e0ca2be692bd027e70d7e0330c" - [[package]] name = "arrayvec" version = "0.4.12" @@ -153,15 +147,6 @@ version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" -[[package]] -name = "bincode" -version = "1.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" -dependencies = [ - "serde", -] - [[package]] name = "blocking" version = "1.2.0" @@ -327,22 +312,6 @@ dependencies = [ "miniz_oxide", ] -[[package]] -name = "fnv" -version = "1.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" - -[[package]] -name = "form_urlencoded" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191" -dependencies = [ - "matches", - "percent-encoding", -] - [[package]] name = "futures" version = "0.3.21" @@ -449,21 +418,18 @@ dependencies = [ [[package]] name = "gloo" -version = "0.7.0" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03e691526c3972d1fda35453f6df29925edea014dc75a2dede7661527e9439f0" +checksum = "23947965eee55e3e97a5cd142dd4c10631cc349b48cecca0ed230fd296f568cd" dependencies = [ "gloo-console", "gloo-dialogs", "gloo-events", "gloo-file", - "gloo-history", - "gloo-net", "gloo-render", "gloo-storage", "gloo-timers", "gloo-utils", - "gloo-worker", ] [[package]] @@ -510,42 +476,6 @@ dependencies = [ "web-sys", ] -[[package]] -name = "gloo-history" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f81af52c0d31e86242eecefe1ed4d066deb79cfb80f9f7da0847fac417396bfe" -dependencies = [ - "gloo-events", - "gloo-utils", - "serde", - "serde-wasm-bindgen", - "serde_urlencoded", - "thiserror", - "wasm-bindgen", - "web-sys", -] - -[[package]] -name = "gloo-net" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "351e6f94c76579cc9f9323a15f209086fc7bd428bff4288723d3a417851757b2" -dependencies = [ - "futures-channel", - "futures-core", - "futures-sink", - "gloo-utils", - "js-sys", - "pin-project", - "serde", - "serde_json", - "thiserror", - "wasm-bindgen", - "wasm-bindgen-futures", - "web-sys", -] - [[package]] name = "gloo-render" version = "0.1.1" @@ -594,23 +524,6 @@ dependencies = [ "web-sys", ] -[[package]] -name = "gloo-worker" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09110b5555bcafe508cee0fb94308af9aac7a85f980d3c88b270d117c6c6911d" -dependencies = [ - "anymap2", - "bincode", - "gloo-console", - "gloo-utils", - "js-sys", - "serde", - "slab", - "wasm-bindgen", - "web-sys", -] - [[package]] name = "hashbrown" version = "0.12.3" @@ -738,12 +651,6 @@ dependencies = [ "value-bag", ] -[[package]] -name = "matches" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" - [[package]] name = "memchr" version = "2.5.0" @@ -823,14 +730,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c520e05135d6e763148b6426a837e239041653ba7becd2e538c076c738025fc" [[package]] -name = "percent-encoding" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" - -[[package]] -name = "perspective-viewer" -version = "1.0.8" +name = "perspective" +version = "1.6.5" dependencies = [ "async-std", "async-trait", @@ -855,26 +756,6 @@ dependencies = [ "yew", ] -[[package]] -name = "pin-project" -version = "1.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78203e83c48cffbe01e4a2d35d566ca4de445d79a85372fc64e378bfc812a260" -dependencies = [ - "pin-project-internal", -] - -[[package]] -name = "pin-project-internal" -version = "1.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "710faf75e1b33345361201d36d04e98ac1ed8909151a017ed384700836104c74" -dependencies = [ - "proc-macro2 1.0.40", - "quote 1.0.20", - "syn 1.0.98", -] - [[package]] name = "pin-project-lite" version = "0.2.9" @@ -900,16 +781,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "prettyplease" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da6ffbe862780245013cb1c0a48c4e44b7d665548088f91f6b90876d0625e4c2" -dependencies = [ - "proc-macro2 1.0.40", - "syn 1.0.98", -] - [[package]] name = "proc-macro-error" version = "1.0.4" @@ -1004,6 +875,12 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ea6a9290e3c9cf0f18145ef7ffa62d68ee0bf5fcd651017e586dc7fd5da448c2" +[[package]] +name = "scoped-tls-hkt" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2e9d7eaddb227e8fbaaa71136ae0e1e913ca159b86c7da82f3e8f0044ad3a63" + [[package]] name = "serde" version = "1.0.140" @@ -1013,18 +890,6 @@ dependencies = [ "serde_derive", ] -[[package]] -name = "serde-wasm-bindgen" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "618365e8e586c22123d692b72a7d791d5ee697817b65a218cdf12a98870af0f7" -dependencies = [ - "fnv", - "js-sys", - "serde", - "wasm-bindgen", -] - [[package]] name = "serde_derive" version = "1.0.140" @@ -1047,18 +912,6 @@ dependencies = [ "serde", ] -[[package]] -name = "serde_urlencoded" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" -dependencies = [ - "form_urlencoded", - "itoa 1.0.2", - "ryu", - "serde", -] - [[package]] name = "slab" version = "0.4.7" @@ -1307,15 +1160,16 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "yew" version = "0.19.3" -source = "git+https://github.com/yewstack/yew?rev=3760c5f8b56a8ac1730356f4ddbbdc949b9f120c#3760c5f8b56a8ac1730356f4ddbbdc949b9f120c" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a1ccb53e57d3f7d847338cf5758befa811cabe207df07f543c06f502f9998cd" dependencies = [ "console_error_panic_hook", "gloo", "gloo-utils", "indexmap", "js-sys", + "scoped-tls-hkt", "slab", - "thiserror", "wasm-bindgen", "wasm-bindgen-futures", "web-sys", @@ -1325,12 +1179,11 @@ dependencies = [ [[package]] name = "yew-macro" version = "0.19.3" -source = "git+https://github.com/yewstack/yew?rev=3760c5f8b56a8ac1730356f4ddbbdc949b9f120c#3760c5f8b56a8ac1730356f4ddbbdc949b9f120c" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fab79082b556d768d6e21811869c761893f0450e1d550a67892b9bce303b7bb" dependencies = [ "boolinator", "lazy_static", - "once_cell", - "prettyplease", "proc-macro-error", "proc-macro2 1.0.40", "quote 1.0.20", diff --git a/rust/perspective-viewer/Cargo.toml b/rust/perspective-viewer/Cargo.toml index 2d6c2be9b2..d4dd93ded9 100644 --- a/rust/perspective-viewer/Cargo.toml +++ b/rust/perspective-viewer/Cargo.toml @@ -1,12 +1,23 @@ [package] -name = "perspective-viewer" -version = "1.0.8" +name = "perspective" +version = "1.6.5" authors = ["Andrew Stein "] edition = "2021" -description = "A frontend for Perspective" +description = "A data visualization and analytics component, especially well-suited for large and/or streaming datasets." repository = "https://github.com/finos/perspective" +license = "Apache-2.0" +homepage = "https://perspective.finos.org" +keywords = ["experimental"] +include = [ + "build.rs", + "src/**/*", + "build/css/**/*", + "Cargo.toml", + "package.json", +] [lib] +name = "perspective_viewer" crate-type = ["cdylib", "rlib"] path = "src/rust/lib.rs"