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
10
votes
4 answers

What's the difference between Docker and Rocket from CoreOS?

Can anyone understand and explain the fundamental differences of Docker and Rocket? I don't seem to get it. Maybe it's just too new of a direction. Hope someone can explain the fundamental pros and cons of Docker vs…
stashfree
  • 655
  • 6
  • 22
8
votes
2 answers

Docker vs. Rocket in development

Why should I consider using Rocket instead of Docker in our development pipeline. We would like to use docker to create testable containers, but now there is Rocket which pretends to know the same. If we would like to start containerization should…
Zveratko
  • 2,663
  • 6
  • 35
  • 64
4
votes
3 answers

How to return JSON as a response in Rust Rocket with auto field deserialising?

I'm trying to create a Printing Server in rust and face a problem when trying to send JSON as a response. I've found on the Rocket documentation that is really easy to send JSON as a response: You just have to use the Serde library. Unfortunatly,…
DirBear
  • 63
  • 1
  • 8
4
votes
1 answer

RISC-V Rocket Cache Coherence

For the RISC-V Rocket processor, what kind of write policy do the caches employ (e.g. Write Back + Allocate, Write Through + No Allocate)? How are the L1 caches kept coherent with the L2 caches in RISC-V?
Caylen Lee
  • 75
  • 5
3
votes
1 answer

How to create rocket + sea orm correct json response?

I am new in rust and have problems with correct JSON response in the Rocket framework. I have Entity that was created by sea-ql I just added [serde(crate = "rocket::serde")] and use rocket::serde::{Deserialize, Serialize}; use…
Beliaf
  • 577
  • 2
  • 8
  • 25
2
votes
1 answer

Rust async loop function blocks another futures execution

I have my app consisting of service and http server. Service has some things going on with OS api, waiting for events, etc. and it has loop for this purposes as well as async db writes. I start this service with async function. Server(written with…
dalvi
  • 27
  • 5
2
votes
0 answers

How to pass a Rust function to onclick inside html button tag?

I want to pass a rust function for the onClick in my button tag. I know how to pass a variable but a function not. Below is my rust file where I call the routes: use rocket_dyn_templates::{context, Template}; use…
koda777
  • 23
  • 4
2
votes
1 answer

Rocket rust unprocessable entity returning json errors

I'm making an API using Rocket and I'm a newbie in this one yet. I'm reading the documentation, but I cannot find a way to return a json error when the json received is incorrect. This is my struct #[derive(Deserialize, Serialize, Clone,…
Renato Cassino
  • 792
  • 1
  • 7
  • 27
2
votes
1 answer

Error on Post Method query_builder::QueryFragment / query_builder::QueryFragment

I am relatively new to rust and have really enjoyed playing around with it. However I am stuck on an error for my CRUD application using Diesel and Rocket. I have a main.rs, model.rs and schema.rs. I get an error with my POST method that uses the…
james
  • 23
  • 6
2
votes
2 answers

Can't resolve `Responder<'_, '_>` is not implemented for `rocket_contrib::json::Json`

I'm trying to return Json data with a rocket handler. I've seen many other posts with the same issue, where the solution for basically everyone where that they hadn't implemented serde::Deserialize/serde::Serialize. Does anyone have a…
2
votes
1 answer

Rocket Universe & Unidata File

This is just for clarification, know exactly what a qpointer is but today in a meeting the concept of a dpointer was raised. Anyone know what a "D" pointer refers to? Never ever heard this term before.
ScaryMinds
  • 335
  • 3
  • 11
2
votes
4 answers

How to enable containers internet access through flannel?

Problem: / # ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8): 56 data bytes ping: sendto: Network unreachable Example container ifconfig: eth0 Link encap:Ethernet HWaddr F2:3D:87:30:39:B8 inet addr:10.2.8.64 Bcast:0.0.0.0 Mask:255.255.255.0 …
untorhe
  • 31
  • 1
  • 5
2
votes
1 answer

Running SPEC06 with RISCV architecture

I want to run SPEC06 benchmarks with the changes I made to the RISC-V Rocket chip architecture and the RISC-V compiler. I am aware Dhrystone is already there, but I want to measure performances with other benchmarks. What are the steps to be able to…
Monjur
  • 51
  • 4
2
votes
1 answer

Showing Chisel signals in VCD

I'm working with a RISC-V Rocket chip. I added some of my own signals and logic and wanted to see the values of existing signals in the Rocket chip that aren't already shown in the VCD waveform. How do I dump these signals in the VCD file?
Caylen Lee
  • 75
  • 5
2
votes
1 answer

Does anyone know how to add new user on rocket universe?

I have installed Rocket Universe database on my computer, however, I need a username and password to connect through JDBC. Do you know how I can add a new user? Thank you
Joe
  • 23
  • 3
1
2 3 4 5