wip: studio upgrades

This commit is contained in:
Jonathan Kelley committed 2021-12-29 12:03:18 -05:00
1 parent 0966653630
commit 5fdb14446b
14 files changed
+499 -70

No files matched your search

+3 -2
View File
@@ -1,11 +1,12 @@
use crate::{
cli::{BuildOptions, DevelopOptions},
error::Result,
LaunchCommand,
};
use std::{io::Write, path::PathBuf, process::Command};
#[derive(Debug, Clone)]
pub struct Config {
pub struct CrateConfig {
pub out_dir: PathBuf,
pub crate_dir: PathBuf,
pub workspace_dir: PathBuf,
@@ -23,7 +24,7 @@ pub enum ExecutableType {
Example(String),
}
impl Config {
impl CrateConfig {
pub fn new() -> Result<Self> {
let crate_dir = crate::cargo::crate_root()?;
let workspace_dir = crate::cargo::workspace_root()?;