Rust logo

Rust built in release mode

Upload your code with its Cargo.toml and it's compiled in release mode. A native binary, no garbage collector, predictable memory.

From R$12.49/mo

What comes ready

The environment already knows your language: you upload the code and it runs.

  • Release build by default

    Your code is compiled with release optimizations turned on, with nothing to configure.

  • Unmodified Cargo

    Uses your Cargo.toml as is, with access to any crate published on crates.io.

  • Predictable memory

    With no garbage collector, RAM usage stays steady, which helps your app fit within your plan's limit.

  • Isolated container

    Each app runs in its own isolated container, with the RAM limit you set.

What you can host

Projects that run on this runtime.

  • HTTP APIs in Rust

    Async backends with Axum, Actix Web, or Rocket, running on the Tokio runtime.

  • Rust Discord bots

    Bots with serenity or twilight, which tend to use little memory even across many servers.

  • Heavy processing workers

    Compression, cryptography, parsing, and image processing in compiled native code.

  • gRPC microservices with Tonic

    Typed service-to-service communication with Protobuf and bidirectional streaming.

  • Game servers

    Backends for multiplayer matches, leaderboards, and matchmaking, with consistent latency and no GC pauses.

  • Fintech services

    Services that need predictable memory and stable behavior under load, with no garbage collector.

Configuration and versions

The dashboard generates squarecloud.app at deploy, or you write your own at the project root: name, main file, memory and version in one place.

squarecloud.app
DISPLAY_NAME=Rust
MEMORY=512
VERSION=recommended
Versions
1.98
Accepted files
.rs
Dependencies
Cargo.toml
RUNTIME= values
rust

Combine with other services

Everything in the same dashboard, on the same infrastructure and the same invoice.

A plan for every stage of your project

Start small and scale when you need to, with no loyalty contracts.

4.9 out of 5 · 402 reviews on Google + TrustpilotTrustpilot

Hosted in a partner datacenter with certifications
Tier 3ISO 27001SOC 2 Type IIAlways-On DDoS Protection
Explore our infrastructure

Frequently asked questions about Rust Hosting

Release build, Cargo, crates.io, and performance.

Is the build in release mode?

Yes. Every build runs cargo build --release automatically: optimized code, no debug overhead.

Can I use any crate from crates.io?

Yes. Square uses your Cargo.toml unmodified. Tokio, Axum, Actix, Rocket, Tonic, and the full async ecosystem are available.

How does Rust compare to Node.js in memory?

Rust has no GC, so memory use is predictable. For the same workload it typically uses less RAM than Node.js, which helps apps with strict limits.

Do I need to cross-compile?

No. Square compiles in its Linux x86_64 environment. Keep your project cross-platform and there's no extra setup.

Ready to scale your project?

Join the 500,000+ developers who have used Square Cloud to host their projects.

  • Predictable pricing
  • No billing surprises
  • Deploy in seconds
  • High availability
  • Scale with stability
  • Automatic restart
  • SSL and security included
  • Isolated containers