diff --git a/Cargo.toml b/Cargo.toml index 5c3f4d4..ae5f6a8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -85,5 +85,4 @@ features = ["serialize"] opt-level = 'z' lto = true codegen-units = 1 -panic = 'abort' strip = 'symbols' diff --git a/dist/py/src/codemp/codemp.pyi b/dist/py/src/codemp/codemp.pyi index 5b09cb5..73bfa0b 100644 --- a/dist/py/src/codemp/codemp.pyi +++ b/dist/py/src/codemp/codemp.pyi @@ -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: ... diff --git a/src/ffi/mod.rs b/src/ffi/mod.rs index b7040d1..ce2f0f3 100644 --- a/src/ffi/mod.rs +++ b/src/ffi/mod.rs @@ -83,8 +83,8 @@ //! //! # connect first, api.code.mp is managed by hexed.technology //! client = codemp.connect(codemp.Config( -//! username='mail@example.net', -//! password='dont-use-this-password' +//! username = "mail@example.net", +//! password = "dont-use-this-password" //! )).wait() //! //! # create and join a workspace @@ -92,7 +92,7 @@ //! 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