0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-09 13:49:37 -04:00
deno/ext/canvas/lib.rs

22 lines
517 B
Rust
Raw Normal View History

2024-01-22 12:08:01 +01:00
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
use std::path::PathBuf;
pub mod error;
2024-09-07 21:57:32 +09:00
pub mod idl;
mod image_decoder;
mod image_ops;
mod op_create_image_bitmap;
use op_create_image_bitmap::op_create_image_bitmap;
2024-01-22 12:08:01 +01:00
deno_core::extension!(
deno_canvas,
deps = [deno_webidl, deno_web, deno_webgpu],
2024-09-07 21:57:32 +09:00
ops = [op_create_image_bitmap],
2024-01-22 12:08:01 +01:00
lazy_loaded_esm = ["01_image.js"],
);
pub fn get_declaration() -> PathBuf {
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("lib.deno_canvas.d.ts")
}