rename project

This commit is contained in:
Dmitriy Pleshevskiy 2024-03-19 11:06:16 +03:00
parent 31e1561b3e
commit c1688a424c
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
4 changed files with 11 additions and 11 deletions

18
Cargo.lock generated
View file

@ -102,6 +102,15 @@ version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
[[package]]
name = "fimt"
version = "0.1.0"
dependencies = [
"clap",
"serde",
"toml",
]
[[package]] [[package]]
name = "hashbrown" name = "hashbrown"
version = "0.14.3" version = "0.14.3"
@ -139,15 +148,6 @@ dependencies = [
"unicode-ident", "unicode-ident",
] ]
[[package]]
name = "project-cook"
version = "0.1.0"
dependencies = [
"clap",
"serde",
"toml",
]
[[package]] [[package]]
name = "quote" name = "quote"
version = "1.0.35" version = "1.0.35"

View file

@ -1,5 +1,5 @@
[package] [package]
name = "project-cook" name = "fimt"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"

View file

@ -46,7 +46,7 @@ impl From<toml::de::Error> for Error {
} }
pub fn read_config(workdir: &PathBuf) -> Result<Config, Error> { pub fn read_config(workdir: &PathBuf) -> Result<Config, Error> {
let content = fs::read_to_string(workdir.join("cook.toml"))?; let content = fs::read_to_string(workdir.join("fimt.toml"))?;
let res = toml::from_str(&content).inspect_err(|e| { let res = toml::from_str(&content).inspect_err(|e| {
dbg!(e); dbg!(e);
})?; })?;