Johann Woelper 5 years ago
parent
commit
5065158b41
5 changed files with 535 additions and 1057 deletions
  1. 4 1
      Cargo.toml
  2. 1 1
      Makefile.toml
  3. 529 1054
      pkg/package.js
  4. 1 1
      pkg/package_bg.d.ts
  5. BIN
      pkg/package_bg.wasm

+ 4 - 1
Cargo.toml

@@ -12,4 +12,7 @@ wasm-bindgen = "^0.2.50"
 drop = { path = "../drop" }
 
 [lib]
-crate-type = ["cdylib"]
+crate-type = ["cdylib"]
+
+[profile.release]
+lto = true

+ 1 - 1
Makefile.toml

@@ -96,4 +96,4 @@ args = ["test", "--headless", "--${@}"]
 [tasks.test_h_release]
 extend = "test_h"
 description = "Run headless tests in release mode. Ex: 'cargo make test_h firefox'. Test envs: [chrome, firefox, safari]"
-args = ["test", "--headless", "--${@}", "--release"]
+args = ["test", "--headless", "--${@}", "--release"]

File diff suppressed because it is too large
+ 529 - 1054
pkg/package.js


+ 1 - 1
pkg/package_bg.d.ts

@@ -1,9 +1,9 @@
 /* tslint:disable */
 export const memory: WebAssembly.Memory;
-export function render(): void;
 export function __wbindgen_exn_store(a: number): void;
 export function __wbindgen_malloc(a: number): number;
 export function __wbindgen_realloc(a: number, b: number, c: number): number;
 export function __wbindgen_free(a: number, b: number): void;
+export function render(): void;
 export const __wbg_function_table: WebAssembly.Table;
 export function __wbindgen_start(): void;

BIN
pkg/package_bg.wasm