pub struct Config {
pub manifest: Cow<'static, Path>,
pub target_dir: Cow<'static, Path>,
pub tmp_dir: Cow<'static, Path>,
pub function_name: Cow<'static, str>,
pub file_path: Cow<'static, Path>,
pub package_name: Cow<'static, str>,
pub dependencies: Vec<Dependency>,
pub test: bool,
pub edition: String,
}
Expand description
The configuration for the compilation.
Fields§
§manifest: Cow<'static, Path>
The path to the cargo manifest file of the library being tested.
This is so that we can include the dependencies
& dev-dependencies
making them available in the code provided.
target_dir: Cow<'static, Path>
The path to the target directory, used to cache builds & find dependencies.
tmp_dir: Cow<'static, Path>
A temporary directory to write the expanded code to.
function_name: Cow<'static, str>
The name of the function to compile.
file_path: Cow<'static, Path>
The path to the file being compiled.
package_name: Cow<'static, str>
The name of the package being compiled.
dependencies: Vec<Dependency>
The dependencies to add to the temporary crate.
test: bool
Run any unit tests in the package.
edition: String
The rust edition to use.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more