Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.DS_Store
.idea
.vscode/*
!.vscode/settings.json
.vscode
.zed
.fleet
.vim
**/cov/
Expand Down
4 changes: 0 additions & 4 deletions .vscode/settings.json

This file was deleted.

8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ console.log(dump(buffer));
purpose lexers/tokenizers
- [types](https://jsr.io/@stdext/types): The types package, contains general
purpose type helpers
- [validation](https://jsr.io/@stdext/validation): The validation package,
contains a Standard Schema compatible validator and schemas

## Versioning

Expand All @@ -68,7 +70,11 @@ STD, but minor and patch versions will be separated.

We allow the following dependencies for JS:

- [Deno Standard Library](https://github.com/denoland/deno_std)
- Everything under the namespace [@deno](https://jsr.io/@deno) on JSR
- Everything under the namespace [@std](https://jsr.io/@std) on JSR

> - Imports for standard specifications will be decided on a case by case basis.
> - 3rd party libraries for testing will be decided on a case by case basis.

We allow no additional third-party dependencies for JS, thus all code must be
implemented.
Expand Down
6 changes: 3 additions & 3 deletions _tools/build_wasm.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { parse } from "@std/toml";
import { resolve } from "@std/path";

import denoConfig from "../deno.json" with { type: "json" };
const isCheck = Deno.args.some((a) => a === "--check");
const failFast = Deno.args.some((a) => a === "--fail-fast");

Expand All @@ -20,10 +20,10 @@ for (const member of parsedCargo.workspace.members) {
const args: string[] = [
"run",
"-A",
"jsr:@deno/wasmbuild@0.17.1",
denoConfig.imports["@deno/wasmbuild"],
"--js-ext",
"mjs",
"--sync",
"--inline",
"--project",
member,
"--out",
Expand Down
56 changes: 24 additions & 32 deletions _wasm/Cargo.lock

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

4 changes: 2 additions & 2 deletions _wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ version = "0.0.0"
edition = "2021"

[workspace.dependencies]
wasm-bindgen = "0.2.92"
wasm-bindgen = "=0.2.108"
serde = { version = "1", features = ["derive"] }
serde-wasm-bindgen = "0.4"
serde_json = "1"
serde_json_path = "0.6"
getrandom = { version = "0.2", features = ["js"] }
rand_core = { version = "0.6", features = ["std"] }
js-sys = "0.3"
js-sys = "=0.3.85"
argon2 = "0.5"
bcrypt = "0.15"
scrypt = "0.11"
Expand Down
55 changes: 55 additions & 0 deletions crypto/_wasm/crypto_hash_argon2.d.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// @generated file from wasmbuild -- do not edit
// deno-lint-ignore-file
// deno-fmt-ignore-file

/**
* Argon2 algorithms
*/
export type Argon2Algorithm = "argon2d" | "argon2i" | "argon2id";
/**
* Argon2 options
*/
export interface Argon2Options {
/**
* The Argon2 algorithm to use
*
* @default "argon2id"
*/
algorithm?: Argon2Algorithm;
/**
* Memory cost
*
* @default 19456
*/
memoryCost?: number;
/**
* Time cost
*
* @default 2
*/
timeCost?: number;
/**
* Parallelism
*
* @default 1
*/
parallelism?: number;
/**
* Output length, will default to 32usize
*/
outputLength?: number;
}

/**
* Hash a password using Argon2
*/
export function hash(data: string, options: Argon2Options): string;

/**
* Verify a password using Argon2
*/
export function verify(
data: string,
hash: string,
options: Argon2Options,
): boolean;
80 changes: 0 additions & 80 deletions crypto/_wasm/crypto_hash_argon2.generated.d.mts

This file was deleted.

Loading
Loading