Questions tagged [rocket]

Rocket is a new container runtime, designed for composability, security, and speed. Do not use this tag for the [rust] web framework, use [rust-rocket] instead. Do not use this for Rocket Software products, use appropriate product-specific tag such as [rocket-u2], [unidata], [universe], etc

Rocket is an alternative to the runtime, designed for server environments with the most rigorous security and production requirements. Rocket is oriented around the App Container specification, a new set of simple and open specifications for a portable container format.

74 questions
1
vote
1 answer

Handelbars Helper not defined

I am programming a Website using Rust and the Rocket Framework(v0.5). I am using Handlebars and get this error when opening my site: >> Matched: (index) GET / >> Handlebars: Error rendering "index" line 9, col 1: Helper not defined:…
nilch
  • 21
  • 4
1
vote
1 answer

Why does my Rust Rocket project recompile dependencies every time I make a change?

I am building a Rocket-based web server in Rust following this guide I found that every time I make a small build and rerun cargo run, it build the Rocket dependencies again. I thought Rust had incremental compilation, and should not normally…
1
vote
1 answer

Rocket REST API return global object

I'm starting to learn Rust and the rocket framework https://crates.io/crates/rocket. I have a dumb question that I can't figure out. How do I return my_universe that I created on the first line of main() when calling GET /universe/ports/21? fn…
1
vote
1 answer

Rust/Rocket/Diesel - How can I query a MySqlDatabase using rocket_sync_db_pools

When trying to call load on my prices schema created by diesel in a Rocket app, I get the error the trait LoadConnection is not implemented for &mut rocket_sync_db_pools::diesel::MysqlConnection I've looked at a few tutorials, and have followed the…
1
vote
1 answer

Having multiple servers talk to each other in rocket test environment

I have a situation where I want two servers to talk to each other in a test. As in Server A is triggered and then sends a message to Server B. I can send requests to both Server A and B individually, but when I try to get Server A to talk to B at…
1
vote
1 answer

How to receive post data from html form rocket.rs

I'm a beginner to rust and to the rocket framework. I am building a simple login application which takes in details of the user and stores it in the database. But I can't seem to figure out how to receive the data from the HTML form. I saw:…
1
vote
0 answers

Rocket.rs route alternative to JsonValue

I changed my version of Rocket 0.4.2 to 0.5rc, and my Result
jenoh
  • 165
  • 3
  • 17
1
vote
0 answers

How to solve the problem? await occurs here, with `mut metadata_pool` maybe used later

The code doesn't work on http handler of rocket crate. I don't understand what is the problem here. Can anyone help me? Error: error: future cannot be sent between threads safely --> src/main.rs:27:1 | 27 |…
Eren A. Akyol
  • 36
  • 1
  • 5
1
vote
1 answer

How can I remove rocket notation from my ruby Hash?

First-time poster here... Scenario I'm looking into some existing logs being spat out by our Ruby on Rails applications and I am struggling to motivate for rocket notation, so I've come asking the community for some suggestions. Here's an example of…
1
vote
0 answers

How do I test a POST request?

Have spent some time learning Rust and have now moved to looking at web based applications. Using the Rocket crate in rust I have explored the GET request method and understood this well. Now have a POST request in my code and it runs, but I am…
Kapi
  • 49
  • 5
1
vote
1 answer

Lifetimes do not match method in trait

I have an asynchronous responder impl, but something is wrong with the lifetime of the objects. The code: #[rocket::async_trait] impl<'r> Responder<'r, 'static> for LoginUser { async fn respond_to(self, _: &'r Request) ->…
1
vote
2 answers

Check Some, None in multiple nested enums at once

I am looking for a way to use a functional event-type mechanism in my project. Nothing is in production yet, so this can even be rewritten from scratch: I want to look for 2 things: Presence of value (Option) Functional treatment of different…
ntakouris
  • 898
  • 1
  • 9
  • 22
1
vote
1 answer

How to replace combinational memory with ASIC cell in Chisel

I am trying to do ASIC synthesis for Rocket processor which is written by Chisel. It automatically generates *.conf and *.behave_srams.v files. So, I can easily replace SeqMem with ASIC SRAM. However, for "Mem" which is combinational memory is…
sungbo
  • 21
  • 2
1
vote
1 answer

Rocket Universe Dictionary passing VM attribute value to subroutine

Okay this might get a tad complex or not. Have a file with a multivalues in attribute 4 I want to write another dictionary item that loops through the multivalue list, calls a subroutine and returns calculated values for each item in attribute…
ScaryMinds
  • 335
  • 3
  • 11
1
vote
1 answer

wIntegrate add text to dbgrid column headers

Well the documentation is non-existent on this one, which would seem a pretty straight forward things to want to do. Am trying to add column header text to row 0 and it simply is not playing ball. * Load up the Column REC = "Cell 0,1":VM:"Cell…
ScaryMinds
  • 335
  • 3
  • 11