Skip to content

Commit

Permalink
chore: update deno (#5469)
Browse files Browse the repository at this point in the history
* chore: update deno

* update spec

* more error handling

* cleanup queue

* fix

* fix byow

Co-authored-by: Divy Srivastava <[email protected]>

* fix

* fix

* fix

* fixes

* fix cts

* clean

---------

Co-authored-by: Divy Srivastava <[email protected]>
  • Loading branch information
crowlKats and littledivy authored Apr 2, 2024
1 parent 5bab673 commit d828f27
Show file tree
Hide file tree
Showing 26 changed files with 1,072 additions and 414 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ deno_core = "0.272.0"
deno_url = "0.143.0"
deno_web = "0.174.0"
deno_webidl = "0.143.0"
deno_webgpu = { version = "0.85.0", path = "./deno_webgpu" }
deno_webgpu = { version = "0.110.0", path = "./deno_webgpu" }
tokio = "1.36.0"
termcolor = "1.4.1"

Expand Down
4 changes: 3 additions & 1 deletion cts_runner/src/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ import { Console } from "ext:deno_console/01_console.js";
import * as url from "ext:deno_url/00_url.js";
import { DOMException } from "ext:deno_web/01_dom_exception.js";
import * as performance from "ext:deno_web/15_performance.js";
import * as webgpu from "ext:deno_webgpu/01_webgpu.js";
import { loadWebGPU } from "ext:deno_webgpu/00_init.js";
import * as imageData from "ext:deno_web/16_image_data.js";
const webgpu = loadWebGPU();

// imports needed to pass module evaluation
import "ext:deno_url/01_urlpattern.js";
Expand All @@ -39,6 +40,7 @@ import "ext:deno_web/10_filereader.js";
import "ext:deno_web/12_location.js";
import "ext:deno_web/13_message_port.js";
import "ext:deno_web/14_compression.js";
import "ext:deno_webgpu/02_surface.js";

let globalThis_;

Expand Down
6 changes: 5 additions & 1 deletion cts_runner/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ mod native {
.ok_or_else(|| anyhow!("missing specifier in first command line argument"))?;
let specifier = resolve_url_or_path(&url, &env::current_dir()?)?;

let mut feature_checker = deno_core::FeatureChecker::default();
feature_checker.enable_feature(deno_webgpu::UNSTABLE_FEATURE_NAME);

let options = RuntimeOptions {
module_loader: Some(Rc::new(deno_core::FsModuleLoader)),
get_error_class_fn: Some(&get_error_class_name),
Expand All @@ -40,9 +43,10 @@ mod native {
Arc::new(BlobStore::default()),
None,
),
deno_webgpu::deno_webgpu::init_ops_and_esm(true),
deno_webgpu::deno_webgpu::init_ops_and_esm(),
cts_runner::init_ops_and_esm(),
],
feature_checker: Some(Arc::new(feature_checker)),
..Default::default()
};
let mut js_runtime = JsRuntime::new(options);
Expand Down
7 changes: 7 additions & 0 deletions deno_webgpu/00_init.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.

import { core } from "ext:core/mod.js";

const loadWebGPU = core.createLazyLoader("ext:deno_webgpu/01_webgpu.js");

export { loadWebGPU };
Loading

0 comments on commit d828f27

Please sign in to comment.