mirror of
https://github.com/hexedtech/codemp-sublime.git
synced 2024-11-25 08:14:48 +01:00
version bump to 0.3.0, supporting codemp 0.5, fixed content function, new bindings
Former-commit-id: 14b565f48f493c4c731a00e9511ef5af65332264
This commit is contained in:
parent
0c3334b827
commit
a22d8ff6e1
3 changed files with 7 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "CodempClient-Sublime"
|
||||
version = "0.2.0"
|
||||
version = "0.3.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
@ -9,7 +9,7 @@ name = "codemp_client"
|
|||
crate-type = ["cdylib"]
|
||||
|
||||
[dependencies]
|
||||
codemp = { git = "ssh://git@github.com/codewithotherpeopleandchangenamelater/codemp.git", branch = "woot"}
|
||||
codemp = { git = "ssh://git@github.com/codewithotherpeopleandchangenamelater/codemp.git", tag="v0.5.0"}
|
||||
pyo3 = { version = "0.20", features = ["extension-module"] }
|
||||
pyo3-asyncio = { version = "0.20", features = ["tokio-runtime"] }
|
||||
tokio = "1.29.1"
|
||||
|
|
|
@ -1 +1 @@
|
|||
b7e89a844729eeabc833622b3e3f12bc3fd53273
|
||||
c89068ebc710e18686da3486ffb87421db21e058
|
|
@ -5,7 +5,8 @@ use codemp::errors::Error as CodempError;
|
|||
|
||||
use pyo3::{
|
||||
prelude::*,
|
||||
exceptions::{PyConnectionError, PyRuntimeError, PyBaseException}
|
||||
exceptions::{PyConnectionError, PyRuntimeError, PyBaseException},
|
||||
types::PyString,
|
||||
};
|
||||
|
||||
struct PyCodempError(CodempError);
|
||||
|
@ -243,8 +244,8 @@ impl From::<Arc<CodempBufferController>> for PyBufferController {
|
|||
#[pymethods]
|
||||
impl PyBufferController {
|
||||
|
||||
fn content(&self) -> PyString {
|
||||
self.0.content()
|
||||
fn content<'a>(&self, py: Python<'a>) -> &'a PyString {
|
||||
PyString::new(py, self.0.content().as_str())
|
||||
}
|
||||
|
||||
fn send(&self, start: usize, end: usize, txt: String) -> PyResult<()>{
|
||||
|
|
Loading…
Reference in a new issue