diff --git a/src/lib.rs b/src/lib.rs index 4ceda0c..fc9a35b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -35,6 +35,7 @@ pub struct Analysis { /// The Config used to generate this analysis data. pub config: Config, pub version: Option, + pub compilation: Option, pub prelude: Option, pub imports: Vec, pub defs: Vec, @@ -53,6 +54,7 @@ impl Analysis { config, version: option_env!("CARGO_PKG_VERSION").map(|s| s.to_string()), prelude: None, + compilation: None, imports: vec![], defs: vec![], impls: vec![], @@ -115,6 +117,16 @@ pub struct SpanData { pub column_end: span::Column, } +#[cfg_attr(feature = "serialize-serde", derive(Serialize, Deserialize))] +#[cfg_attr(feature = "serialize-rustc", derive(RustcDecodable, RustcEncodable))] +#[derive(Debug, Clone)] +pub struct CompilationOptions { + pub directory: PathBuf, + pub program: String, + pub arguments: Vec, + pub output: PathBuf, +} + #[cfg_attr(feature = "serialize-serde", derive(Serialize, Deserialize))] #[cfg_attr(feature = "serialize-rustc", derive(RustcDecodable, RustcEncodable))] #[derive(Debug, Clone)]