mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -05:00
22 lines
451 B
Rust
22 lines
451 B
Rust
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
|
use deno_core::ErrBox;
|
|
use futures::Future;
|
|
|
|
mod js;
|
|
mod json;
|
|
mod ts;
|
|
mod wasm;
|
|
|
|
pub use js::JsCompiler;
|
|
pub use json::JsonCompiler;
|
|
pub use ts::TsCompiler;
|
|
pub use wasm::WasmCompiler;
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub struct CompiledModule {
|
|
pub code: String,
|
|
pub name: String,
|
|
}
|
|
|
|
pub type CompiledModuleFuture =
|
|
dyn Future<Output = Result<CompiledModule, ErrBox>> + Send;
|