echo "Running pre-release checks..."
echo "1. Checking code format..."
cargo fmt -- --check
echo "2. Running clippy..."
cargo clippy -- -D warnings
echo "3. Running tests..."
cargo test
echo "4. Generating documentation..."
cargo doc --no-deps
echo "5. Dry run publish..."
cargo publish --dry-run
echo "All checks completed!"