Some rustfmt stuff
parent
9835638762
commit
bb95f1ba97
|
@ -51,7 +51,6 @@ incremental = true
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = "fat"
|
lto = "fat"
|
||||||
incremental = true
|
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
|
|
||||||
# For releases also try to max optimizations for dependencies:
|
# For releases also try to max optimizations for dependencies:
|
||||||
|
@ -59,4 +58,3 @@ codegen-units = 1
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
[profile.release.package."*"]
|
[profile.release.package."*"]
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
|
|
||||||
|
|
3
Rb.yaml
3
Rb.yaml
|
@ -1,8 +1,9 @@
|
||||||
default:
|
default:
|
||||||
address: "0.0.0.0"
|
address: "0.0.0.0"
|
||||||
ports: 8000
|
port: 8000
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
|
port: 8001
|
||||||
keep_alive: 5
|
keep_alive: 5
|
||||||
read_timeout: 5
|
read_timeout: 5
|
||||||
write_timeout: 5
|
write_timeout: 5
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
unstable_features = true
|
||||||
binop_separator = "Front"
|
binop_separator = "Front"
|
||||||
blank_lines_lower_bound = 0
|
blank_lines_lower_bound = 0
|
||||||
blank_lines_upper_bound = 1
|
blank_lines_upper_bound = 1
|
||||||
|
@ -49,7 +50,6 @@ reorder_imports = true
|
||||||
reorder_modules = true
|
reorder_modules = true
|
||||||
report_fixme = "Always"
|
report_fixme = "Always"
|
||||||
report_todo = "Always"
|
report_todo = "Always"
|
||||||
required_version = "1.4.37"
|
|
||||||
skip_children = false
|
skip_children = false
|
||||||
space_after_colon = true
|
space_after_colon = true
|
||||||
space_before_colon = false
|
space_before_colon = false
|
||||||
|
@ -60,7 +60,6 @@ tab_spaces = 4
|
||||||
trailing_comma = "Vertical"
|
trailing_comma = "Vertical"
|
||||||
trailing_semicolon = true
|
trailing_semicolon = true
|
||||||
type_punctuation_density = "Wide"
|
type_punctuation_density = "Wide"
|
||||||
unstable_features = false
|
|
||||||
use_field_init_shorthand = false
|
use_field_init_shorthand = false
|
||||||
use_small_heuristics = "Default"
|
use_small_heuristics = "Default"
|
||||||
use_try_shorthand = false
|
use_try_shorthand = false
|
||||||
|
|
|
@ -21,7 +21,4 @@ table! {
|
||||||
|
|
||||||
joinable!(posts -> sections (section_id));
|
joinable!(posts -> sections (section_id));
|
||||||
|
|
||||||
allow_tables_to_appear_in_same_query!(
|
allow_tables_to_appear_in_same_query!(posts, sections,);
|
||||||
posts,
|
|
||||||
sections,
|
|
||||||
);
|
|
||||||
|
|
4
test.py
4
test.py
|
@ -12,8 +12,8 @@ data = {
|
||||||
"shortname": "short",
|
"shortname": "short",
|
||||||
}
|
}
|
||||||
|
|
||||||
r = requests.post("http://localhost:8000/v1/sections", headers=headers, json=data)
|
r = requests.post("http://localhost:8000/api/v1/sections", headers=headers, json=data)
|
||||||
print(r.content)
|
print(r.content)
|
||||||
print(r.status_code)
|
print(r.status_code)
|
||||||
r = requests.get("http://localhost:8000/v1/sections?offset=0&limit=100")
|
r = requests.get("http://localhost:8000/api/v1/sections?offset=0&limit=100")
|
||||||
print(r.json())
|
print(r.json())
|
||||||
|
|
Reference in New Issue