build: remove unused anyhow dependency

This commit is contained in:
2026-08-31 18:42:15 -04:00
parent b20e9c90ce
commit 5917ceecad
62 changed files with 3 additions and 7334 deletions

View File

@@ -4,7 +4,6 @@ rust_library(
name = "machoke_lib",
crate_name = "machoke",
srcs = ["lib.rs"],
deps = ["//third_party/crates:anyhow"],
)
rust_binary(

View File

@@ -11,4 +11,3 @@ name = "machoke"
path = "main.rs"
[dependencies]
anyhow = "1"

View File

@@ -1,5 +1,3 @@
use anyhow::Result;
pub fn greeting() -> Result<&'static str> {
Ok("Hello from machoke")
pub fn greeting() -> &'static str {
"Hello from machoke"
}

View File

@@ -1,6 +1,3 @@
fn main() {
println!(
"{}",
machoke::greeting().expect("greeting should be available")
);
println!("{}", machoke::greeting());
}