microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
compiler/qsc/src/lib.rs
44lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | #![warn(clippy::mod_module_files, clippy::pedantic, clippy::unwrap_used)] |
| 5 | #![allow(clippy::missing_errors_doc, clippy::missing_panics_doc)] |
| 6 | |
| 7 | pub mod compile; |
| 8 | pub mod error; |
| 9 | pub mod incremental; |
| 10 | pub mod interpret; |
| 11 | pub mod target; |
| 12 | |
| 13 | pub use qsc_frontend::compile::{ |
| 14 | CompileUnit, PackageStore, RuntimeCapabilityFlags, SourceContents, SourceMap, SourceName, |
| 15 | }; |
| 16 | |
| 17 | pub mod resolve { |
| 18 | pub use qsc_frontend::resolve::{Local, LocalKind, Locals, Res}; |
| 19 | } |
| 20 | |
| 21 | pub mod fir { |
| 22 | pub use qsc_fir::{fir::*, *}; |
| 23 | } |
| 24 | |
| 25 | pub mod hir { |
| 26 | pub use qsc_hir::{hir::*, *}; |
| 27 | } |
| 28 | |
| 29 | pub mod ast { |
| 30 | pub use qsc_ast::{ast::*, *}; |
| 31 | } |
| 32 | |
| 33 | pub mod project { |
| 34 | pub use qsc_project::{DirEntry, EntryType, FileSystem, Manifest, ManifestDescriptor}; |
| 35 | } |
| 36 | |
| 37 | pub use qsc_data_structures::span::Span; |
| 38 | |
| 39 | pub use qsc_passes::{PackageType, PassContext}; |
| 40 | |
| 41 | pub use qsc_eval::{ |
| 42 | backend::{Backend, SparseSim}, |
| 43 | output::{fmt_basis_state_label, fmt_complex, format_state_id, get_phase}, |
| 44 | }; |
| 45 | |