Skip to content

Best way to use SQLPage embedded in a Rust CLI? #121

Answered by lovasoa
shah asked this question in Q&A
Discussion options

You must be logged in to vote

Hello !

You may want to have a look at the tests for ideas of how to include sqlpage in an external crate: https://github.com/lovasoa/SQLpage/blob/main/tests/index.rs

The root function that you'll want to use is probably: https://github.com/lovasoa/SQLpage/blob/main/src/webserver/http.rs#L562-L581

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants