railwayapp 4.61.1

Interact with Railway via CLI
1
2
3
4
5
6
7
8
9
10
11
12
// Rebuild when the GraphQL queries and mutations change
fn main() {
    println!("cargo:rerun-if-changed=src/gql/queries/strings");
    println!("cargo:rerun-if-changed=src/gql/mutations/strings");
    println!("cargo:rerun-if-changed=src/gql/subscriptions/strings");
    println!("cargo:rerun-if-changed=src/gql/schema.json");

    // Expose the compile-time target triple so the self-updater fetches the
    // correct release asset (respects ABI: gnu vs musl, msvc vs gnu, etc.).
    let target = std::env::var("TARGET").unwrap();
    println!("cargo:rustc-env=BUILD_TARGET={target}");
}