1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-27 16:10:57 -05:00
denoland-deno/cli/compilers/mod.rs

23 lines
446 B
Rust
Raw Normal View History

// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
use deno::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 =
2019-11-16 19:17:47 -05:00
dyn Future<Output = Result<CompiledModule, ErrBox>> + Send;