Skip to content

Commit

Permalink
Remove less dependency from Rust build for portability
Browse files Browse the repository at this point in the history
  • Loading branch information
texodus committed Nov 20, 2022
1 parent 59dcef6 commit 8c909f5
Show file tree
Hide file tree
Showing 23 changed files with 515 additions and 203 deletions.
4 changes: 2 additions & 2 deletions packages/perspective-jupyterlab/src/less/index.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "@finos/perspective-viewer/src/less/fonts.less";
@import "@finos/perspective-viewer/src/themes/themes.less";
@import "@finos/perspective-viewer/src/themes/fonts.less";
@import "@finos/perspective-viewer/dist/css/themes.css";

div.PSPContainer {
overflow: auto;
Expand Down
2 changes: 1 addition & 1 deletion packages/perspective-viewer-d3fc/src/less/chart.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
*/

@import "../../../../rust/perspective-viewer/src/less/variables.less";
@import "../../../../rust/perspective-viewer/src/themes/variables.less";
@import "./gradient_colors.less";
@import "./series_colors.less";

Expand Down
2 changes: 0 additions & 2 deletions packages/perspective-workspace/src/less/tabbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
*
*/

@import "../../../../rust/perspective-viewer/src/less/variables.less";

.p-TabBar-tabLabel {
background-color: transparent;
border: none;
Expand Down
4 changes: 2 additions & 2 deletions packages/perspective-workspace/src/themes/material-dark.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
*
*/

@import "@finos/perspective-viewer/src/less/variables.less";
@import "@finos/perspective-viewer/src/themes/material-dark.less";
@import "@finos/perspective-viewer/src/themes/variables.less";
@import "@finos/perspective-viewer/dist/css/material-dark.css";

@import (reference) "./material.less";

Expand Down
2 changes: 1 addition & 1 deletion packages/perspective-workspace/src/themes/material.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
*/

@import "@finos/perspective-viewer/src/themes/material.less";
@import "@finos/perspective-viewer/dist/css/material.css";


perspective-workspace,
Expand Down
9 changes: 8 additions & 1 deletion rust/perspective-viewer/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
[build]
target = "wasm32-unknown-unknown"
target-dir = "build"

[target.wasm32-unknown-unknown]
rustflags = ["--cfg=web_sys_unstable_apis"]
runner = 'wasm-bindgen-test-runner'
runner = 'wasm-bindgen-test-runner'

[unstable]
build-std = ["std", "panic_abort"]
build-std-features = ["panic_immediate_abort"]
Loading

0 comments on commit 8c909f5

Please sign in to comment.