Skip to content
This repository was archived by the owner on Apr 3, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 93 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 38 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
[workspace]
resolver = "3"
members = ["app/*", "crates/*"]
members = ["app/*", "crates/*", "protocol/*", "channel/*"]

[workspace.package]
version = "0.0.9"
version = "0.0.1"
edition = "2024"
authors = ["clearloop <tianyi.gc@gmail.com>"]
license = "GPL-3.0"
repository = "https://github.com/clearloop/walrus"
repository = "https://github.com/openwalrus/walrus"
keywords = ["llm", "agent", "ai"]

[workspace.dependencies]
wcore = { path = "crates/core", package = "walrus-core", version = "0.0.9" }
model = { path = "crates/model", package = "walrus-model", version = "0.0.9" }
runtime = { path = "crates/runtime", package = "walrus-runtime", version = "0.0.9" }
memory = { path = "crates/memory", package = "walrus-memory", version = "0.0.9" }
channel = { path = "crates/channel", package = "walrus-channel", version = "0.0.9" }
protocol = { path = "app/protocol", package = "walrus-protocol", version = "0.0.9" }
daemon = { path = "app/daemon", package = "walrus-daemon", version = "0.0.9" }
client = { path = "app/client", package = "walrus-client", version = "0.0.9" }
wcore = { path = "crates/core", package = "walrus-core", version = "0.0.1" }
model = { path = "crates/model", package = "walrus-model", version = "0.0.1" }
runtime = { path = "crates/runtime", package = "walrus-runtime", version = "0.0.1" }
memory = { path = "crates/memory", package = "walrus-memory", version = "0.0.1" }
skill = { path = "crates/skill", package = "walrus-skill", version = "0.0.1" }
mcp = { path = "crates/mcp", package = "walrus-mcp", version = "0.0.1" }
channel = { path = "protocol/channel", package = "walrus-pchannel", version = "0.0.1" }
protocol = { path = "app/protocol", package = "walrus-protocol", version = "0.0.1" }
socket = { path = "protocol/socket", package = "walrus-socket", version = "0.0.1" }
telegram = { path = "channel/telegram", package = "walrus-telegram", version = "0.0.1" }
daemon = { path = "app/daemon", package = "walrus-daemon", version = "0.0.1" }
cli = { path = "app/cli", package = "walrus-cli", version = "0.0.1" }

# crates.io
anyhow = "1"
Expand Down Expand Up @@ -56,3 +60,26 @@ rustyline = "15"
crossterm = "0.29"
dirs = "6"
mistralrs = { version = "0.7", default-features = false }

[profile.prod]
inherits = "release"
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
debug = false
debug-assertions = false
overflow-checks = false
strip = true

[workspace.metadata.conta]
packages = [
"core",
"model",
"memory",
"channel",
"runtime",
"protocol",
"daemon",
"cli",
]
55 changes: 55 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Walrus Makefile
#
# Cross-platform builds for walrus (CLI) and walrusd (daemon).
#
# - macOS Apple Silicon: Metal acceleration
# - linux x86_64: CUDA acceleration
#
# Usage:
# make bundle
# make macos-arm64
# make macos-amd64
# make linux-arm64
# make linux-amd64
VERSION = 0.0.1
CARGO = cargo b --profile prod

# build all targets
bundle: macos-arm64 macos-amd64 linux-amd64 linux-arm64 tar-all

# make tarballs for all binaries
tar-all: tar-walrus tar-walrusd

# make tarballs for walrus
tar-walrus:
mkdir -p target/bundle
tar -czf target/bundle/walrus-$(VERSION)-macos-arm64.tar.gz -C target/aarch64-apple-darwin/prod walrus
tar -czf target/bundle/walrus-$(VERSION)-macos-amd64.tar.gz -C target/x86_64-apple-darwin/prod walrus
tar -czf target/bundle/walrus-$(VERSION)-linux-amd64.tar.gz -C target/x86_64-unknown-linux-gnu/prod walrus
tar -czf target/bundle/walrus-$(VERSION)-linux-arm64.tar.gz -C target/aarch64-unknown-linux-gnu/prod walrus

# make tarballs for walrusd
tar-walrusd:
mkdir -p target/bundle
tar -czf target/bundle/walrusd-$(VERSION)-macos-arm64.tar.gz -C target/aarch64-apple-darwin/prod walrusd
tar -czf target/bundle/walrusd-$(VERSION)-macos-amd64.tar.gz -C target/x86_64-apple-darwin/prod walrusd
tar -czf target/bundle/walrusd-$(VERSION)-linux-amd64.tar.gz -C target/x86_64-unknown-linux-gnu/prod walrusd
tar -czf target/bundle/walrusd-$(VERSION)-linux-arm64.tar.gz -C target/aarch64-unknown-linux-gnu/prod walrusd

# build macos-arm64 (walrusd with Metal)
macos-arm64:
$(CARGO) --target aarch64-apple-darwin -p walrus-cli
$(CARGO) --target aarch64-apple-darwin -p walrus-daemon --features metal

# build macos-amd64
macos-amd64:
$(CARGO) --target x86_64-apple-darwin

# build linux-arm64
linux-arm64:
$(CARGO) --target aarch64-unknown-linux-gnu

# build linux-amd64 (walrusd with CUDA)
linux-amd64:
$(CARGO) --target x86_64-unknown-linux-gnu -p walrus-cli
$(CARGO) --target x86_64-unknown-linux-gnu -p walrus-daemon
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Build, Ship and Run Any Agent, Anywhere.

## License

MIT
GPL-3.0
5 changes: 4 additions & 1 deletion app/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[package]
name = "walrus-cli"
description = "Command-line interface for Walrus"
documentation = "https://docs.rs/walrus-cli"
readme = "README.md"
version.workspace = true
edition.workspace = true
authors.workspace = true
Expand All @@ -12,8 +15,8 @@ name = "walrus"
path = "src/bin/main.rs"

[dependencies]
client = { workspace = true }
protocol = { workspace = true }
socket = { workspace = true }
clap = { workspace = true }
compact_str = { workspace = true }
tokio = { workspace = true }
Expand Down
11 changes: 11 additions & 0 deletions app/cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# walrus-cli

Command-line interface for Walrus.

Provides the `walrus` binary with an interactive REPL, agent management,
model downloads, and MCP server configuration — all communicating with the
daemon over Unix domain sockets.

## License

GPL-3.0
Loading