Use Rust for the front-end too (#374)

Rust can compile to WASM, so let's use it for front-end code as well.

To compile the front-end:

```
cargo install cargo-web
cargo web deploy -p plume-front
```
This commit is contained in:
Baptiste Gelez
2018-12-25 11:51:40 +01:00
committed by GitHub
parent 22bc8c1d40
commit 3fce5d6a14
23 changed files with 1215 additions and 628 deletions
+5 -2
View File
@@ -25,6 +25,9 @@ stages:
- test and coverage
jobs:
include:
- stage: build
name: "Build front"
script: (cargo web -h || cargo install cargo-web) && cd plume-front && cargo web check
- stage: build
name: "Build with postgresql"
env:
@@ -43,7 +46,7 @@ jobs:
before_script: psql -c 'create database plume_tests;' -U postgres
script:
- |
cargo test --features "${FEATURES}" --no-default-features --all &&
cargo test --features "${FEATURES}" --no-default-features --all --exclude plume-front &&
./script/compute_coverage.sh
- stage: test and coverage
name: "Test with Sqlite backend"
@@ -52,5 +55,5 @@ jobs:
- RUSTFLAGS='-C link-dead-code' RUST_TEST_THREADS=1
script:
- |
cargo test --features "${FEATURES}" --no-default-features --all &&
cargo test --features "${FEATURES}" --no-default-features --all --exclude plume-front &&
./script/compute_coverage.sh