neo3 1.0.1

Production-ready Rust SDK for Neo N3 blockchain with high-level API, unified error handling, and enterprise features
Documentation
#!/usr/bin/env bash

# NeoRust CI Check Script
# Run this before pushing to ensure CI will pass

set -euo pipefail

# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m'

# Script directory
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"

echo -e "${BLUE}NeoRust CI Checks${NC}"
echo "=================="
echo ""

# Verify we're in the right place
if [ ! -f "Cargo.toml" ]; then
    echo -e "${RED}Error: Not in NeoRust root directory${NC}"
    exit 1
fi

# Check for required tools
missing_tools=()
for tool in cargo rustfmt; do
    if ! command -v $tool &> /dev/null; then
        missing_tools+=($tool)
    fi
done

if [ ${#missing_tools[@]} -ne 0 ]; then
    echo -e "${RED}Missing required tools: ${missing_tools[*]}${NC}"
    echo "Please install Rust toolchain"
    exit 1
fi

# Run checks
echo -e "${YELLOW}1. Format Check${NC}"
if cargo fmt --all -- --check; then
    echo -e "${GREEN}✓ Format check passed${NC}"
else
    echo -e "${RED}✗ Format check failed${NC}"
    echo "  Run: cargo fmt --all"
    exit 1
fi

echo ""
echo -e "${YELLOW}2. Clippy Linting${NC}"
if cargo clippy --workspace --all-targets --all-features -- -D warnings; then
    echo -e "${GREEN}✓ Clippy passed${NC}"
else
    echo -e "${RED}✗ Clippy failed${NC}"
    exit 1
fi

echo ""
echo -e "${YELLOW}3. Tests${NC}"

if NEORUST_SKIP_NETWORK_TESTS=1 cargo test -p neo3 --all-features; then
    echo -e "${GREEN}✓ neo3 tests passed${NC}"
else
    echo -e "${RED}✗ neo3 tests failed${NC}"
    exit 1
fi

echo ""
if cargo test -p neo3 --doc --all-features; then
    echo -e "${GREEN}✓ neo3 doc tests passed${NC}"
else
    echo -e "${RED}✗ neo3 doc tests failed${NC}"
    exit 1
fi

echo ""
if cargo test -p neo-cli; then
    echo -e "${GREEN}✓ neo-cli tests passed${NC}"
else
    echo -e "${RED}✗ neo-cli tests failed${NC}"
    exit 1
fi

echo ""
echo -e "${GREEN}All CI checks passed! ✨${NC}"
echo "Safe to commit and push."