sasl: Make this crate no_std

We mostly had to import from alloc some structs that are part of the std
prelude, such as Vec and String.
This commit is contained in:
Emmanuel Gil Peyrot 2024-09-25 21:55:02 +02:00
commit dc842c44d1
14 changed files with 57 additions and 19 deletions

View file

@ -1,4 +1,5 @@
use std::fmt;
use alloc::vec::Vec;
use core::fmt;
use crate::common::Credentials;
@ -84,7 +85,7 @@ impl fmt::Display for MechanismError {
}
}
impl std::error::Error for MechanismError {}
impl core::error::Error for MechanismError {}
/// A trait which defines SASL mechanisms.
pub trait Mechanism {