Skip to content

Commit

Permalink
build(cargo): setup next-binding package (vercel#2813)
Browse files Browse the repository at this point in the history
* build(cargo): setup next-binding package

* build(cargo): update dependencies

* style(toml): update config

* ci(actions): check next-binding

* feat(next-binding): reexports

* build(cargo): update lockfile
  • Loading branch information
kwonoj authored and elitan committed Dec 6, 2022
1 parent 97befc6 commit e816a15
Show file tree
Hide file tree
Showing 8 changed files with 1,774 additions and 40 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -272,6 +272,8 @@ jobs:

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
target: wasm32-unknown-unknown

- name: Setup Go
uses: ./.github/actions/setup-go
Expand All @@ -287,6 +289,16 @@ jobs:
command: check
args: --workspace --all-targets

- name: Run cargo feature check for next-binding
run: |
# Known set of feature combinations we need to support
# next-swc/core
cargo check -p next-binding --features __swc_core_next_core,__swc_core_binding_napi_plugin,__swc_core_testing_transform,__swc_testing,__swc_transform_styled_components,__swc_transform_styled_jsx,__swc_transform_emotion,__swc_transform_modularize_imports
# next-swc/napi
cargo check -p next-binding --features __swc_core_binding_napi,__swc_core_binding_napi_plugin,__feature_next_dev_server,__feature_node_file_trace,__feature_mdx_rs
# next-swc/wasm
cargo check -p next-binding --features __swc_core_binding_wasm,__swc_core_binding_wasm_plugin,__feature_mdx_rs --target wasm32-unknown-unknown
rust_lint:
needs: [determine_jobs, rust_prepare]
if: needs.determine_jobs.outputs.rust == 'true'
Expand Down
2 changes: 2 additions & 0 deletions .taplo.toml
Expand Up @@ -5,3 +5,5 @@ keys = ["dependencies", "*-dependencies"]

[rule.formatting]
reorder_keys = true
align_entries = true
indent_tables = true

0 comments on commit e816a15

Please sign in to comment.