Skip to content

Commit

Permalink
[feat] Organized exports with separate submodules (#54)
Browse files Browse the repository at this point in the history
* add utilities module

* chore: clean up + prepare for deno 2.0

* chore: bump to deno 2

* move core stuff to "packages"

* fix exports

* remove deno.json

* fix core imports

* fix ./core export

---------

Co-authored-by: Dean Srebnik <[email protected]>
  • Loading branch information
retraigo and load1n9 authored Sep 5, 2024
1 parent 42dfb49 commit c1a928a
Show file tree
Hide file tree
Showing 126 changed files with 4,035 additions and 443 deletions.
30 changes: 26 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,47 @@
Unoptimized:

```sh
cargo build
cargo build --release -p netsaur
```

Optimized:

```sh
cargo build --release
deno run build:cpu
```

## Building `backends/wasm`

Unoptimized:

```sh
deno run -A https://deno.land/x/wasmbuild@0.11.0/main.ts --out src/backends/wasm/lib --debug
deno -Ar jsr:@deno/wasmbuild@0.17.2 -p netsaur --out src/backends/wasm/lib --debug
```

Optimized:

```sh
deno run -A https://deno.land/x/[email protected]/main.ts --out src/backends/wasm/lib
deno run build:wasm
```

## Building `tokenizers`

Unoptimized:

```sh
deno -Ar jsr:@deno/[email protected] -p netsaur-tokenizers --out tokenizers/lib --debug
```

Optimized:

```sh
deno run build:tokenizers
```

## Building everything

Optimized:

```sh
deno run build
```
Loading

0 comments on commit c1a928a

Please sign in to comment.