lib_um_crypto_rust/um_wasm_loader
2024-09-03 00:17:54 +01:00
..
src build: experimental build with node package 2024-09-03 00:17:54 +01:00
.gitignore build: experimental build with node package 2024-09-03 00:17:54 +01:00
.npmrc build: experimental build with node package 2024-09-03 00:17:54 +01:00
build.js build: experimental build with node package 2024-09-03 00:17:54 +01:00
package.json build: experimental build with node package 2024-09-03 00:17:54 +01:00
pnpm-lock.yaml build: experimental build with node package 2024-09-03 00:17:54 +01:00
Readme.MD build: experimental build with node package 2024-09-03 00:17:54 +01:00
Release.MD build: experimental build with node package 2024-09-03 00:17:54 +01:00
rollup.config.mjs build: experimental build with node package 2024-09-03 00:17:54 +01:00

@um/crypto

用于 Unlock Music 的加解密支持库。

使用 Rust 编写,并使用 wasm-pack 转义到 WebAssembly 格式,用于在不同的平台(浏览器)运行。

使用

在项目根目录下,建立或更改 .npmrc 文件,确保下述行存在:

@um:registry=https://git.unlock-music.dev/api/packages/um/npm/

使用你喜欢的包管理器安装,例如 npmpnpm

# 使用 npm
npm install @um/crypto

# 使用 pnpm
pnpm install @um/crypto

具体能干啥… 参考源码吧。