Skip to content

Commit

Permalink
Changes project configuration to YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimaweapon committed Oct 8, 2023
1 parent 992ec16 commit e433073
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion stage0/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ edition = "2021"
[dependencies]
clap = { version = "4.4", features = ["cargo"] }
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.9"
thiserror = "1.0"
toml = "0.8"
uuid = "1.4"
4 changes: 2 additions & 2 deletions stage0/src/project/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl<'a> Project<'a> {
};

// Load the project.
let meta = match toml::from_str::<ProjectMeta>(&data) {
let meta = match serde_yaml::from_str::<ProjectMeta>(&data) {
Ok(v) => v,
Err(e) => return Err(ProjectOpenError::ParseTomlFailed(project, e)),
};
Expand Down Expand Up @@ -422,7 +422,7 @@ pub enum ProjectOpenError {
ReadFileFailed(PathBuf, #[source] std::io::Error),

#[error("cannot parse {0}")]
ParseTomlFailed(PathBuf, #[source] toml::de::Error),
ParseTomlFailed(PathBuf, #[source] serde_yaml::Error),
}

/// Represents an error when a [`Project`] is failed to load.
Expand Down
8 changes: 4 additions & 4 deletions std/.nitro
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[package]
name = "nitro"
type = "lib"
version = "1.0.0"
package:
name: nitro
type: lib
version: 1.0.0

0 comments on commit e433073

Please sign in to comment.