Archived
Replaces the template's demo main.rs with a spike that connects to Polymarket's public market channel, subscribes to one market, and logs every frame with its receive time. Adds scripts/ci.sh (fmt, clippy, tests), the project CLAUDE.md, ADR 0001 (OS threads, shared-nothing), and the market channel's message shapes in docs/notes.md: no sequence number, a book hash on every change, mirrored Yes/No books.
11 lines
299 B
Bash
Executable File
11 lines
299 B
Bash
Executable File
#!/bin/sh
|
|
# The single CI entry point; run it before every commit.
|
|
# One check per line: `set -e` doesn't apply on the left of `&&` / `||`, so
|
|
# chaining would let a failing check pass silently.
|
|
set -eu
|
|
cd "$(dirname "$0")/.."
|
|
|
|
cargo fmt --check
|
|
cargo clippy --all-targets -- -D warnings
|
|
cargo test
|