shuttle_common/
constants.rspub const EXECUTABLE_DIRNAME: &str = ".shuttle-executables";
pub const STORAGE_DIRNAME: &str = ".shuttle-storage";
pub const API_URL_LOCAL: &str = "http://localhost:8001";
pub const API_URL_RS: &str = "https://api.shuttle.rs";
pub const API_URL_DEFAULT_BETA: &str = "https://api.shuttle.dev";
#[cfg(debug_assertions)]
pub const API_URL_DEFAULT: &str = API_URL_LOCAL;
#[cfg(not(debug_assertions))]
pub const API_URL_DEFAULT: &str = API_URL_RS;
pub const SHUTTLE_STATUS_URL: &str = "https://status.shuttle.rs";
pub const SHUTTLE_LEGACY_NEW_PROJECT: &str = "https://console.shuttle.rs/new-project";
pub const SHUTTLE_CONSOLE_URL: &str = "https://console.shuttle.dev";
pub const SHUTTLE_INSTALL_DOCS_URL: &str = "https://docs.shuttle.dev/getting-started/installation";
pub const SHUTTLE_IDLE_DOCS_URL: &str = "https://docs.shuttle.rs/getting-started/idle-projects";
pub const SHUTTLE_GH_REPO_URL: &str = "https://github.com/shuttle-hq/shuttle";
pub const SHUTTLE_GH_ISSUE_URL: &str = "https://github.com/shuttle-hq/shuttle/issues/new/choose";
pub const EXAMPLES_REPO: &str = "https://github.com/shuttle-hq/shuttle-examples";
pub const EXAMPLES_README: &str =
"https://github.com/shuttle-hq/shuttle-examples#how-to-clone-run-and-deploy-an-example";
pub const EXAMPLES_TEMPLATES_TOML: &str =
"https://raw.githubusercontent.com/shuttle-hq/shuttle-examples/main/templates.toml";
pub const RUNTIME_NAME: &str = "shuttle-runtime";
pub const RESOURCE_SCHEMA_VERSION: u32 = 1;
pub const TEMPLATES_SCHEMA_VERSION: u32 = 1;
pub const DEFAULT_IDLE_MINUTES: u64 = 30;
pub const fn default_idle_minutes() -> u64 {
DEFAULT_IDLE_MINUTES
}
pub const DEPLOYER_SERVICE_HTTP_PORT: u16 = 8000;
pub mod limits {
pub const MAX_PROJECTS_DEFAULT: u32 = 3;
pub const MAX_PROJECTS_EXTRA: u32 = 15;
}
pub mod headers {
use http::HeaderName;
pub static X_CARGO_SHUTTLE_VERSION: HeaderName =
HeaderName::from_static("x-cargo-shuttle-version");
}