summaryrefslogtreecommitdiff
path: root/src/rust.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rust.rs')
-rw-r--r--src/rust.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rust.rs b/src/rust.rs
index 0ffe8c0..2dbe1f7 100644
--- a/src/rust.rs
+++ b/src/rust.rs
@@ -27,6 +27,10 @@ impl Rust {
Err(BumperError::UnknownProjectKind(dirname.to_path_buf()))
}
+ pub fn name(&mut self) -> Result<String, BumperError> {
+ self.cargo_toml.name()
+ }
+
pub fn set_version(&mut self, version: &str) -> Result<String, BumperError> {
debug!("parsing Cargo.toml from {}", self.dirname.display());
// debug!("Cargo.toml:\n{:#?}", self.cargo_toml);