Skip to content

Commit

Permalink
Merge #8
Browse files Browse the repository at this point in the history
8: Add std and inlay hints r=matklad a=HKalbasi

I actually done this as an experiment for adding [RA to playground](rust-lang/rust-playground#357) but I think this demo can also take advantage of this PR and by merging it, future people don't need to repeat my work.

Fix #7

This satisfies me, but it is not great. Specially it is slower than RA on vscode, and I don't know why it should be that slow. Suggestions on this (and other problems) are welcome.

Co-authored-by: hamidreza kalbasi <[email protected]>
Co-authored-by: HKalbasi <[email protected]>
  • Loading branch information
3 people authored Sep 14, 2021
2 parents 3cb4342 + f75e1ab commit 36f60de
Show file tree
Hide file tree
Showing 23 changed files with 715 additions and 198 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ jobs:
node-version: '15'

- name: Build wasm
run: wasm-pack build --target web
run: |
cd rust-pack
cargo run
cd ../ra-wasm
wasm-pack build --target web
- name: Install www
uses: borales/[email protected]
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/netlify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ jobs:
node-version: '15'

- name: Build wasm
run: wasm-pack build --target web
run: |
cd rust-pack
cargo run
cd ../ra-wasm
wasm-pack build --target web
- name: Install www
uses: borales/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/.bundle
/vendor
/target
target
/_site
.sass-cache
.jekyll-cache
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
To run:

```shell
$ cd rust-pack
$ cargo run
$ cd ../ra-wasm
$ wasm-pack build --target web
$ cd www
$ cd ../www
$ yarn
$ yarn start
```
File renamed without changes.
1 change: 1 addition & 0 deletions Cargo.lock → ra-wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions Cargo.toml → ra-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ edition = "2018"
[lib]
crate-type = ["cdylib"]

[features]
dev = ["console_error_panic_hook"]

[dependencies]
console_error_panic_hook = { version = "0.1.6", optional = true }
console_error_panic_hook = { version = "0.1.6" }
instant = { version = "0.1", features = ["wasm-bindgen"] }
log = { version = "0.4.14", features = ["release_max_level_warn"] }
serde = { version = "1.0.125", features = ["derive"] }
Expand All @@ -22,4 +19,5 @@ wasm-bindgen = "0.2.72"
wasm-bindgen-rayon = "1.0.2"

ide = { version = "0.0.44", package = "ra_ap_ide" }
cfg = { version = "0.0.44", package = "ra_ap_cfg" }
ide_db = { version = "0.0.44", package = "ra_ap_ide_db" }
Loading

0 comments on commit 36f60de

Please sign in to comment.