Skip to content

Commit

Permalink
chore: upgrade shuttle from 0.40.0 to 0.43.0
Browse files Browse the repository at this point in the history
  • Loading branch information
c-git committed Apr 3, 2024
1 parent 05b98b9 commit 0064efa
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 43 deletions.
55 changes: 20 additions & 35 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ human-time = "0.1.6"
poise = "0.6.1"
secrecy = "0.8.0"
serde = { version = "1.0.197", features = ["derive"] }
shuttle-persist = "0.40.0"
shuttle-runtime = "0.40.0"
shuttle-secrets = "0.40.0"
shuttle-persist = "0.43.0"
shuttle-runtime = "0.43.0"
# Since poise is a serenity command framework, it can run on Shuttle with shuttle-serenity
shuttle-serenity = "0.40.0"
shuttle-serenity = "0.43.0"
tokio = "1.26.0"
tracing = "0.1.37"
version = "3.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{collections::HashSet, time::Instant};
use anyhow::Context as _;
use poise::serenity_prelude::{ChannelId, GuildId, RoleId, UserId};
use shuttle_persist::PersistInstance;
use shuttle_secrets::SecretStore;
use shuttle_runtime::SecretStore;

use crate::secrets::KeyName;

Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ use bazooka_bot::{commands_list, get_secret_discord_token, Data, SharedConfig, S
use poise::serenity_prelude::{ClientBuilder, GatewayIntents};
use secrecy::ExposeSecret;
use shuttle_persist::PersistInstance;
use shuttle_secrets::SecretStore;
use shuttle_runtime::SecretStore;
use shuttle_serenity::ShuttleSerenity;
use tracing::{error, info, warn};
use version::version;

#[shuttle_runtime::main]
async fn main(
#[shuttle_secrets::Secrets] secret_store: SecretStore,
#[shuttle_runtime::Secrets] secret_store: SecretStore,
#[shuttle_persist::Persist] persist: PersistInstance,
) -> ShuttleSerenity {
info!("Bot version is {}", version::version!());
Expand Down
2 changes: 1 addition & 1 deletion src/secrets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::str::FromStr;

use anyhow::{bail, Context as _};
use secrecy::{zeroize::DefaultIsZeroes, Secret, SecretString};
use shuttle_secrets::SecretStore;
use shuttle_runtime::SecretStore;
use tracing::warn;

pub enum KeyName {
Expand Down

0 comments on commit 0064efa

Please sign in to comment.