v0.2.1
This commit is contained in:
@@ -13,9 +13,12 @@
|
||||
* except according to those terms.
|
||||
*/
|
||||
|
||||
#[cfg(feature = "async")]
|
||||
use futures_util::StreamExt;
|
||||
#[cfg(feature = "async")]
|
||||
use jmap_client::{client::Client, TypeState};
|
||||
|
||||
#[cfg(feature = "async")]
|
||||
async fn event_source() {
|
||||
// Connect to the JMAP server using Basic authentication
|
||||
let client = Client::new()
|
||||
@@ -58,5 +61,6 @@ async fn event_source() {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
#[cfg(feature = "async")]
|
||||
let _c = event_source();
|
||||
}
|
||||
|
||||
@@ -13,11 +13,13 @@
|
||||
* except according to those terms.
|
||||
*/
|
||||
|
||||
#[cfg(feature = "async")]
|
||||
use jmap_client::{
|
||||
client::Client,
|
||||
mailbox::{query::Filter, Role},
|
||||
};
|
||||
|
||||
#[cfg(feature = "async")]
|
||||
async fn mailboxes() {
|
||||
// Connect to the JMAP server using Basic authentication
|
||||
let client = Client::new()
|
||||
@@ -65,5 +67,6 @@ async fn mailboxes() {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
#[cfg(feature = "async")]
|
||||
let _c = mailboxes();
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* except according to those terms.
|
||||
*/
|
||||
|
||||
#[cfg(feature = "async")]
|
||||
use jmap_client::{
|
||||
client::Client,
|
||||
core::query::Filter,
|
||||
@@ -20,6 +21,7 @@ use jmap_client::{
|
||||
mailbox::{self, Role},
|
||||
};
|
||||
|
||||
#[cfg(feature = "async")]
|
||||
const TEST_MESSAGE: &[u8; 90] = br#"From: john@example.org
|
||||
To: jane@example.org
|
||||
Subject: Testing JMAP client
|
||||
@@ -27,6 +29,7 @@ Subject: Testing JMAP client
|
||||
This is a test.
|
||||
"#;
|
||||
|
||||
#[cfg(feature = "async")]
|
||||
async fn messages() {
|
||||
// Connect to the JMAP server using Basic authentication
|
||||
let client = Client::new()
|
||||
@@ -116,5 +119,6 @@ async fn messages() {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
#[cfg(feature = "async")]
|
||||
let _c = messages();
|
||||
}
|
||||
|
||||
@@ -13,8 +13,10 @@
|
||||
* except according to those terms.
|
||||
*/
|
||||
|
||||
#[cfg(feature = "async")]
|
||||
use jmap_client::{client::Client, core::query, email, mailbox};
|
||||
|
||||
#[cfg(feature = "async")]
|
||||
async fn result_reference() {
|
||||
// Connect to the JMAP server using Basic authentication
|
||||
let client = Client::new()
|
||||
@@ -97,5 +99,6 @@ async fn result_reference() {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
#[cfg(feature = "async")]
|
||||
let _c = result_reference();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user