Skip to content

Commit

Permalink
Release v0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
carter committed Oct 4, 2023
1 parent e8f0dee commit dffd3a0
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

## 0.8.0 - Coming Soon
## 0.8.0 - October 4th, 2023

### Added

Expand Down
11 changes: 6 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions roslibrust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "roslibrust"
version = "0.7.0"
version = "0.8.0"
authors = ["carter <[email protected]>", "ssnover <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down Expand Up @@ -35,11 +35,10 @@ tokio = { version = "1.20", features = [
] }
tokio-tungstenite = { version = "0.17" }
uuid = { version = "1.1", features = ["v4"] }
roslibrust_codegen_macro = { path = "../roslibrust_codegen_macro", version = "0.7.0" }
roslibrust_codegen = { path = "../roslibrust_codegen", version = "0.7.0" }
roslibrust_codegen_macro = { path = "../roslibrust_codegen_macro", version = "0.8.0" }
roslibrust_codegen = { path = "../roslibrust_codegen", version = "0.8.0" }
reqwest = { version = "0.11", optional = true } # Only used with native ros1
# serde_xmlrpc = { version = "0.1.2", optional = true } # Only used with native ros1
serde_xmlrpc = { git = "https://github.com/belak/serde-xmlrpc.git", branch = "main", optional = true } # Belak should be release v0.2 soon
serde_xmlrpc = { version = "0.2", optional = true } # Only used with native ros1
serde_rosmsg = { version = "0.2", optional = true } # Only used with native ros1
hyper = { version = "0.14", features = [
"server",
Expand Down
10 changes: 5 additions & 5 deletions roslibrust/src/ros1/master_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ use log::*;

#[derive(thiserror::Error, Debug)]
pub enum RosMasterError {
#[error("Incorrect number a fields is xmlrpc header: {0}")]
InvalidXmlRpcHeader(String),
#[error("Failed to understand xmlrpc message: {0}")]
InvalidXmlRpcMessage(#[from] serde_xmlrpc::Error),
#[error("Failed to communicate with server: {0}")]
Expand Down Expand Up @@ -332,11 +334,9 @@ impl MasterClient {
debug!("System State Body: {body}");
let res: Vec<Vec<(String, Vec<String>)>> = self.post(body).await?;
if res.len() != 3 {
return Err(RosMasterError::InvalidXmlRpcMessage(
serde_xmlrpc::Error::DecodeError(format!(
"Incorrect number of fields returned by getSystemState: {res:?}"
)),
));
return Err(RosMasterError::InvalidXmlRpcHeader(format!(
"Incorrect number of fields returned by getSystemState: {res:?}"
)));
}
let mut res: Vec<Vec<StateEntry>> = res
.into_iter()
Expand Down
2 changes: 1 addition & 1 deletion roslibrust_codegen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "roslibrust_codegen"
version = "0.7.0"
version = "0.8.0"
edition = "2021"
authors = ["carter <[email protected]>", "ssnover <[email protected]>"]
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions roslibrust_codegen_macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "roslibrust_codegen_macro"
edition = "2021"
description = "Provides macro-based message generation for roslibrust"
version = "0.7.0"
version = "0.8.0"
repository = "https://github.com/Carter12s/roslibrust"
license = "MIT"
readme = "README.md"
Expand All @@ -16,5 +16,5 @@ proc-macro2 = "1.0"
quote = "1.0"
# Note: finds path version when building locally, and crates.io version when publishing
# https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#multiple-locations
roslibrust_codegen = { path = "../roslibrust_codegen", version = "0.7.0" }
roslibrust_codegen = { path = "../roslibrust_codegen", version = "0.8.0" }
syn = "1.0"

0 comments on commit dffd3a0

Please sign in to comment.