I got an error while trying to deploy Rust Rocket on Heroku

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • heroku-buildpack-rust

    A buildpack for Rust applications on Heroku, with full support for Rustup, cargo and build caching.

  • rocket: 0.5.0-rc.2 diesel: 1.4.4 nightly: in the latest version Heroku Buildpack: https://github.com/emk/heroku-buildpack-rust Also I am using a rust-toolchain file.

  • rust

    Empowering everyone to build reliable and efficient software.

  • thread 'rustc' panicked at 'index out of bounds: the len is 1 but the index is 2', compiler/rustc_builtin_macros/src/format.rs:1001:28stack backtrace: 0: 0x7fea8387d930 - std::backtrace_rs::backtrace::libunwind::trace::hc933fa0cb8627706 at /rustc/23e21bdd25026e2839ebe946c2a937c1904887d2/library/std/src/../../backtrace/src/backtrace/m............ it shows a lot of stacks ......... 33: 0x7fea837a6609 - start_thread 34: 0x7fea836c9133 - clone 35: 0x0 - error: internal compiler error: unexpected panicnote: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md note: rustc 1.64.0-nightly (23e21bdd2 2022-07-15) running on x86_64-unknown-linux-gnunote: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no note: some of the compiler flags provided by cargo are hiddenquery stack during panic:end of query stackerror: could not compile `time`warning: build failed, waiting for other jobs to finish... ! Push rejected, failed to compile Rust app. ! Push failed

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • flyctl

    Command line tools for fly.io services

  • But is fly.io free? Like I use heroku because it provides a database and hosting all for free

  • heroku-rocket-minimal-example

    A minimal project compatible with heroku with a rocket server

  • If you want, I created a minimal reproducible project with a simple rocket server I deployed on heroku. You can go to this link, clone it and read the source code or the README steps. https://github.com/spineki/heroku-rocket-minimal-example

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts