Skip to content

Commit

Permalink
Merge pull request #53 from hexedtech/fix/panic-and-docs
Browse files Browse the repository at this point in the history
fix: panic and docs
  • Loading branch information
zaaarf authored Oct 16, 2024
2 parents 4448d36 + 66938cb commit 06eaa63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,4 @@ features = ["serialize"]
opt-level = 'z'
lto = true
codegen-units = 1
panic = 'abort'
strip = 'symbols'
2 changes: 1 addition & 1 deletion dist/py/src/codemp/codemp.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Config:
port: Optional[int]
tls: Optional[bool]

def __new__(cls, username: str, password: str, **kwargs) -> Config: ...
def __new__(cls, *, username: str, password: str, **kwargs) -> Config: ...

def init() -> Driver: ...
def set_logger(logger_cb: Callable[[str], None], debug: bool) -> bool: ...
Expand Down
6 changes: 3 additions & 3 deletions src/ffi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,16 @@
//!
//! # connect first, api.code.mp is managed by hexed.technology
//! client = codemp.connect(codemp.Config(
//! username='[email protected]',
//! password='dont-use-this-password'
//! username = "[email protected]",
//! password = "dont-use-this-password"
//! )).wait()
//!
//! # create and join a workspace
//! client.create_workspace("some-workspace").wait()
//! workspace = client.attach_workspace("some-workspace").wait()
//!
//! # create a new buffer in this workspace and attach to it
//! workspace.create("/my/file.txt").wait()
//! workspace.create_buffer("/my/file.txt").wait()
//! buffer = workspace.attach_buffer("/my/file.txt").wait()
//!
//! # write `hello!` at the beginning of this buffer
Expand Down

0 comments on commit 06eaa63

Please sign in to comment.