-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: embed runtime into client and deployer (#559)
* refactor: runtime startup code * feat: hook cli to runtime * feat: hook up logs * feat: custom port * feat: start a next project with the local runner * feat: embed executable * refactor: axum update * refactor: tonic version from workspace * refactor: kill runtime correctly * feat: DB resources for local runs * feat: static folders for local runs * feat: secrets for local runner * refactor: cleanup logs and errors * refactor: rebuild runtime if it changed * refactor: more comments * feat: minimal axum logs * refactor: unneeded default features * refactor: fix rerun-if for runtime * bug: codegen handle_request * refactor: restore db error
- Loading branch information
Showing
44 changed files
with
912 additions
and
464 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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
use std::{env, process::Command}; | ||
|
||
fn main() { | ||
println!("cargo:rerun-if-changed=../runtime"); | ||
|
||
// Build binary for runtime so that it can be embedded in the binary for the cli | ||
let out_dir = env::var_os("OUT_DIR").unwrap(); | ||
Command::new("cargo") | ||
.arg("build") | ||
.arg("--package") | ||
.arg("shuttle-runtime") | ||
.arg("--target-dir") | ||
.arg(out_dir) | ||
.arg("--release") | ||
.output() | ||
.expect("failed to build the shuttle runtime"); | ||
} |
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
Oops, something went wrong.