fix: add ghost main() function for nightly/beta rust doctests

This commit is contained in:
zaaarf 2024-09-25 16:42:09 +02:00
parent 6bf98d37e0
commit d506d8cc74
No known key found for this signature in database
GPG key ID: 102E445F4C3F829B

View file

@ -19,6 +19,7 @@
//! a supported remote server and returns a [`Client`] handle to interact with it.
//!
//! ```no_run
//! # fn main() {}
//! # async fn main_fn() {
//! let client = codemp::Client::connect(
//! codemp::api::Config::new(
@ -35,6 +36,7 @@
//! [`Client::join_workspace`] or create a new one with [`Client::create_workspace`].
//!
//! ```no_run
//! # fn main() {}
//! # async fn main_fn() {
//! # let client = codemp::Client::connect(codemp::api::Config::new("", "")).await.unwrap();
//! client.create_workspace("my-workspace").await.expect("failed to create workspace!");
@ -46,6 +48,7 @@
//! and one or more [`buffer::Controller`] to send and receive [`api::TextChange`]s.
//!
//! ```no_run
//! # fn main() {}
//! # async fn main_fn() {
//! # let client = codemp::Client::connect(codemp::api::Config::new("", "")).await.unwrap();
//! # client.create_workspace("").await.unwrap();
@ -62,6 +65,7 @@
//! guaranteed to converge.
//!
//! ```no_run
//! # fn main() {}
//! # async fn main_fn() {
//! # let client = codemp::Client::connect(codemp::api::Config::new("", "")).await.unwrap();
//! # client.create_workspace("").await.unwrap();