diff --git a/README.md b/README.md index efc0128..b5ebed6 100644 --- a/README.md +++ b/README.md @@ -72,34 +72,7 @@ add this crate at your cargo.toml : ```toml # the branch is the coppelia version -zmq_remote_api = { git = "https://github.com/samuel-cavalcanti/rust_zmqRemoteApi", branch = "CoppeliaSim_4.4.0"} +zmq_remote_api = { git = "https://github.com/samuel-cavalcanti/rust_zmqRemoteApi", branch = "CoppeliaSim_4.5.1"} ``` See this simple [example](examples/get_simulation_time.rs) to understand how to use this create. - -### Main Branch - -the main branch use the smart pointers -```rust -// main branch -let client = zmq_remote_api::RemoteApiClient::new(RemoteApiClientParams { -host: "localhost".to_string(), -..RemoteApiClientParams::default() -})?; - -// Rc means Reference counter, is a smart pointer that counter the number of references -let client = Rc::new(client); -let sim = Sim::new(client.clone()); -``` -Using smart pointer is easier than dealing with borrowing and life cycle. - -```rust -// CoppeliaSim_4.4.0, CoppeliaSim_4.3.0 - - let client = zmq_remote_api::RemoteApiClient::new(RemoteApiClientParams { - host: "localhost".to_string(), - ..RemoteApiClientParams::default() - })?; - - let sim = Sim::new(&client); -``` \ No newline at end of file