-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Axum stream and static routes (#578)
* Migrate stream routes to Axum * Cleanup a lot of unnecessary cloning * Migrate static routes to Axum * Remove warp * embed_ui feature added to dim-web build.rs
- Loading branch information
Showing
27 changed files
with
551 additions
and
1,133 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
use std::env; | ||
use std::path::Path; | ||
|
||
fn main() { | ||
let out_dir = env::var("CARGO_TARGET_DIR").unwrap(); | ||
let db_file = format!("{out_dir}/dim_dev.db"); | ||
println!("cargo:rustc-env=DATABASE_URL=sqlite://{db_file}"); | ||
|
||
if Path::new("../ui/build").exists() { | ||
println!("cargo:rustc-cfg=feature=\"embed_ui\""); | ||
} else { | ||
println!("cargo:warning=`ui/build` does not exist."); | ||
println!("cargo:warning=If you wish to embed the webui, run `yarn build` in `ui`."); | ||
} | ||
|
||
println!("cargo:rerun-if-changed=ui/build"); | ||
println!("cargo:rerun-if-changed=build.rs"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.