0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-09 05:36:49 -04:00
deno/ext/canvas/lib.rs
2024-09-08 20:09:49 +09:00

21 lines
517 B
Rust

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