File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,6 @@ keywords = ["metrics"]
8
8
description = " Run a web service to compute and export code metrics"
9
9
license = " MPL-2.0"
10
10
11
- [[bin ]]
12
- name = " rust-code-analysis-web"
13
-
14
11
[dependencies ]
15
12
actix-rt = " ^2.6"
16
13
actix-web = " ^4.2"
Original file line number Diff line number Diff line change 1
- // After adding new fields for min and max in the json (server.rs line 630) this error arose:
2
- // error: recursion limit reached while expanding `json_internal!`
3
- // This solution was proposed as help by the compiler
4
- // for the full error details check here :https://github.com/mozilla/rust-code-analysis/pull/793#discussion_r817610530
5
- #![ recursion_limit = "256" ]
6
- mod web;
7
-
8
1
use std:: thread:: available_parallelism;
9
2
10
3
use clap:: Parser ;
11
4
12
- use web :: server;
5
+ use rust_code_analysis_web :: server:: run ;
13
6
14
7
#[ derive( Parser , Debug ) ]
15
8
#[ clap(
@@ -40,7 +33,7 @@ async fn main() {
40
33
. get ( )
41
34
} ) ;
42
35
43
- if let Err ( e) = server :: run ( & opts. host , opts. port , num_jobs) . await {
36
+ if let Err ( e) = run ( & opts. host , opts. port , num_jobs) . await {
44
37
eprintln ! (
45
38
"Cannot run the server at {}:{}: {}" ,
46
39
opts. host, opts. port, e
Original file line number Diff line number Diff line change
1
+ // After adding new fields for min and max in the json (server.rs line 630) this error arose:
2
+ // error: recursion limit reached while expanding `json_internal!`
3
+ // This solution was proposed as help by the compiler
4
+ // for the full error details check here :https://github.com/mozilla/rust-code-analysis/pull/793#discussion_r817610530
5
+ #![ recursion_limit = "256" ]
6
+ pub mod web;
7
+ pub use web:: * ;
You can’t perform that action at this time.
0 commit comments