@tramvai/swc-integration 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -45,12 +45,17 @@ Refer to docs of [`@tramvai/cli`](references/cli/experiments.md#transpilation)
|
|
|
45
45
|
- To run all tests for all plugins run `cargo test` from the swc folder
|
|
46
46
|
- To run tests for single plugin either run `cargo test` from plugin directory or run `cargo test <plugin_name>`
|
|
47
47
|
|
|
48
|
+
### Formatting
|
|
49
|
+
|
|
50
|
+
1. Add `rustfmt` - `rustup component add rustfmt`
|
|
51
|
+
2. Run formatter - `cargo fmt`
|
|
52
|
+
|
|
48
53
|
### VS code
|
|
49
54
|
|
|
50
55
|
1. Install [rust-analyzer extension](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)
|
|
51
56
|
2. To make the extension work do either of two:
|
|
52
57
|
- Open `packages/swc` directory as a separate project in Vs Code
|
|
53
|
-
- Add to **workspace** VsCode settings `"rust-analyzer.linkedProjects": ["
|
|
58
|
+
- Add to **workspace** VsCode settings `"rust-analyzer.linkedProjects": ["Cargo.toml"]` - the value should be an relative path to the `Cargo.toml` file inside swc dir.
|
|
54
59
|
3. It is desirable to set clippy as a checker for rust code. To do so set `clippy` to setting `rust-analyzer.checkOnSave.command`
|
|
55
60
|
|
|
56
61
|
### Contributing
|
package/package.json
CHANGED
|
Binary file
|