[{"data":1,"prerenderedAt":201},["ShallowReactive",2],{"page-\u002Fdevelopment\u002Fcontributing":3},{"id":4,"title":5,"body":6,"description":193,"extension":194,"meta":195,"navigation":196,"path":197,"seo":198,"stem":199,"__hash__":200},"content\u002F6.development\u002F1.contributing.md","Contributing",{"type":7,"value":8,"toc":187},"minimark",[9,14,18,77,81,84,121,124,128,135,150,154,183],[10,11,13],"h2",{"id":12},"checks","Checks",[15,16,17],"p",{},"Run all three before every commit:",[19,20,25],"pre",{"className":21,"code":22,"language":23,"meta":24,"style":24},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","cargo fmt --all -- --check\ncargo clippy --all-targets -- -D warnings\ncargo test\n","bash","",[26,27,28,50,69],"code",{"__ignoreMap":24},[29,30,33,37,41,44,47],"span",{"class":31,"line":32},"line",1,[29,34,36],{"class":35},"sBMFI","cargo",[29,38,40],{"class":39},"sfazB"," fmt",[29,42,43],{"class":39}," --all",[29,45,46],{"class":39}," --",[29,48,49],{"class":39}," --check\n",[29,51,53,55,58,61,63,66],{"class":31,"line":52},2,[29,54,36],{"class":35},[29,56,57],{"class":39}," clippy",[29,59,60],{"class":39}," --all-targets",[29,62,46],{"class":39},[29,64,65],{"class":39}," -D",[29,67,68],{"class":39}," warnings\n",[29,70,72,74],{"class":31,"line":71},3,[29,73,36],{"class":35},[29,75,76],{"class":39}," test\n",[10,78,80],{"id":79},"tests-against-the-planet-database","Tests against the planet database",[15,82,83],{},"Some tests need the planet database and are ignored by default:",[19,85,87],{"className":21,"code":86,"language":23,"meta":24,"style":24},"GEOLITH_SEARCH_TEST_DATABASE_URL=postgres:\u002F\u002Fpostgres:pg@localhost:54331\u002Fpostgres \\\n  cargo test -- --ignored --test-threads=1\n",[26,88,89,105],{"__ignoreMap":24},[29,90,91,95,99,102],{"class":31,"line":32},[29,92,94],{"class":93},"sTEyZ","GEOLITH_SEARCH_TEST_DATABASE_URL",[29,96,98],{"class":97},"sMK4o","=",[29,100,101],{"class":39},"postgres:\u002F\u002Fpostgres:pg@localhost:54331\u002Fpostgres",[29,103,104],{"class":35}," \\\n",[29,106,107,110,113,115,118],{"class":31,"line":52},[29,108,109],{"class":39},"  cargo",[29,111,112],{"class":39}," test",[29,114,46],{"class":39},[29,116,117],{"class":39}," --ignored",[29,119,120],{"class":39}," --test-threads=1\n",[15,122,123],{},"Use one test thread when a server is also connected, so the tests do not run out of Postgres connections.",[10,125,127],{"id":126},"api-docs","API docs",[15,129,130,131,134],{},"The OpenAPI document comes from the ",[26,132,133],{},"#[utoipa::path]"," attributes on the handlers. After changing them, review the snapshot:",[19,136,138],{"className":21,"code":137,"language":23,"meta":24,"style":24},"cargo insta review\n",[26,139,140],{"__ignoreMap":24},[29,141,142,144,147],{"class":31,"line":32},[29,143,36],{"class":35},[29,145,146],{"class":39}," insta",[29,148,149],{"class":39}," review\n",[10,151,153],{"id":152},"commits","Commits",[15,155,156,157,160,161,160,164,160,167,160,170,160,173,160,176,160,179,182],{},"Use conventional commits with a lowercase subject: ",[26,158,159],{},"feat",", ",[26,162,163],{},"fix",[26,165,166],{},"perf",[26,168,169],{},"refactor",[26,171,172],{},"test",[26,174,175],{},"docs",[26,177,178],{},"ci",[26,180,181],{},"chore",".",[184,185,186],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}",{"title":24,"searchDepth":52,"depth":52,"links":188},[189,190,191,192],{"id":12,"depth":52,"text":13},{"id":79,"depth":52,"text":80},{"id":126,"depth":52,"text":127},{"id":152,"depth":52,"text":153},"Build, test and commit changes to geolith search.","md",{},true,"\u002Fdevelopment\u002Fcontributing",{"title":5,"description":193},"6.development\u002F1.contributing","MLTgs4JWwIEXdVylc7eFA92oY7eTYpL_WMrJNGeQfLA",1791345919968]