From d5573db35aec3074df1257041a7b6fc8681c101e Mon Sep 17 00:00:00 2001 From: Wilfried Chauveau Date: Sun, 16 Aug 2020 00:19:08 +0100 Subject: [PATCH] rename to async-gcode as it fits better what it is (and gcode is already taken) --- Cargo.toml | 8 +++++--- examples/cli.rs | 10 ++++------ src/lib.rs | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8774a10..9a2a4b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,13 @@ [package] -name = "gcode" +name = "async-gcode" version = "0.2.0" authors = ["Wilfried Chauveau "] description = "An async gcode parser for no_std targets." -license = "MIT License" +keywords = ["async", "await", "gcode"] +license = "MIT" edition = "2018" -repository = "https://github.com/ithinuel/gcode-rs" +repository = "https://github.com/ithinuel/async-gcode" +categories = ["asynchronous", "embedded", "no-std", "parsing"] [features] default = ["std"] diff --git a/examples/cli.rs b/examples/cli.rs index c77a034..edf7352 100644 --- a/examples/cli.rs +++ b/examples/cli.rs @@ -2,21 +2,19 @@ use futures::stream; use futures_executor::block_on; use std::io::Read; -use gcode::Parser; - #[derive(Debug)] enum Error { Io(std::io::Error), - Parse(gcode::Error), + Parse(async_gcode::Error), } -impl From for Error { - fn from(f: gcode::Error) -> Self { +impl From for Error { + fn from(f: async_gcode::Error) -> Self { Self::Parse(f) } } fn main() { block_on(async { - let mut parser = Parser::new(stream::iter( + let mut parser = async_gcode::Parser::new(stream::iter( std::io::stdin().bytes().map(|res| res.map_err(Error::Io)), )); diff --git a/src/lib.rs b/src/lib.rs index 022e3f8..714032a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,7 +13,7 @@ //! ``` //! use futures::stream; //! use futures_executor::block_on; -//! use gcode::{Parser, Error}; +//! use async_gcode::{Parser, Error}; //! let input = r" //! G21 H21. I21.098 //! J-21 K-21. L-21.098