Skip to content

Commit

Permalink
Remove matrix-sdk-crypto-js
Browse files Browse the repository at this point in the history
It now lives in its own repository at
https://github.com/matrix-org/matrix-rust-sdk-crypto-web
  • Loading branch information
jplatte committed Jul 13, 2023
1 parent 51ba448 commit 5abc781
Show file tree
Hide file tree
Showing 55 changed files with 5 additions and 10,680 deletions.
61 changes: 0 additions & 61 deletions .github/workflows/bindings_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ concurrency:

env:
CARGO_TERM_COLOR: always
MATRIX_SDK_CRYPTO_JS_PATH: bindings/matrix-sdk-crypto-js

jobs:
xtask:
Expand Down Expand Up @@ -57,66 +56,6 @@ jobs:
- name: Build library & generate bindings
run: target/debug/xtask ci bindings

lint-js-bindings:
name: lint [m]-crypto-js
runs-on: ubuntu-latest

steps:
- name: Checkout the repo
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3

- name: Install NPM dependencies
working-directory: bindings/matrix-sdk-crypto-js
run: npm install

- name: run lint
working-directory: bindings/matrix-sdk-crypto-js
run: npm run lint

test-matrix-sdk-crypto-js:
name: 🕸 [m]-crypto-js
if: github.event_name == 'push' || !github.event.pull_request.draft

runs-on: ubuntu-latest

steps:
- name: Checkout the repo
uses: actions/checkout@v3

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown

- name: Load cache
uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/head/main' }}

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20.0

- name: Install NPM dependencies
working-directory: ${{ env.MATRIX_SDK_CRYPTO_JS_PATH }}
run: npm install

- name: Build the WebAssembly + JavaScript binding
working-directory: ${{ env.MATRIX_SDK_CRYPTO_JS_PATH }}
run: npm run build

- name: Test the JavaScript binding
working-directory: ${{ env.MATRIX_SDK_CRYPTO_JS_PATH }}
run: npm run test

- name: Build the documentation
working-directory: ${{ env.MATRIX_SDK_CRYPTO_JS_PATH }}
run: npm run doc

test-apple:
name: matrix-rust-components-swift
needs: xtask
Expand Down
17 changes: 2 additions & 15 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,32 +45,19 @@ jobs:
save-if: ${{ github.ref == 'refs/head/main' }}

# Keep in sync with xtask docs
- name: Build rust documentation
- name: Build documentation
env:
# Work around https://github.com/rust-lang/cargo/issues/10744
CARGO_TARGET_APPLIES_TO_HOST: "true"
RUSTDOCFLAGS: "--enable-index-page -Zunstable-options --cfg docsrs -Dwarnings"
run:
cargo doc --no-deps --workspace --features docsrs

- name: Build `matrix-sdk-crypto-js` doc
run: |
cd bindings/matrix-sdk-crypto-js
npm install
npm run build && npm run doc
- name: Prepare the doc hierarchy
shell: bash
run: |
mkdir -p doc/bindings/matrix-sdk-crypto-js/
mv target/doc/* doc/
mv bindings/matrix-sdk-crypto-js/docs/* doc/bindings/matrix-sdk-crypto-js/
- name: Upload artifact
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v1
with:
path: './doc/'
path: './target/doc/'

- name: Deploy to GitHub Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
Expand Down
56 changes: 0 additions & 56 deletions .github/workflows/release_crypto_js.yml

This file was deleted.

23 changes: 0 additions & 23 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
members = [
"benchmarks",
"bindings/matrix-sdk-crypto-ffi",
"bindings/matrix-sdk-crypto-js",
"bindings/matrix-sdk-ffi",
"crates/*",
"testing/*",
Expand Down
6 changes: 3 additions & 3 deletions bindings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ maintained by the owners of the Matrix Rust SDK project.
[`matrix-sdk`] crate via [`matrix-sdk-ffi`],
* [`matrix-sdk-crypto-ffi`], UniFFI (Kotlin, Swift, Python, Ruby) bindings of the [`matrix-sdk-crypto`]
crate,
* [`matrix-sdk-crypto-js`], JavaScript bindings of the
[`matrix-sdk-crypto`] crate,
* [`matrix-sdk-ffi`], UniFFI bindings of the [`matrix-sdk`] crate.

There are also external bindings in other repositories:

* [`matrix-sdk-crypto-js`], JavaScript bindings of the
[`matrix-sdk-crypto`] crate,
* [`matrix-sdk-crypto-nodejs`], Node.js bindings of the
[`matrix-sdk-crypto`] crate

[`apple`]: ./apple
[`matrix-sdk-crypto-ffi`]: ./matrix-sdk-crypto-ffi
[`matrix-sdk-crypto-js`]: ./matrix-sdk-crypto-js
[`matrix-sdk-crypto`]: ../crates/matrix-sdk-crypto
[`matrix-sdk-ffi`]: ./matrix-sdk-ffi
[`matrix-sdk`]: ../crates/matrix-sdk

[`matrix-sdk-crypto-js`]: https://github.com/matrix-org/matrix-rust-sdk-crypto-web
[`matrix-sdk-crypto-nodejs`]: https://github.com/matrix-org/matrix-rust-sdk-crypto-nodejs

## Contributing
Expand Down
2 changes: 0 additions & 2 deletions bindings/matrix-sdk-crypto-js/.cargo/config

This file was deleted.

3 changes: 0 additions & 3 deletions bindings/matrix-sdk-crypto-js/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion bindings/matrix-sdk-crypto-js/.prettierignore

This file was deleted.

9 changes: 0 additions & 9 deletions bindings/matrix-sdk-crypto-js/.prettierrc.js

This file was deleted.

2 changes: 0 additions & 2 deletions bindings/matrix-sdk-crypto-js/.yarnrc

This file was deleted.

94 changes: 0 additions & 94 deletions bindings/matrix-sdk-crypto-js/CHANGELOG.md

This file was deleted.

Loading

0 comments on commit 5abc781

Please sign in to comment.