Crates.io | ros_package_manifest |
lib.rs | ros_package_manifest |
version | 0.2.0 |
source | src |
created_at | 2019-07-28 15:04:43.520071 |
updated_at | 2020-11-08 13:08:39.094037 |
description | This crate parses ROS package manifest (also known as package.xml) |
homepage | https://github.com/lelongg/ros_package_manifest |
repository | https://github.com/lelongg/ros_package_manifest |
max_upload_size | |
id | 152365 |
size | 30,180 |
This crate parses ROS package manifest, also known as package.xml
, as defined in
REP 127, REP 140, REP 149.
use ros_package_manifest::{Package, PackageCommonMethods};
use std::str::FromStr;
let package_xml = std::fs::read_to_string("data/package.xml")?;
let package = Package::from_str(&package_xml)?;
assert_eq!(package.name(), "rosmaster");