| Crates.io | limiting-factor |
| lib.rs | limiting-factor |
| version | 0.8.0 |
| created_at | 2018-09-06 14:15:12.44008+00 |
| updated_at | 2023-04-11 00:42:03.844058+00 |
| description | Library to create a REST API with Diesel and Rocket |
| homepage | |
| repository | https://devcentral.nasqueron.org/source/limiting-factor/ |
| max_upload_size | |
| id | 83173 |
| size | 34,039 |
The limiting-factor crate offers facilities to implement a REST API.
The goal of this library is to provide:
That allows an API or a back-end web server to focus on requests and data model, and to maintain helper methods as a separate library.
You need to give to rustc some hints about where libpq.lib is.
The pq-sys crate offers a build script to find the library and then print the relevant hints.
You can manually set your PostgreSQL library folder with:
export PQ_LIB_DIR="C:\Program Files\PostgreSQL\13\lib"
cargo run
The glue code to use Rocket with Diesel is adapted from the Rocket guide. See https://rocket.rs/guide/state/#databases. Guide author: Sergio Benitez.