shuttle_common/
constants.rs1pub const SHUTTLE_API_URL: &str = "https://api.shuttle.dev";
5pub const SHUTTLE_CONSOLE_URL: &str = "https://console.shuttle.dev";
6
7pub fn other_env_api_url(env: &str) -> String {
8 format!("https://api.{env}.shuttle.dev")
9}
10
11pub const SHUTTLE_INSTALL_DOCS_URL: &str = "https://docs.shuttle.dev/getting-started/installation";
12
13pub const SHUTTLE_GH_REPO_URL: &str = "https://github.com/shuttle-hq/shuttle";
14pub const SHUTTLE_GH_ISSUE_URL: &str = "https://github.com/shuttle-hq/shuttle/issues/new/choose";
15pub const EXAMPLES_REPO: &str = "https://github.com/shuttle-hq/shuttle-examples";
16pub const EXAMPLES_README: &str =
17 "https://github.com/shuttle-hq/shuttle-examples#how-to-clone-run-and-deploy-an-example";
18pub const EXAMPLES_TEMPLATES_TOML: &str =
19 "https://raw.githubusercontent.com/shuttle-hq/shuttle-examples/main/templates.toml";
20
21pub const TEMPLATES_SCHEMA_VERSION: u32 = 1;
23
24pub mod headers {
25 use http::HeaderName;
26
27 pub static X_CARGO_SHUTTLE_VERSION: HeaderName =
28 HeaderName::from_static("x-cargo-shuttle-version");
29}