-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove: remove async_trait crate due to increased MSRV (#234)
* chore: Bumping MSRV to 1.75 * Formatting * Bumping version on Cargo.toml * Configuring matrix workflow * Bringing back actions-rust-lang/setup-rust-toolchain@v1 * Removing "Install Rust Problem Matcher" * Removing dependency * Refactoring code * Relaxing back the Send trait on return types for wasm --------- Co-authored-by: Yoshihiro Sugi <[email protected]>
- Loading branch information
1 parent
3ca9c1a
commit 245d61f
Showing
21 changed files
with
159 additions
and
168 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
mod memory; | ||
|
||
use std::future::Future; | ||
|
||
pub use self::memory::MemorySessionStore; | ||
pub(crate) use super::Session; | ||
use async_trait::async_trait; | ||
|
||
#[cfg_attr(target_arch = "wasm32", async_trait(?Send))] | ||
#[cfg_attr(not(target_arch = "wasm32"), async_trait)] | ||
#[cfg_attr(not(target_arch = "wasm32"), trait_variant::make(Send))] | ||
pub trait SessionStore { | ||
#[must_use] | ||
async fn get_session(&self) -> Option<Session>; | ||
fn get_session(&self) -> impl Future<Output = Option<Session>>; | ||
#[must_use] | ||
async fn set_session(&self, session: Session); | ||
fn set_session(&self, session: Session) -> impl Future<Output = ()>; | ||
#[must_use] | ||
async fn clear_session(&self); | ||
fn clear_session(&self) -> impl Future<Output = ()>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.