Skip to content

Convert project to Rust web server with Actix-web - #4

Open
933942-a11y wants to merge 2 commits into
shuttlenetwork:mainfrom
933942-a11y:convert-to-rust-web
Open

Convert project to Rust web server with Actix-web#4
933942-a11y wants to merge 2 commits into
shuttlenetwork:mainfrom
933942-a11y:convert-to-rust-web

Conversation

@933942-a11y

Copy link
Copy Markdown

Overview

This PR converts the shuttle-lite project from a Node.js/Fastify implementation to a modern Rust web server using the Actix-web framework.

Changes

  • Renamed project from shuttle-lite to rust-web to better reflect the new technology stack
  • Replaced Node.js/Fastify with Rust/Actix-web for better performance and type safety
  • Added Cargo.toml with essential dependencies:
    • actix-web v4 for the web framework
    • tokio for async runtime
    • reqwest for HTTP client functionality
  • Implemented reverse proxy in src/main.rs that proxies requests to https://pr.shuttleproxy.com
  • Updated README.md with Rust build and run instructions
  • Updated package.json to reflect the new project structure

Benefits

  • Improved performance through compiled Rust code
  • Type-safe implementation with Rust's type system
  • Better error handling with Rust's Result types
  • Maintained proxy functionality with modern async/await patterns

How to Test

# Build the project
cargo build --release

# Run the server
cargo run

The server will listen on 0.0.0.0:3000 and proxy requests to https://pr.shuttleproxy.com

- Rename project from shuttle-lite to rust-web
- Replace Node.js/Fastify implementation with Rust/Actix-web
- Add Cargo.toml with dependencies (actix-web, tokio, reqwest)
- Implement reverse proxy server in src/main.rs
- Update README.md with Rust build and run instructions
- Update package.json to reflect Rust project structure
- Rename project from shuttle-lite to rust-web
- Replace Node.js/Fastify implementation with Rust/Actix-web
- Add Cargo.toml with dependencies (actix-web, tokio, reqwest)
- Implement reverse proxy server in src/main.rs
- Update README.md with Rust build and run instructions
- Update package.json to reflect Rust project structure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant