microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
compiler/qsc/src/lib.rs
49lines · 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 location; |
| 12 | pub mod target; |
| 13 | |
| 14 | pub use qsc_frontend::compile::{ |
| 15 | CompileUnit, PackageStore, RuntimeCapabilityFlags, SourceContents, SourceMap, SourceName, |
| 16 | }; |
| 17 | |
| 18 | pub mod resolve { |
| 19 | pub use qsc_frontend::resolve::{Local, LocalKind, Locals, Res}; |
| 20 | } |
| 21 | |
| 22 | pub mod fir { |
| 23 | pub use qsc_fir::{fir::*, *}; |
| 24 | } |
| 25 | |
| 26 | pub mod hir { |
| 27 | pub use qsc_hir::{hir::*, *}; |
| 28 | } |
| 29 | |
| 30 | pub mod ast { |
| 31 | pub use qsc_ast::{ast::*, *}; |
| 32 | } |
| 33 | |
| 34 | pub mod project { |
| 35 | pub use qsc_project::{DirEntry, EntryType, FileSystem, Manifest, ManifestDescriptor}; |
| 36 | } |
| 37 | |
| 38 | pub use qsc_data_structures::span::Span; |
| 39 | |
| 40 | pub use qsc_passes::{PackageType, PassContext}; |
| 41 | |
| 42 | pub mod line_column { |
| 43 | pub use qsc_data_structures::line_column::{Encoding, Position, Range}; |
| 44 | } |
| 45 | |
| 46 | pub use qsc_eval::{ |
| 47 | backend::{Backend, SparseSim}, |
| 48 | output::{fmt_basis_state_label, fmt_complex, format_state_id, get_phase}, |
| 49 | }; |
| 50 | |