future-motorcycle-74352
05/14/2023, 3:02 AMenough-oil-62271
05/14/2023, 4:22 AM#[shuttle_runtime::main]
attribute like this:
rs
#[shuttle_runtime::main]
async fn main(
#[shuttle_secrets::Secrets] secret_store: SecretStore,
)
From there you can use the get()
function on the secret_store to retrieve a secret by its namefuture-motorcycle-74352
05/15/2023, 3:36 AMgentle-ice-1561
05/15/2023, 10:15 AMshuttle_runtime::main
function, you can extract secrets from the Secretstore, and use std::env::set_var
. This has worked for me for loading AWS credentials into my program.future-motorcycle-74352
05/15/2023, 10:23 AMfuture-motorcycle-74352
05/15/2023, 10:23 AMgentle-ice-1561
05/15/2023, 10:27 AMignore::walk::WalkBuilder
is used, which excludes files listed in files such as .gitignore and .ignore
- target/ is always ignored
- hidden files are always ignoredfuture-motorcycle-74352
05/16/2023, 7:58 AMfuture-motorcycle-74352
05/16/2023, 7:59 AMgentle-ice-1561
05/16/2023, 8:00 AMgentle-agency-53651
05/17/2023, 10:54 AMfuture-motorcycle-74352
05/17/2023, 10:58 AMagreeable-painting-48846
05/17/2023, 1:15 PMgentle-ice-1561
05/17/2023, 3:12 PMfuture-motorcycle-74352
05/17/2023, 9:08 PMstocky-kangaroo-53672
05/18/2023, 9:39 AM.rs
files should work. Else static folders would break 🤔 We do move the binary after compiling it though. So maybe Rocket was just looking for it in the wrong place