-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,35 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
pub mod context; | ||
pub mod project; | ||
pub mod toolchain; | ||
pub mod lock; | ||
pub mod dependency; | ||
pub mod dependency; | ||
|
||
/// Represents an `espresso.toml` file | ||
#[derive(Deserialize, Serialize, Debug)] | ||
pub struct Config { | ||
pub project: Project, | ||
pub toolchain: Toolchain, | ||
// pub dependencies_maven: std::collections::HashMap<String, String>, | ||
/// Dependencies located on your filesystem | ||
pub dependencies_fs: std::collections::HashMap<String, String>, | ||
} | ||
|
||
/// Represents information about the currently loaded Project | ||
#[derive(Deserialize, Serialize, Debug)] | ||
pub struct Project { | ||
/// Name of the project (ex: `My Espresso Project`) | ||
pub name: String, | ||
/// Version of the project (ex: `1.0.0`) | ||
pub version: String, | ||
/// Java base package in dot notation (ex: `com.me.project`) | ||
pub base_package: String, | ||
} | ||
|
||
/// Represents toolchain information | ||
#[derive(Deserialize, Serialize, Debug)] | ||
pub struct Toolchain { | ||
/// Path to the JDK toolchain (ex: `${JAVA_HOME}`) | ||
pub path: String, | ||
} |