Diesel: #![recursion_limit="128"]

Created on 28 Aug 2017  ·  3Comments  ·  Source: diesel-rs/diesel

Setup

Versions

Feature Flags

  • diesel: Mysql
  • diesel_codegen: Mysql

Problem Description

schema.rs

infer_schema!("dotenv:DATABASE_URL");

build error

error: recursion limit reached while expanding the macro `numeric_expr`
 --> src/schema.rs:1:1
  |
1 | infer_schema!("dotenv:DATABASE_URL");
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: consider adding a `#![recursion_limit="128"]` attribute to your crate
  = note: this error originates in a macro outside of the current crate

Most helpful comment

Do what the rust compiler tells you to do

I want that on a t shirt

All 3 comments

What was your solution?

@mmstick Do what the rust compiler tells you to do, add a #[recursion_limit="128"] at the root of your crate

Do what the rust compiler tells you to do

I want that on a t shirt

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Fuckoffee picture Fuckoffee  ·  3Comments

mattico picture mattico  ·  4Comments

jimmycuadra picture jimmycuadra  ·  3Comments

orionz picture orionz  ·  3Comments

qmx picture qmx  ·  3Comments