-
Notifications
You must be signed in to change notification settings - Fork 274
feat: embed runtime into client and deployer #559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
chesedo
merged 21 commits into
shuttle-hq:shuttle-next
from
chesedo:feature/eng-363-embed-runtime-into-client-and-deployer
Jan 6, 2023
Merged
Changes from 17 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
ff243ce
refactor: runtime startup code
chesedo fad146d
feat: hook cli to runtime
chesedo 60a2afd
feat: hook up logs
chesedo e9820dc
feat: custom port
chesedo 2f56a42
feat: start a next project with the local runner
chesedo 3984c73
feat: embed executable
chesedo 59b69d0
refactor: axum update
chesedo 2d539b2
refactor: tonic version from workspace
chesedo 6300a13
refactor: kill runtime correctly
chesedo 3e1ab71
feat: DB resources for local runs
chesedo bc7468d
feat: static folders for local runs
chesedo c93a489
feat: secrets for local runner
chesedo f33b50d
refactor: cleanup logs and errors
chesedo 18f575a
refactor: rebuild runtime if it changed
chesedo 5eb6bc6
refactor: more comments
chesedo 72b2ca6
feat: minimal axum logs
chesedo 242de60
refactor: unneeded default features
chesedo 9e83ac6
Merge remote-tracking branch 'upstream/shuttle-next' into feature/eng…
chesedo c377c60
refactor: fix rerun-if for runtime
chesedo 559e4ed
bug: codegen handle_request
chesedo 9b95a85
refactor: restore db error
chesedo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.