mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
refactor(encoding): move varint/_wasm_varint/
to varint/_wasm/
(#2844)
This commit is contained in:
parent
f3aca16f92
commit
5c8bd0b6f6
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -176,7 +176,7 @@ jobs:
|
||||
run: deno task build:crypto --check
|
||||
|
||||
varint-wasm:
|
||||
name: "_wasm_varint/"
|
||||
name: "varint/_wasm"
|
||||
runs-on: ${{ github.repository_owner == 'denoland' && 'ubuntu-20.04-xl' || 'ubuntu-20.04' }}
|
||||
steps:
|
||||
- name: Clone repository
|
||||
@ -187,12 +187,12 @@ jobs:
|
||||
submodules: false
|
||||
persist-credentials: false
|
||||
|
||||
- name: Check for changes to _wasm_varint/
|
||||
- name: Check for changes to varint/_wasm
|
||||
id: source
|
||||
run: |-
|
||||
set -o errexit
|
||||
shopt -s inherit_errexit
|
||||
declare modifications="$(git diff --name-only HEAD~ -- ./encoding/varint/_wasm_varint)"
|
||||
declare modifications="$(git diff --name-only HEAD~ -- ./encoding/varint/_wasm)"
|
||||
declare modified="$([[ "$modifications" ]] && echo true || echo false)"
|
||||
echo "modified=$modified" >> $GITHUB_OUTPUT
|
||||
echo "Wasm varint source modified in this commit? $modified"
|
||||
@ -206,7 +206,7 @@ jobs:
|
||||
uses: hecrj/setup-rust-action@v1
|
||||
if: success() && steps.source.outputs.modified == 'true'
|
||||
with:
|
||||
# This must match the versions in encoding/_wasm_varint/rust-toolchain.toml
|
||||
# This must match the versions in encoding/varint/_wasm/rust-toolchain.toml
|
||||
rust-version: 1.64.0
|
||||
targets: wasm32-unknown-unknown
|
||||
components: rustfmt
|
||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,4 +4,4 @@
|
||||
.vim
|
||||
**/cov/
|
||||
/crypto/_wasm_crypto/target
|
||||
/encoding/varint/_wasm_varint/target
|
||||
/encoding/varint/_wasm/target
|
||||
|
2
_tools/check_deprecation.ts
Executable file → Normal file
2
_tools/check_deprecation.ts
Executable file → Normal file
@ -16,7 +16,7 @@ const EXCLUDED_PATHS = [
|
||||
"http/_negotiation",
|
||||
"crypto/_wasm_crypto",
|
||||
"crypto/_fnv",
|
||||
"encoding/varint/_wasm_varint",
|
||||
"encoding/varint/_wasm",
|
||||
"encoding/_yaml",
|
||||
"encoing/_toml",
|
||||
"_tools",
|
||||
|
@ -11,7 +11,7 @@ const EXCLUDED_DIRS = [
|
||||
"http/testdata",
|
||||
"node/testdata",
|
||||
"crypto/_wasm_crypto/target",
|
||||
"encoding/varint/_wasm_varint/target",
|
||||
"encoding/varint/_wasm/target",
|
||||
"_tools/testdata",
|
||||
];
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
"exclude": [
|
||||
".git",
|
||||
"crypto/_wasm_crypto/target",
|
||||
"encoding/varint/_wasm_varint/target",
|
||||
"encoding/varint/_wasm/target",
|
||||
"cov",
|
||||
"encoding/testdata/jsonc",
|
||||
"encoding/front_matter/testdata",
|
||||
@ -26,7 +26,7 @@
|
||||
"exclude": [
|
||||
".git",
|
||||
"crypto/_wasm_crypto/target",
|
||||
"encoding/varint/_wasm_varint/target",
|
||||
"encoding/varint/_wasm/target",
|
||||
"encoding/testdata/jsonc",
|
||||
"encoding/front_matter/testdata",
|
||||
"cov",
|
||||
@ -53,7 +53,7 @@
|
||||
"node:setup": "deno task node:list-remaining-tests && deno run --allow-read --allow-net --allow-write node/_tools/setup.ts",
|
||||
"node:check-unstable-api": "deno check --unstable ./node/module_all.ts",
|
||||
"build:crypto": "deno task --cwd crypto/_wasm_crypto wasmbuild",
|
||||
"build:varint": "deno task --cwd encoding/varint/_wasm_varint wasmbuild",
|
||||
"build:varint": "deno task --cwd encoding/varint/_wasm wasmbuild",
|
||||
"wasmbuild": "deno run --unstable -A https://deno.land/x/wasmbuild@0.10.0/main.ts --js-ext mjs --sync"
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
* @module
|
||||
*/
|
||||
|
||||
import { instantiate } from "./_wasm_varint/lib/deno_std_wasm_varint.generated.mjs";
|
||||
import { instantiate } from "./_wasm/lib/deno_std_wasm_varint.generated.mjs";
|
||||
|
||||
const U32MAX = 4_294_967_295;
|
||||
const U64MAX = 18_446_744_073_709_551_615n;
|
||||
|
Loading…
Reference in New Issue
Block a user