class Robosync < Formula
desc "High-performance file synchronization with intelligent concurrent processing"
homepage "https://github.com/roethlar/robosync"
url "https://github.com/roethlar/robosync/archive/refs/tags/v1.0.2.tar.gz"
sha256 "90b57c662b565407196cbbc26385eed00e095a4856a1da5f34c64c47f678a60c"
license "MIT"
head "https://github.com/roethlar/robosync.git", branch: "main"
depends_on "rust" => :build
def install
system "cargo", "install", *std_cargo_args
end
test do
(testpath/"source").mkpath
(testpath/"source/test.txt").write("Hello, RoboSync!")
system bin/"robosync", testpath/"source", testpath/"dest"
assert_predicate testpath/"dest/test.txt", :exist?
assert_equal "Hello, RoboSync!", (testpath/"dest/test.txt").read
end
end