Skip to content

Commit a928489

Browse files
committed
fix: ffi doctests
1 parent 08ccc3b commit a928489

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ pyo3-build-config = { version = "0.28", optional = true }
7676
pyo3-introspection = { version = "0.28", optional = true }
7777

7878
[features]
79-
default = ["client", "lua-jit", "py-abi3", "py-extmod"]
79+
default = ["lua-jit", "py-abi3", "py-extmod"]
8080
proto = ["dep:codemp-proto"]
8181
client = ["proto", "dep:tonic", "dep:tokio", "dep:tokio-stream", "dep:dashmap", "codemp-proto?/client"]
82+
server = ["proto", "codemp-proto?/server"]
8283
# extra
8384
async-trait = ["dep:async-trait"]
8485
serialize = ["dep:serde", "uuid?/serde"]

src/ffi/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
//! use codemp::api::controller::{AsyncReceiver, AsyncSender}; // needed for send/recv trait methods
88
//!
99
//! // connect first, api.code.mp is managed by hexed.technology
10-
//! let client = codemp::Client::connect(codemp::api::Config {
10+
//! let session = codemp::Session::connect(codemp::api::Config {
1111
//! username: "mail@example.net".into(), password: "dont-use-this-password".into(),
1212
//! ..Default::default()
1313
//! }).await?;
1414
//!
1515
//! // create and join a workspace
16-
//! client.create_workspace("some-workspace").await?;
17-
//! let workspace = client.attach_workspace("my-username", "some-workspace").await?;
16+
//! session.create_workspace("some-workspace").await?;
17+
//! let workspace = session.attach_workspace("my-username", "some-workspace").await?;
1818
//!
1919
//! // create a new buffer in this workspace and attach to it
2020
//! workspace.create_buffer("/my/file.txt", None).await?;

0 commit comments

Comments
 (0)